packaging/perftest.sh: Moved some variables up into new 'configure per system' section

This commit is contained in:
rand00 2023-01-12 15:27:33 +01:00
parent 7a0cdcbae5
commit 74269e4ccd

View file

@ -92,6 +92,11 @@ BIN_REL="$1"
[ -z "${BIN_REL}" ] && \
die "The main binarys localpath must be given as the first positional argument"
# >>> CONFIGURE PER SYSTEM
SERVER="starand"
SERVER_DIR="0tmp/robur_perftest"
# <<< --------------------
info "processing UUID '$UUID'"
BIN="${DATA_DIR}/$BIN_REL"
@ -120,12 +125,6 @@ if [ -d "$PERFDATA_DIR" ]; then
fi;
#< goto maybe add a 'force' param to rerun test + regenerate plot
SERVER="starand"
#< goto set test-server ip somewhere - environment variable, or manually set here?
#< goto currently 'run-test.sh' depends on this containing user + test-dir too
SERVER_DIR="0tmp/robur_perftest"
#< goto choose a working-dir for running test
case "${JOB},${BIN_EXT}" in
unipi,hvt)
"$PERFSCRIPT_DIR"/run-test-remotely.sh "$PERFSCRIPT_DIR"/remote "$PERFDATA_DIR" "$BIN" "$SERVER" "$SERVER_DIR"