diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2018-03-04 04:41:49 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-06 06:19:18 -0800 |
commit | d41bcbdebfbb4356a6b0388cf3c660dbd5ef9065 (patch) | |
tree | 5914fcdd75001611425e1940a90ce7b15365f01e /meta/files/ptest-perl | |
parent | dc7ec9b8e0d4fc692184ec2827a28a32457cdc6f (diff) | |
download | poky-d41bcbdebfbb4356a6b0388cf3c660dbd5ef9065.tar.gz |
meta/classes: add ptest-perl.bbclass
* Enable easier testing of perl modules
- Installs t/* to PTEST_PATH
- Uses common run-ptest script
(From OE-Core rev: aeffa15350252489c62cd221b2e0548043fec548)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files/ptest-perl')
-rw-r--r-- | meta/files/ptest-perl/run-ptest | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/files/ptest-perl/run-ptest b/meta/files/ptest-perl/run-ptest new file mode 100644 index 0000000000..c9f9ca94d0 --- /dev/null +++ b/meta/files/ptest-perl/run-ptest | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for case in `find t -type f -name '*.t'`; do | ||
4 | perl $case >$case.output 2>&1 | ||
5 | ret=$? | ||
6 | cat $case.output | ||
7 | if [ $ret -ne 0 ]; then | ||
8 | echo "FAIL: ${case%.t}" | ||
9 | elif grep -i 'SKIP' $case.output; then | ||
10 | echo "SKIP: ${case%.t}" | ||
11 | else | ||
12 | echo "PASS: ${case%.t}" | ||
13 | fi | ||
14 | |||
15 | rm -f $case.output | ||
16 | done | ||