Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | echo | ||||
4 | echo "---------------------------- libusb1 tests ---------------------------" | ||||
5 | echo | ||||
6 | |||||
7 | ./stress | { \ | ||||
8 | while read -r str | ||||
9 | do | ||||
10 | echo "$str" | ||||
11 | if [ "${str#*Starting test run:}" != "$str" ] | ||||
12 | then | ||||
13 | name="${str#Starting test run: }" | ||||
14 | name="${name%...}" | ||||
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 | } |