aboutsummaryrefslogtreecommitdiff
path: root/lhg-oe-build
diff options
context:
space:
mode:
authorArthur <arthur.she@linaro.org>2019-04-24 16:30:26 -0700
committerAndrey Konovalov <andrey.konovalov@linaro.org>2019-04-30 15:24:08 +0000
commit602c262544a129f71f711030d3d23193f055bd98 (patch)
treedcf765fdef0df4d4e72f9c7e818d98fef3fcbbe9 /lhg-oe-build
parentf7962c7009678e95e7d3c716af2b3edaafd16e4a (diff)
lhg-oe-build: Add igt test to dragonboard-410c rocko build
Add igt test to dragonboard-410c rocko build Change-Id: Ife7ca4d31c6fcedb87f3275d78d9751ee21a4a7d
Diffstat (limited to 'lhg-oe-build')
-rw-r--r--lhg-oe-build/lava-job-definitions/dragonboard-410c/template-igt-test.yaml76
-rwxr-xr-xlhg-oe-build/submit_for_testing.sh14
2 files changed, 90 insertions, 0 deletions
diff --git a/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-igt-test.yaml b/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-igt-test.yaml
new file mode 100644
index 00000000..2aaa7f50
--- /dev/null
+++ b/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-igt-test.yaml
@@ -0,0 +1,76 @@
+device_type: dragonboard-410c
+tags:
+ - chamelium
+job_name: lhg-oe-igt-test-${MANIFEST_BRANCH}-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 120
+ action:
+ minutes: 15
+ connection:
+ minutes: 2
+priority: medium
+visibility: public
+
+metadata:
+ manifest branch: ${MANIFEST_BRANCH}
+ build-url: ${BUILD_URL}
+ build-location: ${BASE_URL}/${PUB_DEST}
+
+actions:
+- deploy:
+ timeout:
+ minutes: 45
+ to: fastboot
+ images:
+ boot:
+ url: ${BOOT_URL}
+ compression: gz
+ rootfs:
+ url: ${SYSTEM_URL}
+ compression: gz
+ apply-overlay: true
+
+- boot:
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ prompts:
+ - 'root@dragonboard-410c:~#'
+ timeout:
+ minutes: 5
+ method: fastboot
+
+- test:
+ timeout:
+ minutes: 20
+ definitions:
+ - from: inline
+ repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: basic-tests
+ description: "Basic tests after dragonboard-410c boots to the shell prompt"
+ run:
+ steps:
+ - ifconfig -a
+ - lava-test-case ping-google --shell ping -c4 www.google.com
+ - lava-test-case ping-chamelium --shell ping -c4 ${CHAMELIUM_IP}
+ - cat /sys/kernel/debug/dri/0/clients
+ # Stop Weston, otherwise igt-gpu-tools wouldn't run
+ - lava-test-case stop-weston --shell systemctl stop weston@linaro systemd-logind
+ - cat /sys/kernel/debug/dri/0/clients
+ name: basic-tests
+ path: inline/basic-tests.yaml
+
+- test:
+ timeout:
+ minutes: 25
+ definitions:
+ - repository: https://github.com/Linaro/test-definitions.git
+ from: git
+ path: automated/linux/igt/igt-chamelium-test.yaml
+ name: igt-chamelium-test
+ params:
+ CHAMELIUM_IP: ${CHAMELIUM_IP}
+ IGT_DIR: "/usr/share/igt-gpu-tools"
diff --git a/lhg-oe-build/submit_for_testing.sh b/lhg-oe-build/submit_for_testing.sh
index 82ec4acd..24fc789b 100755
--- a/lhg-oe-build/submit_for_testing.sh
+++ b/lhg-oe-build/submit_for_testing.sh
@@ -19,3 +19,17 @@ python configs/openembedded-lkft/submit_for_testing.py \
--git-commit ${BUILD_NUMBER} \
--template-path configs/lhg-oe-build/lava-job-definitions \
--template-names ${TEST_JOBS}
+
+# DB410c igt test only runs with rocko build and on staging LAVA
+[ "${DEVICE_TYPE}" == "dragonboard-410c" ] && [ "${MANIFEST_BRANCH}" == "rocko" ] && \
+export CHAMELIUM_IP="10.7.0.94" && \
+python configs/openembedded-lkft/submit_for_testing.py \
+ --device-type ${DEVICE_TYPE} \
+ --build-number ${BUILD_NUMBER} \
+ --lava-server https://staging.validation.linaro.org/RPC2/ \
+ --qa-server ${QA_SERVER} \
+ --qa-server-team lhg \
+ --qa-server-project ${QA_SERVER_PROJECT} \
+ --git-commit ${BUILD_NUMBER} \
+ --template-path configs/lhg-oe-build/lava-job-definitions \
+ --template-names template-igt-test.yaml