summaryrefslogtreecommitdiff
path: root/apk-automation.yaml
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-03-17 20:29:29 +0800
committerChase Qi <chase.qi@linaro.org>2017-03-17 20:43:34 +0800
commite219c6c56a58d1048b3e7256937fe0940d62c208 (patch)
tree1766317e66824263e5a2f49d711b6dca7348c6e0 /apk-automation.yaml
parent1f9211c29695b67fd6301a60ad2c5c0bbbe4215d (diff)
Migrate to LAVA V2
* Support LAVA V2 LXC protocol * Removed LAVA-specific steps to support local run * Cope with shellcheck LAVA V2 job example: https://playground.validation.linaro.org/scheduler/job/79787 Change-Id: Icb6c2dd98630a91d94abd3e1c7d12c1eb6d4fa53 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'apk-automation.yaml')
-rw-r--r--apk-automation.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/apk-automation.yaml b/apk-automation.yaml
new file mode 100644
index 0000000..1a37bb8
--- /dev/null
+++ b/apk-automation.yaml
@@ -0,0 +1,39 @@
+metadata:
+ name: apk-automation
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Automated benchmarking with APKs on Android."
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - android
+ devices:
+ - juno
+ - hi6220-hikey
+ - x15
+ scope:
+ - performance
+
+params:
+ SKIP_INSTALL: "false"
+ # Timeout for wait_boot_completed and wait_homescreen.
+ BOOT_TIMEOUT: "300"
+ # Specify adb device SN if more then one device connected.
+ SN: ""
+ TEST_NAME: "linpack"
+ LOOP_COUNT: "5"
+ COLLECT_STREAMLINE: "false"
+ VERBOSE_OUTPUT: "FALSE"
+ RECORD_STATISTICS: "TRUE"
+ RECORD_CSV: "TRUE"
+ # Specify url and token for file uploading.
+ URL: "https://archive.validation.linaro.org/artifacts/team/qa/"
+ TOKEN: "4373c97b474497dbd12373689d7d492e"
+run:
+ steps:
+ - cd ./automated/android/apk-automation
+ - ./apk-automation.sh -s "${SKIP_INSTALL}" -o "${BOOT_TIMEOUT}" -n "${SN}" -t "${TEST_NAME}" -l "${LOOP_COUNT}" -m "${COLLECT_STREAMLINE}" -v "${VERBOSE_OUTPUT}" -r "${RECORD_STATISTICS}" -c "${RECORD_CSV}"
+ # Upload rawdata.zip to artifactorial.
+ - ../../utils/upload-to-artifactorial.sh -a "./rawdata.zip" -u "${URL}" -t "${TOKEN}"
+ # Send test result to LAVA.
+ - ../../utils/send-to-lava.sh ./output/result.txt