summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index ec3c2bdf..a3a940bf 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -16,6 +16,9 @@ while [ $# -ge 1 ]; do
--bench_list) bench_list="$2" ;;
--config) config="$2" ;;
--cflags) cflags="$2" ;;
+ --extension) extension="$2" ;;
+ --testmode) testmode="$2" ;;
+ --iterations) iterations="$2" ;;
--sysroot) sysroot="$2" ;;
--fileserver) fileserver="$2" ;;
--forceinstall) forceinstall="$2" ;;
@@ -53,11 +56,19 @@ build_container_port=
# wrong when preparing the test environment
trap "cleanup_all_containers" EXIT
+case "$testmode" in
+ build|verify) input_size="test" ;;
+ benchmark) input_size="ref" ;;
+esac
+
build_container_exec ssh -t "$boardname" bmk-scripts/run.sh \
--bench "$(printf '%q' "$bench_list")" \
--config "${config}" \
--cflags "$(printf '%q' "$cflags")" \
--ccprefix "$build_container_host:$build_container_port:$ccprefix" \
+ --extension "$extension" \
+ --input_size "$input_size" \
+ --iterations "$iterations" \
"${sysroot:+--sysroot "$sysroot"}" \
--toolchain gnu \
--resultsdest "${fileserver}:results/${NODE_NAME}-123-0/${BUILD_NUMBER}" \