diff options
Diffstat (limited to 'meta/recipes-support/libusb/libusb1/run-ptest')
| -rwxr-xr-x | meta/recipes-support/libusb/libusb1/run-ptest | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-support/libusb/libusb1/run-ptest b/meta/recipes-support/libusb/libusb1/run-ptest new file mode 100755 index 0000000000..646a966ef9 --- /dev/null +++ b/meta/recipes-support/libusb/libusb1/run-ptest | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | echo | ||
| 4 | echo "---------------------------- libusb1 tests ---------------------------" | ||
| 5 | echo | ||
| 6 | |||
| 7 | ./stress | tr '\n' ' ' | \ | ||
| 8 | sed 's/Starting test run: \([a-zA-Z_]*\)\.\.\. \([a-zA-Z_]*\) (.) /\2 \1\n/g' | \ | ||
| 9 | sed '$d' | \ | ||
| 10 | sed '{ | ||
| 11 | s/^Success/PASS:/g | ||
| 12 | s/^Failure/FAIL:/g | ||
| 13 | s/^Error/FAIL:/g | ||
| 14 | s/^Skip/SKIP:/g | ||
| 15 | }' | ||
