Commit c8eb2a9f authored by Veronika Molnarova's avatar Veronika Molnarova Committed by Namhyung Kim

perf testsuite: Add test case for perf probe

Add new perf probe test case that acts as an entry element in perf test
list. Runs multiple subtests from directory "base_probe", which will be
added in incomming patches and can be expanded without further editing.
Signed-off-by: default avatarVeronika Molnarova <vmolnaro@redhat.com>
Signed-off-by: default avatarMichael Petlan <mpetlan@redhat.com>
Cc: kjain@linux.ibm.com
Cc: atrajeev@linux.vnet.ibm.com
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240215110231.15385-5-mpetlan@redhat.com
parent e3425864
#!/bin/bash
# perftool-testsuite_probe
# SPDX-License-Identifier: GPL-2.0
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment