Files
linux/tools/perf/tests/shell/perftool-testsuite_report.sh
T
Ian Rogers 2532be3d21 perf test: Tag parallel failing shell tests with "(exclusive)"
Some shell tests compete for resources and so can't run with other
tests, tag such tests.  The "(exclusive)" stems from shared/exclusive
to describe how the tests run as if holding a lock.

For ARM/coresight tests:
Suggested-by: James Clark <[email protected]>

Additional failing tests:
Suggested-by: Namhyung Kim <[email protected]>

Tested-by: James Clark <[email protected]>
Signed-off-by: Ian Rogers <[email protected]>
Cc: Colin Ian King <[email protected]>
Cc: Howard Chu <[email protected]>
Cc: Weilin Wang <[email protected]>
Cc: Ilya Leoshkevich <[email protected]>
Cc: Thomas Richter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Dapeng Mi <[email protected]>
Cc: Athira Jajeev <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Veronika Molnarova <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
2024-10-28 09:32:58 -07:00

24 lines
578 B
Bash
Executable File

#!/bin/bash
# perftool-testsuite_report (exclusive)
# SPDX-License-Identifier: GPL-2.0
test -d "$(dirname "$0")/base_report" || exit 2
cd "$(dirname "$0")/base_report" || 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