aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAna Guerrero Lopez <ana.guerrero@collabora.com>2018-06-15 15:58:06 +0200
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-06-28 10:15:14 +0100
commit8ad12c5e9c43da38970bc1707891301340587317 (patch)
tree8627fd7c6329f839d846859414ec3d9a5b843829 /templates
parentf94df7ecd59f168cf3de692bdf3cefbc1dc29fc5 (diff)
Add v4l2 test plan
Initial test plan that runs v4l2-compliance in the system and parses the output. Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/v4l2/generic-depthcharge-tftp-ramdisk-v4l2-template.jinja27
-rw-r--r--templates/v4l2/generic-uboot-tftp-ramdisk-v4l2-template.jinja27
-rw-r--r--templates/v4l2/v4l2.ini6
-rw-r--r--templates/v4l2/v4l2.jinja226
4 files changed, 46 insertions, 0 deletions
diff --git a/templates/v4l2/generic-depthcharge-tftp-ramdisk-v4l2-template.jinja2 b/templates/v4l2/generic-depthcharge-tftp-ramdisk-v4l2-template.jinja2
new file mode 100644
index 0000000..d624d80
--- /dev/null
+++ b/templates/v4l2/generic-depthcharge-tftp-ramdisk-v4l2-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-depthcharge-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'v4l2/v4l2.jinja2' %}
+
+{% endblock %}
diff --git a/templates/v4l2/generic-uboot-tftp-ramdisk-v4l2-template.jinja2 b/templates/v4l2/generic-uboot-tftp-ramdisk-v4l2-template.jinja2
new file mode 100644
index 0000000..eb51a9c
--- /dev/null
+++ b/templates/v4l2/generic-uboot-tftp-ramdisk-v4l2-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-uboot-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'v4l2/v4l2.jinja2' %}
+
+{% endblock %}
diff --git a/templates/v4l2/v4l2.ini b/templates/v4l2/v4l2.ini
new file mode 100644
index 0000000..225401c
--- /dev/null
+++ b/templates/v4l2/v4l2.ini
@@ -0,0 +1,6 @@
+[v4l2]
+suite: v4l2
+set: v4l2
+description: LAVA v4l2 tests
+type: functional
+defconfigs: arm-multi_v7_defconfig,arm64-defconfig,x86-x86_64_defconfig
diff --git a/templates/v4l2/v4l2.jinja2 b/templates/v4l2/v4l2.jinja2
new file mode 100644
index 0000000..7be1793
--- /dev/null
+++ b/templates/v4l2/v4l2.jinja2
@@ -0,0 +1,26 @@
+- test:
+ timeout:
+ minutes: 10
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: v4l2
+ description: "v4l2 test plan"
+ os:
+ - debian
+ scope:
+ - functional
+ run:
+ steps:
+ - lava-test-case v4l2-compliance --shell v4l2-compliance | sed "s/test /test $test/g"
+ parse:
+ pattern: 'test (?P<test_case_id>\S*):\s+(?P<result>(OK|FAIL|SKIP))'
+ fixupdict:
+ OK: pass
+ FAIL: fail
+ SKIP: skip
+ from: inline
+ name: v4l2
+ path: inline/v4l2.yaml
+