aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2019-05-14 19:05:27 -0500
committerAníbal Limón <anibal.limon@linaro.org>2019-05-17 09:27:01 -0500
commitb7d7c88251b5ed59c2a8a54317a366fdf8fd88f2 (patch)
treea42f23738a932f159e5639dcbe05701e4cb8408f /lt-qcom
parent2009c9816b1553ca8ed68984f1bcb98a9ad3cfde (diff)
lt-qcom-fastboot.jinja2: Support to apply LAVA test overlay to abootimg
- Add apply_overlay_bootimg variable. - Add package dependencies to install in LXC required by copy_test_overlay.sh script. Change-Id: I5eccef876cb0516f6140586a5f67fd322007e6c3 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom')
-rw-r--r--lt-qcom/lava-job-definitions/lt-qcom-fastboot.jinja236
1 files changed, 36 insertions, 0 deletions
diff --git a/lt-qcom/lava-job-definitions/lt-qcom-fastboot.jinja2 b/lt-qcom/lava-job-definitions/lt-qcom-fastboot.jinja2
index 78f17dd3..281fa11b 100644
--- a/lt-qcom/lava-job-definitions/lt-qcom-fastboot.jinja2
+++ b/lt-qcom/lava-job-definitions/lt-qcom-fastboot.jinja2
@@ -7,6 +7,7 @@
{% if pre_power_command is undefined %}{% set pre_power_command = true %}{% endif %}
{% if pre_os_command is undefined %}{% set pre_os_command = true %}{% endif %}
{% if auto_login is undefined %}{% set auto_login = true %}{% endif %}
+{% if apply_overlay_bootimg is undefined %}{% set apply_overlay_bootimg = false %}{% endif %}
{% block protocols %}
protocols:
@@ -33,6 +34,10 @@ protocols:
- simg2img
- e2fsprogs
- gzip
+ - cpio
+ - git
+ - mktemp
+ - abootimg
{% endif %}
os: debian
@@ -68,6 +73,9 @@ protocols:
boot:
url: {{BOOT_URL}}
compression: {{BOOT_URL_COMP}}
+{% if apply_overlay_bootimg == true %}
+ apply-overlay: true
+{% endif %}
{% if rootfs == true %}
{{ rootfs_label }}:
url: {{ROOTFS_URL}}
@@ -111,6 +119,34 @@ protocols:
- fi
{% endif %}
+{% if apply_overlay_bootimg == true %}
+- test:
+ namespace: tlxc
+ timeout:
+ minutes: 30
+ definitions:
+ - from: inline
+ name: apply-test-overlay-bootimg
+ path: inline/apply-test-overlay-bootimg.yaml
+ repository:
+ metadata:
+ description: Apply test overlay to Andoid boot image ramdisk
+ format: Lava-Test Test Definition 1.0
+ name: apply-test-overlay-bootimg
+ run:
+ steps:
+ - overlay_file=/lava-lxc/overlays/target/overlay.tar.gz
+ - if [ -f $overlay_file ]
+ - then
+ - configs_dir=$(mktemp -d /tmp/configs.XXXX)
+ - git clone --depth 1 http://git.linaro.org/ci/job/configs.git $configs_dir
+ - $configs_dir/lt-qcom-linux-test/copy_test_overlay.sh /lava-lxc/{{LXC_BOOT_FILE}} $overlay_file
+ - echo "apply_test_overlay_bootimg:" "pass"
+ - else
+ - echo "apply_test_overlay_bootimg:" "skip"
+ - fi
+{% endif %}
+
- deploy:
timeout:
minutes: 40