summaryrefslogtreecommitdiff
path: root/automated/linux/dockerized-tests/local-run.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/dockerized-tests/local-run.yaml')
-rw-r--r--automated/linux/dockerized-tests/local-run.yaml48
1 files changed, 48 insertions, 0 deletions
diff --git a/automated/linux/dockerized-tests/local-run.yaml b/automated/linux/dockerized-tests/local-run.yaml
new file mode 100644
index 0000000..37153b9
--- /dev/null
+++ b/automated/linux/dockerized-tests/local-run.yaml
@@ -0,0 +1,48 @@
+metadata:
+ name: local-run
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Run tests from https://git.linaro.org/qa/test-definitions.git with
+ docker. Test runs on test target."
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - ubuntu
+ - debian
+ - centos
+ - fedora
+ - openembedded
+ devices:
+ - d03
+ - d05
+ - juno
+ - beaglebone-black
+ - hi6220-hikey
+ - apq8016-sbc
+ - mustang
+ - moonshot
+ - thunderX
+ - x15
+
+ scope:
+ - functional
+ - performance
+
+params:
+ # Relative path to test definition file
+ # Example: automated/linux/linpack/linpack.yaml
+ TEST: "automated/linux/smoke/smoke.yaml"
+ # Usage: KEY1=VALUE1 KEY2=VALUE2
+ # Example for smoke test: 'TESTS="pwd, lsb_release -a, uname -a, ip a, lscpu, vmstat, lsblk"'
+ TESTDEF_PARAMS: ""
+ # Dockerfile example: https://git.linaro.org/ci/dockerfiles.git/tree/stretch-arm64-testdef
+ DOCKER_IMG: "linaro/testdef-arm64-debian-stretch:922033e"
+
+run:
+ steps:
+ - cd automated/linux/dockerized-tests
+ - if [ -z "${TESTDEF_PARAMS}" ]; then
+ - ./local-run.sh -t "${TEST}" -d "${DOCKER_IMG}"
+ - else
+ - ./local-run.sh -t "${TEST}" -d "${DOCKER_IMG}" -r "${TESTDEF_PARAMS}"
+ - fi
+ - ../../utils/send-to-lava.sh ./output/result.txt