aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2018-08-30 20:08:22 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-09-17 15:10:26 +0100
commitdfc579736d81bdfaf4b278578074e7ed9107decc (patch)
tree8f43ebef8887021b0738248d3b549f815ec77c7c /templates
parent63ef7fb5cf1d5ce555534c5784be634e2e428064 (diff)
simple: add simple.jinja2 and include it in all variants
Follow the same format as other test plans to avoid duplicating the test steps for each variant by including a common simple.jinja2 file. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/simple/generic-grub-tftp-ramdisk-simple-template.jinja225
-rw-r--r--templates/simple/generic-ipxe-tftp-ramdisk-simple-template.jinja225
-rw-r--r--templates/simple/generic-uboot-tftp-ramdisk-simple-template.jinja225
-rw-r--r--templates/simple/simple.jinja224
4 files changed, 27 insertions, 72 deletions
diff --git a/templates/simple/generic-grub-tftp-ramdisk-simple-template.jinja2 b/templates/simple/generic-grub-tftp-ramdisk-simple-template.jinja2
index d0dfeef..c6aba3a 100644
--- a/templates/simple/generic-grub-tftp-ramdisk-simple-template.jinja2
+++ b/templates/simple/generic-grub-tftp-ramdisk-simple-template.jinja2
@@ -2,29 +2,6 @@
{% block actions %}
{{ super () }}
-- test:
- timeout:
- minutes: 10
- definitions:
- - repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: simple
- description: "simple test plan"
- os:
- - oe
- scope:
- - functional
- run:
- steps:
- - lava-test-case df --shell df -h
- - lava-test-case mount --shell mount
- - lava-test-case ls --shell ls /
- - lava-test-case udhcpc --shell udhcpc
- - lava-test-case ip --shell ip addr
- - lava-test-case ping --shell ping -c4 8.8.8.8
- from: inline
- name: simple
- path: inline/simple.yaml
+{% include 'simple/simple.jinja2' %}
{% endblock %}
diff --git a/templates/simple/generic-ipxe-tftp-ramdisk-simple-template.jinja2 b/templates/simple/generic-ipxe-tftp-ramdisk-simple-template.jinja2
index 2444285..a8b468b 100644
--- a/templates/simple/generic-ipxe-tftp-ramdisk-simple-template.jinja2
+++ b/templates/simple/generic-ipxe-tftp-ramdisk-simple-template.jinja2
@@ -2,29 +2,6 @@
{% block actions %}
{{ super () }}
-- test:
- timeout:
- minutes: 10
- definitions:
- - repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: simple
- description: "simple test plan"
- os:
- - oe
- scope:
- - functional
- run:
- steps:
- - lava-test-case df --shell df -h
- - lava-test-case mount --shell mount
- - lava-test-case ls --shell ls /
- - lava-test-case udhcpc --shell udhcpc
- - lava-test-case ip --shell ip addr
- - lava-test-case ping --shell ping -c4 8.8.8.8
- from: inline
- name: simple
- path: inline/simple.yaml
+{% include 'simple/simple.jinja2' %}
{% endblock %}
diff --git a/templates/simple/generic-uboot-tftp-ramdisk-simple-template.jinja2 b/templates/simple/generic-uboot-tftp-ramdisk-simple-template.jinja2
index 5b11576..13b780f 100644
--- a/templates/simple/generic-uboot-tftp-ramdisk-simple-template.jinja2
+++ b/templates/simple/generic-uboot-tftp-ramdisk-simple-template.jinja2
@@ -2,29 +2,6 @@
{% block actions %}
{{ super () }}
-- test:
- timeout:
- minutes: 10
- definitions:
- - repository:
- metadata:
- format: Lava-Test Test Definition 1.0
- name: simple
- description: "simple test plan"
- os:
- - oe
- scope:
- - functional
- run:
- steps:
- - lava-test-case df --shell df -h
- - lava-test-case mount --shell mount
- - lava-test-case ls --shell ls /
- - lava-test-case udhcpc --shell udhcpc
- - lava-test-case ip --shell ip addr
- - lava-test-case ping --shell ping -c4 8.8.8.8
- from: inline
- name: simple
- path: inline/simple.yaml
+{% include 'simple/simple.jinja2' %}
{% endblock %}
diff --git a/templates/simple/simple.jinja2 b/templates/simple/simple.jinja2
new file mode 100644
index 0000000..af25ddd
--- /dev/null
+++ b/templates/simple/simple.jinja2
@@ -0,0 +1,24 @@
+- test:
+ timeout:
+ minutes: 10
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: simple
+ description: "simple test plan"
+ os:
+ - oe
+ scope:
+ - functional
+ run:
+ steps:
+ - lava-test-case df --shell df -h
+ - lava-test-case mount --shell mount
+ - lava-test-case ls --shell ls /
+ - lava-test-case udhcpc --shell udhcpc
+ - lava-test-case ip --shell ip addr
+ - lava-test-case ping --shell ping -c4 8.8.8.8
+ from: inline
+ name: simple
+ path: inline/simple.yaml