summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support')
-rwxr-xr-xmeta/recipes-support/libusb/libusb1/run-ptest32
1 files changed, 23 insertions, 9 deletions
diff --git a/meta/recipes-support/libusb/libusb1/run-ptest b/meta/recipes-support/libusb/libusb1/run-ptest
index 646a966ef9..eaa47a2bc4 100755
--- a/meta/recipes-support/libusb/libusb1/run-ptest
+++ b/meta/recipes-support/libusb/libusb1/run-ptest
@@ -4,12 +4,26 @@ echo
4echo "---------------------------- libusb1 tests ---------------------------" 4echo "---------------------------- libusb1 tests ---------------------------"
5echo 5echo
6 6
7./stress | tr '\n' ' ' | \ 7./stress | { \
8sed 's/Starting test run: \([a-zA-Z_]*\)\.\.\. \([a-zA-Z_]*\) (.) /\2 \1\n/g' | \ 8while read -r str
9sed '$d' | \ 9do
10sed '{ 10 echo "$str"
11 s/^Success/PASS:/g 11 if [ "${str#*Starting test run:}" != "$str" ]
12 s/^Failure/FAIL:/g 12 then
13 s/^Error/FAIL:/g 13 name="${str#Starting test run: }"
14 s/^Skip/SKIP:/g 14 name="${name%...}"
15}' 15 else
16 case "$str" in
17 "Success (0)")
18 echo "PASS: $name"
19 ;;
20 "Failure (1)" | "Error (2)")
21 echo "FAIL: $name"
22 ;;
23 "Skip (3)")
24 echo "SKIP: $name"
25 ;;
26 esac
27 fi
28done
29}