https://gcc.gnu.org/g:5fd7ea8f47c10be5fe078181940d0ad38680a4df
commit 5fd7ea8f47c10be5fe078181940d0ad38680a4df Author: Michael Matz <[email protected]> Date: Mon Mar 5 22:38:22 2018 +0100 Make test_recheck parallel instead of calling runtest directly, go via make RUNTESTFLAGS (requires swapping the quoting level from ['"] to ["']), and add -j31. Diff: --- contrib/test_recheck | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/test_recheck b/contrib/test_recheck index 193cd3df2a3c..13f437187a9a 100755 --- a/contrib/test_recheck +++ b/contrib/test_recheck @@ -64,7 +64,7 @@ for file in $files; do flags=`$AWK ' /^Running .*\.exp \.\.\./ { if (expfile != "" && tests != "") - printf (" %s=\"%s\"", expfile, tests) + printf (" %s='"'"'%s'"'"'", expfile, tests) expfile = $2 sub (/^[^ ]*\//, "", expfile) sep = "" @@ -79,18 +79,20 @@ for file in $files; do } END { if (expfile != "" && tests != "") - printf (" %s=\"%s\"", expfile, tests) + printf (" %s='"'"'%s'"'"'", expfile, tests) }' $file` if test -n "$flags"; then - cd $dir + #cd $dir amflags= if grep '^AM_RUNTESTFLAGS =' Makefile >/dev/null 2>&1; then amflags=`echo 'print-runtestflags: ; @echo $(AM_RUNTESTFLAGS)' \ | ${MAKE} -s -f Makefile -f - print-runtestflags` fi - echo "(cd $dir && runtest $amflags --tool $base $flags)" + #echo "(cd $dir && runtest $amflags --tool $base $flags)" + echo "make RUNTESTFLAGS=\"$flags\" check-$base -j31" if test -z "$dry"; then - eval runtest --tool $base $flags || st=$? + #eval runtest --tool $base $flags || st=$? + eval make RUNTESTFLAGS=\"$flags\" check-$base -j31 || st=$? fi cd "$cwd" fi
