1 #!/bin/bash 1 #!/bin/bash 2 # perftool-testsuite_report 2 # perftool-testsuite_report 3 # SPDX-License-Identifier: GPL-2.0 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 test -d "$(dirname "$0")/base_report" || exit 5 test -d "$(dirname "$0")/base_report" || exit 2 6 cd "$(dirname "$0")/base_report" || exit 2 6 cd "$(dirname "$0")/base_report" || exit 2 7 status=0 7 status=0 8 8 9 PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename 9 PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX) 10 export PERFSUITE_RUN_DIR 10 export PERFSUITE_RUN_DIR 11 11 12 for testcase in setup.sh test_*; do 12 for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable 13 test -x "$testcase" || continue 13 test -x "$testcase" || continue 14 ./"$testcase" 14 ./"$testcase" 15 (( status += $? )) 15 (( status += $? )) 16 done 16 done 17 17 18 if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then 18 if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then 19 rm -rf "$PERFSUITE_RUN_DIR" 19 rm -rf "$PERFSUITE_RUN_DIR" 20 fi 20 fi 21 21 22 test $status -ne 0 && exit 1 22 test $status -ne 0 && exit 1 23 exit 0 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.