3 # convenience script for running the tests outside adt-run
4 # usage: tests/using-intree tests/run-all [-p|--progressive] [tests/tests/*]
10 --progressive|-p) shift; export DGIT_TESTS_PROGRESSIVE=y;;
12 -*) echo >&2 "run-all: unknown option $1"; exit 20 ;;
17 ncpus=$(nproc || echo 1)
18 jcpus=-j$(( ncpus * 134 / 100 ))
24 if [ "x$DGIT_TESTS_TMPDIR" != x ]; then
27 tmpdir="${tmpdir//!/!#!}"
28 tmpdir="${tmpdir//\//!}"
29 tmpdir="$DGIT_TESTS_TMPDIR/$tmpdir"
31 ln -ns -- "$tmpdir" tests/tmp
36 case "$DGIT_TESTS_PROGRESSIVE" in
45 export DGIT_GNUPG_STUNT_ERRLOG=$( tty -s ||: )
49 exec make $jcpus -k -f tests/Makefile "$@"
50 ) 2>&1 |tee tests/tmp/run-all.log