diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-03-22 17:59:08 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-03-22 17:59:08 +0000 |
commit | 742e4ad0fb818f41aeef52aad862e120b9a5d5af (patch) | |
tree | daa2654861811bf9dd0b1cea79d3442340141454 /tests/run-all | |
parent | d5013886bfac8d8997d1e4ec8fd32f1a0a6e62d1 (diff) |
Test suite: Use make for parallel execution
Diffstat (limited to 'tests/run-all')
-rwxr-xr-x | tests/run-all | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/run-all b/tests/run-all index e2e2a6f..f298cb7 100755 --- a/tests/run-all +++ b/tests/run-all @@ -1,13 +1,15 @@ #!/bin/sh set -e # convenience script for running the tests outside adt-run -if [ $# = 0 ]; then - set `run-parts --list tests/tests` +# usage: tests/using-intree tests/run-all + +set +e +jcpus=`perl -MSys::CPU -we 'printf "-j%d\n",Sys::CPU::cpu_count()'` +set -e + +if [ $# != 0 ]; then + set TESTSCRIPTS="$*" fi -for f in $@; do - echo ================================================== - echo $f - $f - echo ================================================== -done -echo "ALL PASSED" + +set -x +exec make $jcpus -f tests/Makefile "$@" |