aboutsummaryrefslogtreecommitdiff
path: root/tcwg-gnu-patch-benchmarking.yaml
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2018-03-13 14:11:52 +0100
committerYvan Roux <yvan.roux@linaro.org>2018-03-13 14:11:52 +0100
commiteea1df68dc5ac695efd48c9a34f5fafa72bed6ae (patch)
tree10f84d341a5021bb0e61ff892dc41f3359ff8024 /tcwg-gnu-patch-benchmarking.yaml
parent432f377dbde69f1e271400b284aea4d34c01d9cd (diff)
tcwg-gnu-patch-benchmarking: Trigger compare benchmark.
Change-Id: I7e6b398dd5b6c5b2992f5440d06558e6925808a1
Diffstat (limited to 'tcwg-gnu-patch-benchmarking.yaml')
-rw-r--r--tcwg-gnu-patch-benchmarking.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tcwg-gnu-patch-benchmarking.yaml b/tcwg-gnu-patch-benchmarking.yaml
index 31b6e583..fb3b8953 100644
--- a/tcwg-gnu-patch-benchmarking.yaml
+++ b/tcwg-gnu-patch-benchmarking.yaml
@@ -229,3 +229,25 @@
- project: 'tcwg-benchmark'
property-file: patch_params
block: true
+ - shell: |
+ #!/bin/bash
+ set -ex
+
+ case "$target" in
+ "arm-"*) board="tk1" ;;
+ *) board="tx1" ;;
+ esac
+
+ # Extract triggered build numbers from comma separated list
+ bf_buildnum=(${TRIGGERED_BUILD_NUMBERS_tcwg_benchmark//,/ })
+ REFNUM=${bf_buildnum[0]}
+ PATCHNUM=${bf_buildnum[1]}
+
+ cat > cmp_params << EOF
+ resultsref=${board}/tcwg-benchmark-${REFNUM}
+ resultseval=${board}/tcwg-benchmark-${PATCHNUM}
+ EOF
+ - trigger-builds:
+ - project: 'tcwg-benchmark-compare'
+ property-file: cmp_params
+ block: true