diff options
author | Yi Fan Yu <yifan.yu@windriver.com> | 2021-02-19 01:03:09 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-21 22:01:28 +0000 |
commit | d920e8cb33bc82945cefa2371c5a491dd28fd1b4 (patch) | |
tree | 4080a85dbe4f0d7d7e1b44219a8a59c12a441dcf /meta/recipes-support/libnl/files/run-ptest | |
parent | d54cada0629176ba916ad48103cbb62436561062 (diff) | |
download | poky-d920e8cb33bc82945cefa2371c5a491dd28fd1b4.tar.gz |
libnl: add ptest support
All tests are installed, but only what `make check`
runs is run, so currently that's 1 test named `check-all`
`libcheck` needs to be present for ./configure to generate
the check* tests.
An issue asking about upstream testing strategy is opened at
https://github.com/thom311/libnl/issues/270
(From OE-Core rev: 23a785a373f76a24f4f7dd867522ce296cbf30f3)
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libnl/files/run-ptest')
-rwxr-xr-x | meta/recipes-support/libnl/files/run-ptest | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-support/libnl/files/run-ptest b/meta/recipes-support/libnl/files/run-ptest new file mode 100755 index 0000000000..e5c9eb0a32 --- /dev/null +++ b/meta/recipes-support/libnl/files/run-ptest | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | num_fail=0 | ||
4 | |||
5 | for test in check* | ||
6 | do | ||
7 | ./"$test" \ | ||
8 | && echo "PASS: $test" \ | ||
9 | || { | ||
10 | echo "FAIL: $test" | ||
11 | num_fail=$(( ${num_fail} + 1)) | ||
12 | } | ||
13 | |||
14 | done | ||
15 | |||
16 | exit $num_fail | ||