diff options
Diffstat (limited to 'poky/meta/recipes-support/libusb/libusb1')
-rwxr-xr-x | poky/meta/recipes-support/libusb/libusb1/run-ptest | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/poky/meta/recipes-support/libusb/libusb1/run-ptest b/poky/meta/recipes-support/libusb/libusb1/run-ptest new file mode 100755 index 000000000..eaa47a2bc --- /dev/null +++ b/poky/meta/recipes-support/libusb/libusb1/run-ptest @@ -0,0 +1,29 @@ +#!/bin/sh + +echo +echo "---------------------------- libusb1 tests ---------------------------" +echo + +./stress | { \ +while read -r str +do + echo "$str" + if [ "${str#*Starting test run:}" != "$str" ] + then + name="${str#Starting test run: }" + name="${name%...}" + else + case "$str" in + "Success (0)") + echo "PASS: $name" + ;; + "Failure (1)" | "Error (2)") + echo "FAIL: $name" + ;; + "Skip (3)") + echo "SKIP: $name" + ;; + esac + fi +done +} |