From 5aa905121b3eebb70338b0f664deb302ebfb3ff7 Mon Sep 17 00:00:00 2001 From: Madis Martin Lutter Date: Thu, 14 Jun 2018 14:42:15 +0300 Subject: [PATCH] orangepi initial test job, doesn't work yet --- jobs/health.yaml | 45 +++++++++++++++++++++++++++++++ jobs/inline-pwd.yaml | 45 +++++++++++++++++++++++++++++++ jobs/orangepi-zero.yaml | 38 ++++++++++++++++++++++++++ test-definitions/qemu/health.yaml | 10 +++++++ 4 files changed, 138 insertions(+) create mode 100644 jobs/health.yaml create mode 100644 jobs/inline-pwd.yaml create mode 100644 jobs/orangepi-zero.yaml create mode 100644 test-definitions/qemu/health.yaml diff --git a/jobs/health.yaml b/jobs/health.yaml new file mode 100644 index 0000000..1e20951 --- /dev/null +++ b/jobs/health.yaml @@ -0,0 +1,45 @@ +device_type: qemu +job_name: health-check-qemu01 +priority: medium +visibility: public +timeouts: + job: + minutes: 15 + action: + minutes: 10 + connection: + minutes: 2 +context: + arch: amd64 + no_kvm: true +actions: +- deploy: + timeout: + minutes: 4 + to: tmpfs + images: + rootfs: + image_arg: -drive format=raw,file={rootfs} + url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/amd64/2/stretch.img.gz + sha256sum: b5cdb3b9e65fec2d3654a05dcdf507281f408b624535b33375170d1e852b982c + compression: gz + os: debian + root_partition: 1 +- boot: + method: qemu + media: tmpfs + timeout: + minutes: 2 + prompts: + - "root@debian:" + auto_login: + login_prompt: "login:" + username: root +- test: + timeout: + minutes: 15 + definitions: + - repository: http://git.k-space.ee/madislutter/lava-tests.git + from: git + name: health + path: test-definitions/qemu/health.yaml \ No newline at end of file diff --git a/jobs/inline-pwd.yaml b/jobs/inline-pwd.yaml new file mode 100644 index 0000000..bccb42b --- /dev/null +++ b/jobs/inline-pwd.yaml @@ -0,0 +1,45 @@ +device_type: qemu +job_name: inline test +priority: medium +visibility: public +context: + arch: amd64 + no_kvm: true +actions: +- deploy: + timeout: + minutes: 4 + to: tmpfs + images: + rootfs: + image_arg: -drive format=raw,file={rootfs} + url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/amd64/2/stretch.img.gz + sha256sum: b5cdb3b9e65fec2d3654a05dcdf507281f408b624535b33375170d1e852b982c + compression: gz + os: debian + root_partition: 1 +- boot: + method: qemu + media: tmpfs + timeout: + minutes: 2 + prompts: + - "root@debian:" + auto_login: + login_prompt: "login:" + username: root +- test: + timeout: + minutes: 15 + definitions: + - repository: + metadata: + format: Lava-Test Test Definition 1.0 + name: print working directory + description: "Prints the working directory" + run: + steps: + - pwd + from: inline + name: pwd-inline + path: inline/pwd-inline.yaml \ No newline at end of file diff --git a/jobs/orangepi-zero.yaml b/jobs/orangepi-zero.yaml new file mode 100644 index 0000000..04af9bd --- /dev/null +++ b/jobs/orangepi-zero.yaml @@ -0,0 +1,38 @@ +device_type: sun8i-h2-plus-orangepi-zero +job_name: kernel-boot-test +priority: medium +visibility: public +timeouts: + job: + minutes: 15 + action: + minutes: 10 + connection: + minutes: 5 +context: + arch: arm + extra_kernel_args: panic=2 clk_ignore_unused loglevel=15 +actions: +- deploy: + timeout: + minutes: 10 + to: tftp + images: + kernel: + type: zImage + url: file:///home/images/v4.17/zImage + dtb: + url: file:///home/images/v4.17/sun8i-h2-plus-orangepi-zero.dtb + os: ubuntu +- boot: + method: u-boot + bootargs: + timeout: + minutes: 5 + prompts: + - "root@cubietruck:" + auto_login: + login_prompt: "cubietruck login:" + username: root + password_prompt: "Password:" + password: salakala diff --git a/test-definitions/qemu/health.yaml b/test-definitions/qemu/health.yaml new file mode 100644 index 0000000..feab692 --- /dev/null +++ b/test-definitions/qemu/health.yaml @@ -0,0 +1,10 @@ +metadata: + maintainer: madislutter@gmail.com + os: debian + format: Lava-Test Test Definition 1.0 + name: health + description: Health test for qemu + +run: + steps: + - pwd