chiark / gitweb /
test suite: chmod a+r $AUTOPKGTEST explicitly.
[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 ncpus=$(nproc || echo 1)
9 jcpus=-j$(( ncpus * 134 / 100 ))
10
11 if [ $# != 0 ]; then
12         set TESTSCRIPTS="$*"
13 fi
14
15 mkdir -p tests/tmp
16
17 export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )
18
19 (
20  set -x
21  exec make $jcpus -k -f tests/Makefile "$@"
22 ) 2>&1 |tee tests/tmp/run-all.log