Skip to content

Add some progress printing to the test262 tests #2559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion tools/runners/run-test-suite-test262.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,26 @@ rm -f "${PATH_TO_TEST262}/test/suite/ch15/15.9/15.9.3/S15.9.3.1_A5_T6.js"

echo "Starting test262 testing for ${ENGINE}. Running test262 may take a several minutes."

function progress_monitor() {
NUM_LINES_GOTTEN=0
(>&2 echo)
while read line
do
if [[ $((NUM_LINES_GOTTEN % 100)) == 0 ]]
then
(>&2 echo -ne "\rExecuted approx ${NUM_LINES_GOTTEN} tests...")
fi
echo "$line"
NUM_LINES_GOTTEN=$((NUM_LINES_GOTTEN + 1))
done
(>&2 echo)
(>&2 echo)
}

python2 "${PATH_TO_TEST262}"/tools/packaging/test262.py --command "${COMMAND}" \
--tests="${PATH_TO_TEST262}" --summary \
&> "${REPORT_PATH}"
| progress_monitor > "${REPORT_PATH}"

TEST262_EXIT_CODE=$?
if [ $TEST262_EXIT_CODE -ne 0 ]
then
Expand Down