1 #!/bin/bash 2 # perftool-testsuite_probe 3 # SPDX-License-Identifier: GPL-2.0 4 5 test -d "$(dirname "$0")/base_probe" || exit 2 6 cd "$(dirname "$0")/base_probe" || exit 2 7 status=0 8 9 PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX) 10 export PERFSUITE_RUN_DIR 11 12 for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable 13 test -x "$testcase" || continue 14 ./"$testcase" 15 (( status += $? )) 16 done 17 18 if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then 19 rm -rf "$PERFSUITE_RUN_DIR" 20 fi 21 22 test $status -ne 0 && exit 1 23 exit 0
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.