summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-05-17 15:15:23 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-05-18 10:07:03 +0000
commit04e46bf98e001cd67155b5a3eef40d0e788127d9 (patch)
treef6c9870e1405434a3a1f64a971bbb05a0ebfed08
parent1ff1a6bb013416b22f0645c30aa85dcb288652f2 (diff)
tcwg-benchmark.sh: Handle more parameters.
Change-Id: I3cc6581cdb3cbefade7b880ca35685d65ba6db69
-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}" \