File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,24 @@ rm -f "${PATH_TO_TEST262}/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T6.js"
6262
6363echo " Starting test262 testing for ${ENGINE} . Running test262 may take a several minutes."
6464
65+ function progress_monitor() {
66+ NUM_LINES_GOTTEN=0
67+ (>&2 echo)
68+ while read line; do
69+ if [[ $(( NUM_LINES_GOTTEN % 100 )) == 0 ]]; then
70+ (>&2 echo -ne " \rExecuted approx ${NUM_LINES_GOTTEN} tests..." )
71+ fi
72+ echo " $line "
73+ NUM_LINES_GOTTEN=$(( NUM_LINES_GOTTEN+ 1 ))
74+ done
75+ (>&2 echo)
76+ (>&2 echo)
77+ }
78+
6579python2 " ${PATH_TO_TEST262} " /tools/packaging/test262.py --command " ${COMMAND} " \
6680 --tests=" ${PATH_TO_TEST262} " --summary \
67- & > " ${REPORT_PATH} "
81+ | progress_monitor > " ${REPORT_PATH} "
82+
6883TEST262_EXIT_CODE=$?
6984if [ $TEST262_EXIT_CODE -ne 0 ]
7085then
You can’t perform that action at this time.
0 commit comments