Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | # Without --ignore-exit, the tap harness causes any FAILs within a |
| 3 | # test plan to raise ERRORs; this is just noise. |
Andrew Geissler | 5199d83 | 2021-09-24 16:47:35 -0500 | [diff] [blame] | 4 | export LD_LIBRARY_PATH=FIXMEPTESTPATH/tests/utils/testapp/userspace-probe-elf-binary/.libs |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 5 | makeargs="LOG_DRIVER_FLAGS=--ignore-exit top_srcdir=FIXMEPTESTPATH top_builddir=FIXMEPTESTPATH" |
| 6 | make -k -t all >error.log 2>&1 |
| 7 | # Can specify a test e.g.: |
| 8 | # -C tests/regression/ check TESTS='kernel/test_callstack' |
| 9 | make -k -s $makeargs check 2>error.log | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g' |
| 10 | exitcode=$? |
| 11 | if [ -e error.log ]; then |
| 12 | cat error.log |
| 13 | fi |
| 14 | if [ -e tests/unit/test-suite.log ]; then |
| 15 | cat tests/unit/test-suite.log |
| 16 | fi |
| 17 | if [ -e tests/regression/test-suite.log ]; then |
| 18 | cat tests/regression/test-suite.log |
| 19 | fi |
| 20 | exit $exitcode |