diff options
Diffstat (limited to 'meta/recipes-support/libusb')
-rwxr-xr-x | meta/recipes-support/libusb/libusb1/run-ptest | 32 |
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 | |||
4 | echo "---------------------------- libusb1 tests ---------------------------" | 4 | echo "---------------------------- libusb1 tests ---------------------------" |
5 | echo | 5 | echo |
6 | 6 | ||
7 | ./stress | tr '\n' ' ' | \ | 7 | ./stress | { \ |
8 | sed 's/Starting test run: \([a-zA-Z_]*\)\.\.\. \([a-zA-Z_]*\) (.) /\2 \1\n/g' | \ | 8 | while read -r str |
9 | sed '$d' | \ | 9 | do |
10 | sed '{ | 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 | ||
28 | done | ||
29 | } | ||