packaging/perftest_all.sh: Fixed some bugs and tried to fix that all builds are not gone through - but works by running again??

This commit is contained in:
rand00 2023-01-17 11:18:51 +01:00
parent 0af832075f
commit 0ae2602172

12
packaging/perftest_all.sh Normal file → Executable file
View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
@ -49,7 +49,7 @@ DATA_DIR=
CACHE_DIR=
CONF_DIR=
while [ $# -gt 1 ]; do
while [ $# -gt 0 ]; do
OPT="$1"
case "${OPT}" in
@ -101,17 +101,21 @@ get_bin_localpath () {
WHERE uuid = '$UUID'"
}
TMP_UUIDS=/tmp/perftest_uuids.txt
get_jobs_build-uuids > "$TMP_UUIDS"
while read -r UUID; do
BIN="$DATA_DIR"/$(get_bin_localpath "$UUID")
BIN_SHA256=$(get_bin_hash "$UUID")
"$CONF_DIR"/upload_hooks/perftest.sh \
"$CONF_DIR"/upload-hooks/perftest.sh \
--uuid="$UUID" \
--job="$JOB" \
--sha256="$BIN_SHA256" \
--data-dir="$DATA_DIR" \
--cache-dir="$CACHE_DIR" \
"$BIN"
done < <(get_jobs_build-uuids)
done < "$TMP_UUIDS"
info done