aboutsummaryrefslogtreecommitdiff
path: root/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2015-01-03 17:46:21 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2015-01-03 17:46:21 +0800
commitcf7013d6e23f0a0da3bcae5fb9d8e20639b1d21f (patch)
tree4888505a53fc2070d376945391ae48bbee333166 /build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh
downloadlava-android-test-cf7013d6e23f0a0da3bcae5fb9d8e20639b1d21f.tar.gz
first commit
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh')
-rwxr-xr-xbuild/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh b/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh
new file mode 100755
index 0000000..d7e8f7d
--- /dev/null
+++ b/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh
@@ -0,0 +1,13 @@
+#!/system/bin/sh
+
+test_func(){
+ if [ ! -f /sys/class/android_usb/android0/state ]; then
+ echo "usbhardware=fail"
+ exit
+ fi
+
+ cat /sys/class/android_usb/android0/state
+ echo "usbhardware=pass"
+}
+
+test_func