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}" ] && \ [ -z "${BIN_REL}" ] && \
die "The main binarys localpath must be given as the first positional argument" 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'" info "processing UUID '$UUID'"
BIN="${DATA_DIR}/$BIN_REL" BIN="${DATA_DIR}/$BIN_REL"
@ -120,12 +125,6 @@ if [ -d "$PERFDATA_DIR" ]; then
fi; fi;
#< goto maybe add a 'force' param to rerun test + regenerate plot #< 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 case "${JOB},${BIN_EXT}" in
unipi,hvt) unipi,hvt)
"$PERFSCRIPT_DIR"/run-test-remotely.sh "$PERFSCRIPT_DIR"/remote "$PERFDATA_DIR" "$BIN" "$SERVER" "$SERVER_DIR" "$PERFSCRIPT_DIR"/run-test-remotely.sh "$PERFSCRIPT_DIR"/remote "$PERFDATA_DIR" "$BIN" "$SERVER" "$SERVER_DIR"