diff options
author | Maksym Kokhan via Openembedded-core <openembedded-core@lists.openembedded.org> | 2018-08-06 17:16:58 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-09 23:47:56 +0100 |
commit | a15cad08de6bd4aa1e311aa1c7d6e2cfd1edaeaa (patch) | |
tree | b0aefc1fd4046ac3c5245e30ec82fe0f5aa90f9b /meta/recipes-support/libusb/libusb1 | |
parent | b9aaae417a2ce1efec99a05b0357474cc206b16a (diff) | |
download | poky-a15cad08de6bd4aa1e311aa1c7d6e2cfd1edaeaa.tar.gz |
libusb: Add ptest
The run-ptest script was added to run existing libusb1 tests and libusb1
recipe was changed to add ptest support to that package.
(From OE-Core rev: 3f0106bf2e41197def3bf0a5b184b73a9802fb91)
Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
Reviewed-by: Andrii Bordunov <andrii.bordunov@globallogic.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libusb/libusb1')
-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 | }' | ||