diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-01-26 15:50:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-17 15:28:57 +0000 |
commit | 29a7e791aa331d0ac6e8728ff44af2d8732183d3 (patch) | |
tree | 98ac0bc699e8163b19343e29dcf14d5f125c4e55 | |
parent | 4dcd9d6ceed7262657a628546160d0dced13f45d (diff) | |
download | poky-29a7e791aa331d0ac6e8728ff44af2d8732183d3.tar.gz |
acl: enable ptest support
Install acl test suite and run it as ptest.
nfs test cases need depend on nfs service. So exclude them order to
make ptest all pass.
(From OE-Core rev: 9b42aacca362ea5c404e2fd3ac25a51790ba41a5)
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/attr/acl.inc | 14 | ||||
-rw-r--r-- | meta/recipes-support/attr/acl/run-ptest | 7 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-support/attr/acl.inc b/meta/recipes-support/attr/acl.inc index a46123286e..04967a6027 100644 --- a/meta/recipes-support/attr/acl.inc +++ b/meta/recipes-support/attr/acl.inc | |||
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://doc/COPYING;md5=c781d70ed2b4d48995b790403217a249 \ | |||
9 | file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" | 9 | file://doc/COPYING.LGPL;md5=9e9a206917f8af112da634ce3ab41764" |
10 | 10 | ||
11 | DEPENDS = "attr" | 11 | DEPENDS = "attr" |
12 | SRC_URI = "http://download.savannah.gnu.org/releases/acl/${BP}.src.tar.gz" | 12 | SRC_URI = "http://download.savannah.gnu.org/releases/acl/${BP}.src.tar.gz \ |
13 | file://run-ptest \ | ||
14 | " | ||
13 | 15 | ||
14 | require ea-acl.inc | 16 | require ea-acl.inc |
15 | 17 | ||
@@ -24,3 +26,13 @@ do_install_append() { | |||
24 | sed -i ${D}${libdir}/libacl.la -e \ | 26 | sed -i ${D}${libdir}/libacl.la -e \ |
25 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', | 27 | s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', |
26 | } | 28 | } |
29 | |||
30 | inherit ptest | ||
31 | |||
32 | do_install_ptest() { | ||
33 | tar -cf - test/ --exclude nfs | ( cd ${D}${PTEST_PATH} && tar -xf - ) | ||
34 | mkdir ${D}${PTEST_PATH}/include | ||
35 | cp ${S}/include/builddefs ${S}/include/buildmacros ${S}/include/buildrules ${D}${PTEST_PATH}/include/ | ||
36 | } | ||
37 | |||
38 | RDEPENDS_${PN}-ptest = "bash coreutils perl perl-module-filehandle perl-module-getopt-std perl-module-posix shadow" | ||
diff --git a/meta/recipes-support/attr/acl/run-ptest b/meta/recipes-support/attr/acl/run-ptest new file mode 100644 index 0000000000..3b31cc99af --- /dev/null +++ b/meta/recipes-support/attr/acl/run-ptest | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | gpasswd -a daemon bin | ||
4 | make -C test -k tests root-tests |sed \ | ||
5 | -e 's|^\[.*\] \(.*\) -- ok$|PASS: \1|' \ | ||
6 | -e 's|^\[.*\] \(.*\) -- failed|FAIL: \1|' | ||
7 | gpasswd -d daemon bin | ||