2 # perftool-testsuite_probe
3 # SPDX-License-Identifier: GPL-2.0
5 test -d "$(dirname "$0")/base_probe" ||
exit 2
6 cd "$(dirname "$0")/base_probe" ||
exit 2
9 PERFSUITE_RUN_DIR
=$
(mktemp
-d /tmp
/"$(basename "$0" .sh)".XXX
)
10 export PERFSUITE_RUN_DIR
12 for testcase
in setup.sh test_
*; do # skip setup.sh if not present or not executable
13 test -x "$testcase" ||
continue
18 if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then
19 rm -rf "$PERFSUITE_RUN_DIR"
22 test $status -ne 0 && exit 1