summaryrefslogtreecommitdiff
path: root/automated/android/workload-automation/workload-automation.yaml
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-08-18 21:09:17 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-08-18 21:09:17 +0800
commitd36aa67aef16d7f04825a683343b38972fb1b04b (patch)
tree77567813f76fede4df181afb30e633ce9996d960 /automated/android/workload-automation/workload-automation.yaml
parentcdad1fb1450f17d257b95b8c7b0be5151003dad0 (diff)
add automated test scripts
Change-Id: I94f6559c550372d64cc0719059c7759fb7b947ca Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'automated/android/workload-automation/workload-automation.yaml')
-rw-r--r--automated/android/workload-automation/workload-automation.yaml48
1 files changed, 48 insertions, 0 deletions
diff --git a/automated/android/workload-automation/workload-automation.yaml b/automated/android/workload-automation/workload-automation.yaml
new file mode 100644
index 0000000..ccecb07
--- /dev/null
+++ b/automated/android/workload-automation/workload-automation.yaml
@@ -0,0 +1,48 @@
+metadata:
+ name: workload-automation
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Workload Automation on Android"
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - android
+ devices:
+ - juno
+ - hi6220-hikey
+ - apq8016-sbc
+ - x15
+ scope:
+ - performance
+
+params:
+ SKIP_INSTALL: "false"
+ # Timeout for wait_boot_completed in seconds.
+ BOOT_TIMEOUT: "300"
+ # Specify adb device SN if more then one device connected.
+ ANDROID_SERIAL: ""
+ # Params for WA test run.
+ WA_TAG: "master"
+ BUILD_TOOLS_URL: "http://testdata.validation.linaro.org/apks/workload-automation/build-tools.tar.gz"
+ WA_HOME_URL: "http://testdata.validation.linaro.org/apks/workload-automation/workload_automation_home.tar.gz"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/qa/wa2-lava.git"
+ TEMPLATES_BRANCH: "wa-templates"
+ CONFIG: "config/generic-android.py"
+ AGENDA: "agenda/android-linpack.yaml"
+ # Specify url and token for publishing artifacts.
+ # For safety reasons, please set 'ARTIFACTORIAL_TOKEN' variable in job definition with
+ # 'secrets' dictionary, and set job visibility to personal or group.
+ # Refer to https://validation.linaro.org/static/docs/v2/publishing-artifacts.html
+ ARTIFACTORIAL_URL: "https://archive.validation.linaro.org/artifacts/team/qa/"
+ ARTIFACTORIAL_TOKEN: ""
+
+run:
+ steps:
+ - cd ./automated/android/workload-automation
+ # Test run.
+ - ./workload-automation.sh -s "${SKIP_INSTALL}" -t "${BOOT_TIMEOUT}" -S "${ANDROID_SERIAL}" -T "${WA_TAG}" -r "${WA_TEMPLATES_REPO}" -g "${TEMPLATES_BRANCH}" -c "${CONFIG}" -a "${AGENDA}" -b "${BUILD_TOOLS_URL}" -w "${WA_HOME_URL}"
+ # Upload test output to artifactorial.
+ - tar caf "wa-output.tar.xz" "./output"
+ - ../../utils/upload-to-artifactorial.sh -a "wa-output.tar.xz" -u "${ARTIFACTORIAL_URL}" -t "${ARTIFACTORIAL_TOKEN}"
+ # Send test result to LAVA.
+ - ../../utils/send-to-lava.sh "./output/result.txt"