aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2018-03-21 16:58:02 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-04-13 14:43:50 +0100
commit11f11f1a016b29fa3ba540cc7999b18b33ac7497 (patch)
tree0b2da857933e420c87c519ea426b236d61ba4178 /templates
parent1753e300bb3b642b8e433c8e8ce33a7d2d82e3da (diff)
Add test plan for testing the USB subsystem
For now, it just checks that lsusb's output is non-empty. Most devices will have at least one USB device, and those that don't can have any kind of non-intrusive USB device plugged in. This will test for now that the driver for the host USB controller probed correctly and the very basics are working.
Diffstat (limited to 'templates')
-rw-r--r--templates/usb/generic-depthcharge-tftp-ramdisk-usb-template.jinja27
-rw-r--r--templates/usb/generic-uboot-tftp-ramdisk-usb-template.jinja27
-rw-r--r--templates/usb/usb.ini6
-rw-r--r--templates/usb/usb.jinja220
4 files changed, 40 insertions, 0 deletions
diff --git a/templates/usb/generic-depthcharge-tftp-ramdisk-usb-template.jinja2 b/templates/usb/generic-depthcharge-tftp-ramdisk-usb-template.jinja2
new file mode 100644
index 0000000..285dd48
--- /dev/null
+++ b/templates/usb/generic-depthcharge-tftp-ramdisk-usb-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-depthcharge-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'usb/usb.jinja2' %}
+
+{% endblock %}
diff --git a/templates/usb/generic-uboot-tftp-ramdisk-usb-template.jinja2 b/templates/usb/generic-uboot-tftp-ramdisk-usb-template.jinja2
new file mode 100644
index 0000000..45a05ab
--- /dev/null
+++ b/templates/usb/generic-uboot-tftp-ramdisk-usb-template.jinja2
@@ -0,0 +1,7 @@
+{% extends 'boot/generic-uboot-tftp-ramdisk-template.jinja2' %}
+{% block actions %}
+{{ super () }}
+
+{% include 'usb/usb.jinja2' %}
+
+{% endblock %}
diff --git a/templates/usb/usb.ini b/templates/usb/usb.ini
new file mode 100644
index 0000000..03e01d0
--- /dev/null
+++ b/templates/usb/usb.ini
@@ -0,0 +1,6 @@
+[usb]
+suite: usb
+set: usb
+description: LAVA USB tests
+type: functional
+defconfigs: arm-multi_v7_defconfig,arm64-defconfig,x86-x86_64_defconfig
diff --git a/templates/usb/usb.jinja2 b/templates/usb/usb.jinja2
new file mode 100644
index 0000000..b15ee8d
--- /dev/null
+++ b/templates/usb/usb.jinja2
@@ -0,0 +1,20 @@
+- test:
+ timeout:
+ minutes: 5
+ definitions:
+ - repository:
+ metadata:
+ format: Lava-Test Test Definition 1.0
+ name: USB
+ description: "USB test plan"
+ os:
+ - oe
+ scope:
+ - functional
+ run:
+ steps:
+ - lsusb
+ - lava-test-case usb-presence --shell test -n \"$(lsusb)\"
+ from: inline
+ name: usb
+ path: inline/usb.yaml