summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-03-17 18:25:56 +0100
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-04-22 14:28:16 +0000
commit9e54d844eea06645d3618c935c71956a8ae983a4 (patch)
tree941d0d52d50ecb528d95d5aacbb472e2b0966258 /tcwg-benchmark.sh
parenta9daeb643ebffbc708346141b1324f145bf9766f (diff)
tcwg-benchmark : initialize the board from docker host (fx and apm)
Change-Id: I1181e291ab7823744717ebc41d971b4ef1e58f64
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index 145791a2..b360b5b7 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -272,6 +272,8 @@ case "$hw_tag:$boardname:$image_arch" in
tk1_32:*-tk1-*:armhf) ;;
tx1_64:*-tx1-*:arm64) ;;
tx1_32:*-tx1-*:armhf) ;;
+ fx_32:*-fx-*:armhf) ;;
+ fx_64:*-fx-*:arm64) ;;
*)
echo "ERROR: results_id does not start with a valid hw_tag: $hw_tag"
exit 1
@@ -349,13 +351,24 @@ if [ $res != 0 ]; then
exit $EXTERNAL_FAIL
fi
+# Launch prepare-board from docker host (only fx_* and apm_*)
+case "$hw_tag" in
+ fx_*) ;&
+ apm_*)
+ prepare_board_port="2222"
+ ;;
+ *)
+ prepare_board_port=""
+ ;;
+esac
+
if $prepare_board; then
# FIXME: Implement more configurations and checks:
# disable swap
# set interrupt affinity
# check that there are no stray processes
# test that taskset works
- remote_exec "$boardname:::-t -Snone" \
+ remote_exec "$boardname:$prepare_board_port::-t -Snone" \
sudo /usr/local/bin/benchmark.sh --hw_tag "$hw_tag" \
--action start_board --verbose \
--image "linaro/ci-$image_arch-tcwg-build-ubuntu:$bench_container_tag" &