chiark / gitweb /
dgit: Prepare for calling git-debrebase
[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", 1.34 * 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 export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )
19
20 (
21  set -x
22  exec make $jcpus -k -f tests/Makefile "$@"
23 ) 2>&1 |tee tests/tmp/run-all.log