aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAna Guerrero Lopez <ana.guerrero@collabora.com>2018-06-29 10:26:14 +0200
committerMatt Hart <github@blacklabsystems.com>2018-07-05 09:43:44 +0100
commitde41a1aeed372ab98bbc378daed283aa4246537f (patch)
tree714303912b1d9ef275f4beb74e97b2670fdc9264 /templates
parentc8966b970bed75fe0c900ae8087f0e108c466345 (diff)
Add IGT test plan
Initial test plan running some of the binaries from the test suite. This test aims to cover the DRM kernel-user interface and is not specific to Intel graphics. This test plan uses /dev/kmsg for LAVA test signals, this feature requires a LAVA instance with this patch https://review.linaro.org/#/c/25377/ Signed-off-by: Ana Guerrero Lopez <ana.guerrero@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/igt/generic-depthcharge-tftp-ramdisk-igt-template.jinja27
-rw-r--r--templates/igt/generic-uboot-tftp-ramdisk-igt-template.jinja27
-rw-r--r--templates/igt/igt.ini6
-rw-r--r--templates/igt/igt.jinja238
4 files changed, 58 insertions, 0 deletions
diff --git a/templates/igt/generic-depthcharge-tftp-ramdisk-igt-template.jinja2 b/templates/igt/generic-depthcharge-tftp-ramdisk-igt-template.jinja2
new file mode 100644
index 0000000..1310d02
--- /dev/null
+++ b/templates/igt/generic-depthcharge-tftp-ramdisk-igt-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-depthcharge-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'igt/igt.jinja2' %}
+
+{% endblock %}
diff --git a/templates/igt/generic-uboot-tftp-ramdisk-igt-template.jinja2 b/templates/igt/generic-uboot-tftp-ramdisk-igt-template.jinja2
new file mode 100644
index 0000000..e11c7e2
--- /dev/null
+++ b/templates/igt/generic-uboot-tftp-ramdisk-igt-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-uboot-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'igt/igt.jinja2' %}
+
+{% endblock %}
diff --git a/templates/igt/igt.ini b/templates/igt/igt.ini
new file mode 100644
index 0000000..25783c5
--- /dev/null
+++ b/templates/igt/igt.ini
@@ -0,0 +1,6 @@
+[igt]
+suite: drm
+set: igt
+description: tests for DRM subsystem - IGT
+type: functional
+defconfigs: arm-multi_v7_defconfig,arm64-defconfig,x86-x86_64_defconfig
diff --git a/templates/igt/igt.jinja2 b/templates/igt/igt.jinja2
new file mode 100644
index 0000000..0110b66
--- /dev/null
+++ b/templates/igt/igt.jinja2
@@ -0,0 +1,38 @@
+- test:
+ timeout:
+ minutes: 10
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: igt
+ description: "IGT test plan"
+ os:
+ - oe
+ scope:
+ - functional
+ run:
+ steps:
+ - lava-test-case core_auth --shell /usr/bin/core_auth | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_get_client_auth --shell /usr/bin/core_get_client_auth | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_getclient --shell /usr/bin/core_getclient | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_getstats --shell /usr/bin/core_getstats | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_getversion --shell /usr/bin/core_getversion | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_prop_blob --shell /usr/bin/core_prop_blob | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case core_setmaster_vs_auth --shell /usr/bin/core_setmaster_vs_auth | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case drm_read --shell /usr/bin/drm_read | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case kms_addfb_basic --shell /usr/bin/kms_addfb_basic | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case kms_atomic --shell /usr/bin/kms_atomic | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case kms_flip_event_leak --shell /usr/bin/kms_flip_event_leak | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case kms_setmode --shell /usr/bin/kms_setmode | sed "s/Subtest /Subtest $test@/g"
+ - lava-test-case kms_vblank --shell /usr/bin/kms_vblank | sed "s/Subtest /Subtest $test@/g"
+ parse:
+ pattern: 'Subtest (?P<test_case_id>\S*):\s+(?P<result>(SUCCESS|FAIL|SKIP))'
+ fixupdict:
+ SUCCESS: pass
+ FAIL: fail
+ SKIP: skip
+ lava-signal: kmsg
+ from: inline
+ name: igt
+ path: inline/igt.yaml