summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2019-09-04 10:57:26 +0200
committerDiana Picus <diana.picus@linaro.org>2019-09-13 07:33:39 +0000
commita905835722c59613e0ec70384462895147beaa5b (patch)
tree028889a032ba37941bc0e988fac1aa1322b2ffcc /tcwg-benchmark.sh
parent2f63352849c22f3b2616b41dc19659ee50d4c9ad (diff)
Run benchmarks inside containers
This creates a new task ('bench') and starts a docker container to run the benchmarks in. It uses the same image as the 'build' task. Switching between aarch64 and aarch32 benchmarking breaks unless force install is requested because we only keep one version of the spec tools on the board. This will be fixed in a subsequent patch to bmk-scripts. Change-Id: Ie98cdf47aa3ed456e6349bac40d88bd7acaa7acd
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index 054de48e..dabc8188 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -243,7 +243,12 @@ case "$testmode" in
benchmark) input_size="ref" ;;
esac
-ssh -t -Snone "$boardname" bmk-scripts/run.sh \
+# Start a container to run the benchmarks in
+# FIXME: Do we ever want a different distro here?
+./start-container-docker.sh --session-host "$boardname" --label "tcwg-$target-bmk" --distro "$build_container_tag" --task bench --docker_opts "--privileged" --prefix run_ > run-container.sh
+. ./run-container.sh
+
+ssh -t -Snone -p$run_container_port "$run_container_host" bmk-scripts/run.sh \
--bench "$(printf '%q' "$bench_list")" \
--config "${BUILD_NUMBER}-$run_profile" \
--cflags "$(printf '%q' "$cflags")" \