mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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]>
24 lines
578 B
Bash
Executable File
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
|