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