summaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2016-02-04 02:01:12 -0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-02-04 10:45:50 +0000
commitf69ac94ddafffe41b528dde879772d53f45793be (patch)
treea864d69ab5dd7d2fb7293f8b3299b26aceee3d1f /generic
parent8f7251dd78bfe168e0d3eba56b7b46ccc5dee861 (diff)
Add USB test cases
* add usb-hid test case * add usb-storage test case * add usb-network test case * add usb-camera test case Change-Id: Ib7aae846a8a77326f989f8fc62403392eab7a677 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'generic')
-rw-r--r--generic/android/usb-ethernet.yaml33
-rw-r--r--generic/linux/usb-camera.yaml34
-rw-r--r--generic/linux/usb-ethernet.yaml33
-rw-r--r--generic/usb-hid-device.yaml35
-rw-r--r--generic/usb-storage.yaml36
5 files changed, 171 insertions, 0 deletions
diff --git a/generic/android/usb-ethernet.yaml b/generic/android/usb-ethernet.yaml
new file mode 100644
index 0000000..8c8f4fe
--- /dev/null
+++ b/generic/android/usb-ethernet.yaml
@@ -0,0 +1,33 @@
+metadata:
+ name: usb-ethernet
+ format: "Manual Test Definition 1.0"
+ description: "Test if USB Ethernet works on Android"
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - android
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - arndale
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Login as root and plug in your USB Ethernet gadget.
+ - Run "dmesg" to find the device ID. Take "eth0" for example.
+ - Run "getprop dhcp.eth0.ipaddress" to check if IP address assigned. If not, run "dhcpcd eth0" to get an IP address.
+ - Open web broswer and type "http://testdata.validation.linaro.org/media_codec/vpx_streams/" and press enter.
+ - Click "vp90-2-tos_1280x534_tile_1x4_1306kbps.webm" to download it to local storage.
+
+ expected:
+ - USB Ethernet obtains an IP address successfully
+ - File download test is successful
+ - No crash observed.
diff --git a/generic/linux/usb-camera.yaml b/generic/linux/usb-camera.yaml
new file mode 100644
index 0000000..7ac8c49
--- /dev/null
+++ b/generic/linux/usb-camera.yaml
@@ -0,0 +1,34 @@
+metadata:
+ name: usb-camera
+ format: "Manual Test Definition 1.0"
+ description: "Test if USB camera works on Linux"
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - linux
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - arndale
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Login as root and plug in your USB camera.
+ - Run "apt-get install cheese" to install Cheese.
+ - Open Cheese, go to its preference and select your USB camera.
+ - Take a photo and a video.
+ - Open the photo and play the video.
+
+ expected:
+ - In Cheese preference, USB camera appears in the device list.
+ - Photo and video taking are successful.
+ - The photo and the video look good.
+ - No crash observed.
diff --git a/generic/linux/usb-ethernet.yaml b/generic/linux/usb-ethernet.yaml
new file mode 100644
index 0000000..7d73a72
--- /dev/null
+++ b/generic/linux/usb-ethernet.yaml
@@ -0,0 +1,33 @@
+metadata:
+ name: usb-ethernet
+ format: "Manual Test Definition 1.0"
+ description: "Test if USB Ethernet works on Linux"
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - linux
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - arndale
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Login as root and plug in your USB Ethernet gadget.
+ - Run "dmesg" to find the device ID. Take "eth0" for example.
+ - Run "ifconfig eht0" to check if IP address assigned by DHCP server. If not, run "dhclient eth0" to get an IP address.
+ - "ping www.google.com"
+ - "wget http://testdata.validation.linaro.org/media_codec/vpx_streams/vp90-2-tos_1280x534_tile_1x4_1306kbps.webm"
+
+ expected:
+ - USB Ethernet obtains an IP address successfully.
+ - ping and file download tests are successful.
+ - No crash observed from serial console.
diff --git a/generic/usb-hid-device.yaml b/generic/usb-hid-device.yaml
new file mode 100644
index 0000000..5836e37
--- /dev/null
+++ b/generic/usb-hid-device.yaml
@@ -0,0 +1,35 @@
+metadata:
+ name: usb-hid-device
+ format: "Manual Test Definition 1.0"
+ description: "Test if USB HID device can be detected and works properly"
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - android
+ - linux
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - vexpress-a9
+ - vexpress-tc2
+ - arndale
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Connect USB keyboard and mouse to the device.
+ - Boot the board.
+ - Open an editor and press keyboard keys to check if it works properly.
+ - Check mouse buttons by opening some applications.
+ - Reconnect USB keyboard and mouse and do the previous two steps.
+
+ expected:
+ - USB keyboard and mouse should be detected successfully.
+ - USB keyboard and mouse should work properly.
+ - USB keyboard and mouse should work properly after hotplug.
+ - No crash is observed from serial console.
diff --git a/generic/usb-storage.yaml b/generic/usb-storage.yaml
new file mode 100644
index 0000000..54a47b2
--- /dev/null
+++ b/generic/usb-storage.yaml
@@ -0,0 +1,36 @@
+metadata:
+ name: usb-storage
+ format: "Manual Test Definition 1.0"
+ description: "Basic test for USB keyboard functionality"
+ maintainer:
+ - chase.qi@linaro.org
+ os:
+ - android
+ - linux
+ scope:
+ - functional
+ devices:
+ - panda
+ - panda-es
+ - arndale
+ - hi6220-hikey
+ - apq8016-sbc
+ - hi6220-hikey
+ - apq8016-sbc
+ environment:
+ - manual-test
+
+run:
+ steps:
+ - Login in as root and plug in your USB storage device.
+ - Run "demsg" to find the device ID. Take "sda1" for example.
+ - Run the following command to mount the disk. Modify the disk format as needed.
+ - On Linux, run "mount /dev/sda1 /mnt/"
+ - On Android, run "mount -t vfat /dev/block/sda1 /mnt/"
+ - Copy a file to /mnt and then delete the file.
+ - Execute "umount /mnt" to umount the device.
+
+ expected:
+ - Disk mount and umount tests are successful.
+ - File copying is successful and the file can be deleted.
+ - No crash is observed from serial console.