mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 06:52:34 -04:00
perf testsuite: Merge settings files for shell tests
Merge perf testsuite setting files into common settings to reduce duplicates and prevent errors. Signed-off-by: Michael Petlan <mpetlan@redhat.com> Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ian Rogers <irogers@google.com> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240702110849.31904-4-vmolnaro@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
5a02447c81
commit
a3a02a52bc
@@ -65,6 +65,29 @@ else
|
||||
export MEND=""
|
||||
fi
|
||||
|
||||
### general info
|
||||
DIR_PATH=`dirname "$(readlink -e "$0")"`
|
||||
|
||||
export TEST_NAME=`basename $DIR_PATH | sed 's/base/perf/'`
|
||||
export MY_ARCH=`arch`
|
||||
|
||||
# storing logs and temporary files variables
|
||||
if [ -n "$PERFSUITE_RUN_DIR" ]; then
|
||||
# when $PERFSUITE_RUN_DIR is set to something, all the logs and temp files will be placed there
|
||||
# --> the $PERFSUITE_RUN_DIR/perf_something/examples and $PERFSUITE_RUN_DIR/perf_something/logs
|
||||
# dirs will be used for that
|
||||
export PERFSUITE_RUN_DIR=`readlink -f $PERFSUITE_RUN_DIR`
|
||||
export CURRENT_TEST_DIR="$PERFSUITE_RUN_DIR/$TEST_NAME"
|
||||
export MAKE_TARGET_DIR="$CURRENT_TEST_DIR/examples"
|
||||
export LOGS_DIR="$CURRENT_TEST_DIR/logs"
|
||||
test -d "$CURRENT_TEST_DIR" || mkdir -p "$CURRENT_TEST_DIR"
|
||||
test -d "$LOGS_DIR" || mkdir -p "$LOGS_DIR"
|
||||
else
|
||||
# when $PERFSUITE_RUN_DIR is not set, logs will be placed here
|
||||
export CURRENT_TEST_DIR="."
|
||||
export LOGS_DIR="."
|
||||
fi
|
||||
|
||||
|
||||
#### test parametrization
|
||||
if [ ! -d ./common ]; then
|
||||
|
||||
Reference in New Issue
Block a user