summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example-jobs/beaglebone-black-myoverlay.yaml78
-rw-r--r--lava-test-shell/overlay.yaml8
-rwxr-xr-xoverlay/usr/local/bin/example3
3 files changed, 89 insertions, 0 deletions
diff --git a/example-jobs/beaglebone-black-myoverlay.yaml b/example-jobs/beaglebone-black-myoverlay.yaml
new file mode 100644
index 0000000..502f0b0
--- /dev/null
+++ b/example-jobs/beaglebone-black-myoverlay.yaml
@@ -0,0 +1,78 @@
+device_type: beaglebone-black
+
+job_name: beaglebone-black overlay example job
+timeouts:
+ job:
+ minutes: 10
+ action:
+ minutes: 5
+ connection:
+ minutes: 2
+priority: medium
+visibility: public
+
+# metadata, actions:deploy and actions:boot come directly from the
+# beaglebone-black health test (copied 2019-01-21) but with jessie/4
+# replaced with stretch/3 so we don't need to reply on -backports.
+
+metadata:
+ source: https://git.linaro.org/lava-team/refactoring.git
+ path: health-checks/beaglebone-black-health.yaml
+ build-readme: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/debian-armmp-armhf-readme.html
+ build-console: https://ci.linaro.org/view/lava-ci/job/lava-debian-armmp-armhf/1/console
+ build-script: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/armmp-nfs.sh
+
+actions:
+- deploy:
+ timeout:
+ minutes: 4
+ to: tftp
+ kernel:
+ url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/vmlinuz
+ type: zimage
+ ramdisk:
+ url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/initramfs.cpio.gz
+ compression: gz
+ # the bootloader needs a u-boot header on the modified ramdisk
+ add-header: u-boot
+ modules:
+ url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/modules.tar.gz
+ compression: gz
+ nfsrootfs:
+ url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/stretch-armhf-nfs.tar.gz
+ compression: gz
+ os: debian
+ dtb:
+ url: http://images.validation.linaro.org/snapshots.linaro.org/components/lava/standard/debian/stretch/armhf/3/dtbs/am335x-boneblack.dtb
+
+- boot:
+ method: u-boot
+ commands: nfs
+ auto_login:
+ login_prompt: 'login:'
+ username: root
+ prompts:
+ - 'root@stretch:'
+ timeout:
+ minutes: 3
+
+- test:
+ timeout:
+ minutes: 15
+ definitions:
+
+ - repository: https://git.linaro.org/people/daniel.thompson/myoverlay.git
+ from: git
+ path: lava-test-shell/overlay.yaml
+ name: apply-overlay
+
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: check-overlay
+ run:
+ steps:
+ - lava-test-case check-overlay-example --shell example
+ from: inline
+ path: inline/check-overlay.yaml
+ name: check-overlay
diff --git a/lava-test-shell/overlay.yaml b/lava-test-shell/overlay.yaml
new file mode 100644
index 0000000..d5a394a
--- /dev/null
+++ b/lava-test-shell/overlay.yaml
@@ -0,0 +1,8 @@
+metadata:
+ format: Lava-Test Test Definition 1.0
+ name: apply-overlay
+ description: "Overlay a directory onto the filesystem of the DUT"
+
+run:
+ steps:
+ - (cd overlay; tar cf - .) | (cd /; tar xf -)
diff --git a/overlay/usr/local/bin/example b/overlay/usr/local/bin/example
new file mode 100755
index 0000000..846390c
--- /dev/null
+++ b/overlay/usr/local/bin/example
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo "This is just an example"