blob: eaa47a2bc4f074dc3e68b680b64045e992ff935c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
}
|