2024-02-15 12:02:28 +01:00
|
|
|
#!/bin/bash
|
2025-01-07 16:59:30 +00:00
|
|
|
# perftool-testsuite_probe (exclusive)
|
2024-02-15 12:02:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
2025-03-03 18:28:33 -08:00
|
|
|
[ "$(id -u)" = 0 ] || exit 2
|
2024-02-15 12:02:28 +01:00
|
|
|
test -d "$(dirname "$0")/base_probe" || exit 2
|
|
|
|
cd "$(dirname "$0")/base_probe" || exit 2
|
|
|
|
status=0
|
|
|
|
|
|
|
|
PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX)
|
|
|
|
export PERFSUITE_RUN_DIR
|
|
|
|
|
|
|
|
for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable
|
|
|
|
test -x "$testcase" || continue
|
|
|
|
./"$testcase"
|
|
|
|
(( status += $? ))
|
|
|
|
done
|
|
|
|
|
|
|
|
if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then
|
|
|
|
rm -rf "$PERFSUITE_RUN_DIR"
|
|
|
|
fi
|
|
|
|
|
|
|
|
test $status -ne 0 && exit 1
|
|
|
|
exit 0
|