summaryrefslogtreecommitdiff
path: root/tcwg-benchmark-bare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-benchmark-bare.sh')
-rwxr-xr-xtcwg-benchmark-bare.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tcwg-benchmark-bare.sh b/tcwg-benchmark-bare.sh
index 80e9e58c..69fa8787 100755
--- a/tcwg-benchmark-bare.sh
+++ b/tcwg-benchmark-bare.sh
@@ -207,6 +207,22 @@ case "$sysroot" in
;;
esac
+results_id=$(echo "$results_id" \
+ | sed -e "s/<build_num>/$BUILD_NUMBER/g" \
+ -e "s/@build_num@/$BUILD_NUMBER/g")
+hw_tag="${results_id%%/*}"
+if echo "$results_id" | grep -q "\.\."; then
+ echo "ERROR: results_id should not escape /home/tcwg-benchmark/results* hierarchy; do not use \"..\""
+ exit 1
+fi
+case "$hw_tag" in
+ STM32*) ;;
+ *)
+ echo "ERROR: results_id does not start with a valid hw_tag"
+ exit 1
+ ;;
+esac
+
# vars are from run-container.sh sourced above
# shellcheck disable=SC2154
case "$bench_list" in
@@ -217,6 +233,8 @@ case "$bench_list" in
--cflags "$cflags" \
--ldflags "$ldflags" \
--forceinstall "${forceinstall}" \
+ --hw_tag "$hw_tag" \
+ --resultsdest "bkp-01.tcwglab:/home/tcwg-benchmark/results-${results_id}/${NODE_NAME}" \
--verbose true
;;
esac