Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # use target=recheck if you want to recheck failing tests |
| 3 | [ "$target" = "" ] && target=check |
| 4 | |
| 5 | # Without --ignore-exit, the tap harness causes any FAILs within a |
| 6 | # test plan to raise ERRORs; this is just noise. |
| 7 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit abs_top_srcdir=$PWD abs_top_builddir=$PWD GREP=grep SED=sed PYTHON=python3" |
| 8 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 9 | exec 2> error.log |
| 10 | make -C tests -k -s $makeargs $target |
| 11 | exitcode=$? |
| 12 | if [ -e error.log ]; then |
| 13 | cat error.log |
| 14 | fi |
| 15 | if [ -e tests/test-suite.log ]; then |
| 16 | cat tests/test-suite.log |
| 17 | fi |
| 18 | |
| 19 | exit $exitcode |