chiark / gitweb /
Test suite: t-gbp-example-prep-no-ff: break out from t-gbp-example-prep
[dgit.git] / tests / run-all
1 #!/bin/bash
2 set -e
3 # convenience script for running the tests outside adt-run
4 # usage: tests/using-intree tests/run-all
5
6 set -o pipefail
7
8 set +e
9 jcpus=`perl -MSys::CPU -we 'printf "-j%d\n",Sys::CPU::cpu_count()'`
10 set -e
11
12 if [ $# != 0 ]; then
13         set TESTSCRIPTS="$*"
14 fi
15
16 mkdir -p tests/tmp
17
18 (
19  set -x
20  exec make $jcpus -k -f tests/Makefile "$@"
21 ) 2>&1 |tee tests/tmp/run-all.log