summaryrefslogtreecommitdiff
path: root/automated/linux/workload-automation/workload-automation.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/workload-automation/workload-automation.yaml')
-rw-r--r--automated/linux/workload-automation/workload-automation.yaml45
1 files changed, 45 insertions, 0 deletions
diff --git a/automated/linux/workload-automation/workload-automation.yaml b/automated/linux/workload-automation/workload-automation.yaml
new file mode 100644
index 0000000..4aa1da3
--- /dev/null
+++ b/automated/linux/workload-automation/workload-automation.yaml
@@ -0,0 +1,45 @@
+metadata:
+ name: workload-automation-linux
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Workload Automation on Linux"
+ maintainer:
+ - milosz.wasilewski@linaro.org
+ - chase.qi@linaro.org
+ os:
+ - debian
+ - ubuntu
+ - centos
+ - fedora
+ devices:
+ - juno
+ - hi6220-hikey
+ - apq8016-sbc
+ - x15
+ scope:
+ - performance
+
+params:
+ SKIP_INSTALL: "false"
+ # Params for WA test run.
+ WA_TAG: "master"
+ WA_TEMPLATES_REPO: "https://git.linaro.org/qa/wa2-lava.git"
+ TEMPLATES_BRANCH: "wa-templates"
+ CONFIG: "config/generic-linux-localhost.py"
+ AGENDA: "agenda/linux-dhrystone.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/linux/workload-automation
+ # Test run.
+ - ./workload-automation.sh -s "${SKIP_INSTALL}" -t "${WA_TAG}" -r "${WA_TEMPLATES_REPO}" -T "${TEMPLATES_BRANCH}" -c "${CONFIG}" -a "${AGENDA}"
+ # 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"