aboutsummaryrefslogtreecommitdiff
path: root/lhg-oe-build
diff options
context:
space:
mode:
authorArthur She <arthur.she@linaro.org>2018-10-10 19:04:51 -0700
committerAndrey Konovalov <andrey.konovalov@linaro.org>2018-10-15 12:50:22 +0000
commit8bb43c69254c5c85897e6960a2d62c809172a294 (patch)
treeb65d60248c477d119b7e957d751603cd4ee60867 /lhg-oe-build
parent0aaa3d781271f37755e22e583d7e4e6e7aadc885 (diff)
lhg-oe-build:
Start submit test jobs for DB410c to LAVA. Add lhg-oe-build/lava-job-definitions/dragonboard-410c/template-tests-morty.yaml Change-Id: I642cd057fbdcf6866e8544a9a3d11ba04bb1bbe3
Diffstat (limited to 'lhg-oe-build')
-rw-r--r--lhg-oe-build/lava-job-definitions/dragonboard-410c/template-tests-morty.yaml153
1 files changed, 153 insertions, 0 deletions
diff --git a/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-tests-morty.yaml b/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-tests-morty.yaml
new file mode 100644
index 00000000..0e078d17
--- /dev/null
+++ b/lhg-oe-build/lava-job-definitions/dragonboard-410c/template-tests-morty.yaml
@@ -0,0 +1,153 @@
+device_type: dragonboard-410c
+tags:
+ - static-ip
+ - 4k-hdmi-dongle
+ - usb-mouse
+job_name: lhg-oe-robotframework-tests-${MANIFEST_BRANCH}-${BUILD_NUMBER}
+timeouts:
+ job:
+ minutes: 160
+ action:
+ minutes: 15
+ connection:
+ minutes: 2
+priority: high
+visibility: public
+
+metadata:
+ manifest branch: ${MANIFEST_BRANCH}
+ build-url: ${BUILD_URL}
+ build-location: ${BASE_URL}/${PUB_DEST}
+
+protocols:
+ lava-lxc:
+ name: lxc-dragonboard-410c-test
+ distribution: ubuntu
+ release: xenial
+ arch: amd64
+ verbose: true
+
+actions:
+- deploy:
+ namespace: tlxc
+ timeout:
+ minutes: 5
+ to: lxc
+ packages:
+ - wget
+ - unzip
+ - python-opencv
+ - python-pip
+ - libffi-dev
+ - libssl-dev
+ - tesseract-ocr
+ - python-lxml
+ - git
+ os: debian
+
+- boot:
+ namespace: tlxc
+ prompts:
+ - root@(.*):/#
+ - root@linaro-developer:~#
+ timeout:
+ minutes: 5
+ method: lxc
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 10
+ definitions:
+ - from: inline
+ name: install-google-fastboot
+ path: inline/install-google-fastboot.yaml
+ repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: install-fastboot
+ description: "Install fastboot provided by google"
+ run:
+ steps:
+ - wget https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip
+ - unzip platform-tools_r26.0.0-linux.zip
+ - ln -s `pwd`/platform-tools/fastboot /usr/bin/fastboot
+ - ln -s `pwd`/platform-tools/adb /usr/bin/adb
+ - fastboot --version
+
+- deploy:
+ timeout:
+ minutes: 40
+ to: fastboot
+ namespace: dragonboard-410c
+ images:
+ boot:
+ url: ${BOOT_URL}
+ rootfs:
+ url: ${SYSTEM_URL}
+ compression: gz
+ apply-overlay: true
+ os: oe
+ protocols:
+ lava-lxc:
+ - action: fastboot-deploy
+ request: pre-power-command
+ timeout:
+ minutes: 2
+
+- boot:
+ namespace: dragonboard-410c
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ prompts:
+ - root@(.*):/#
+ - root@dragonboard-410c:~#
+ timeout:
+ minutes: 15
+ method: fastboot
+ protocols:
+ lava-lxc:
+ - action: auto-login-action
+ request: pre-os-command
+ timeout:
+ minutes: 2
+
+- test:
+ namespace: dragonboard-410c
+ name: target-simple-test
+ timeout:
+ minutes: 160
+ 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:
+ - lava-test-case ps --shell ps aux
+ - lava-test-case db410c-dmesg --shell dmesg
+ - lava-test-case db410c-ifconfig --shell ifconfig -a
+ - lava-test-case db410c-ping-google --shell ping -c4 www.google.com
+ # Prevent Weston enter "inactive mode"
+ - echo -e "[core]\nidle-time=0" >> /etc/xdg/weston/weston.ini
+ - cat /etc/xdg/weston/weston.ini
+ - lava-test-case prevent-westen-enter-inactive-mode-and-restart-it --shell systemctl restart weston@linaro
+
+ name: target-basic-test
+ path: inline/target-basic-test.yaml
+
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 30
+ definitions:
+ - repository: https://git.linaro.org/people/arthur.she/test-definitions.git
+ from: git
+ path: openembedded/robotframework-lxc.yaml
+ name: robotframework-lxc
+ params:
+ RF_TEST_CASES_REPO: "https://github.com/linaro-mmwg/lhg-robotframework-test.git"
+ RF_TEST_CASE: "weston-simple-egl/weston-simple-egl-test.robot,browser-test/chromium-browser-test.robot,gst-wayland-test/gst-wayland-test.robot,webgl-test/webgl-test.robot,youtube-test/youtube-test.robot"