summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/insserv/insserv_1.14.0.bb
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2014-02-20 18:55:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-21 16:09:08 +0000
commitdffa543035e66b5b67afbdff64ebba5772cfb1af (patch)
tree9a0c1f4b6a27e7d3ac644419a2e53f11b394162b /meta/recipes-devtools/insserv/insserv_1.14.0.bb
parent4590a00af50cc69e120a5a186e87c4abf43bb9ca (diff)
downloadast2050-yocto-poky-dffa543035e66b5b67afbdff64ebba5772cfb1af.zip
ast2050-yocto-poky-dffa543035e66b5b67afbdff64ebba5772cfb1af.tar.gz
insserv: enable ptest support
Install insserv test suite and run it as ptest. (From OE-Core rev: 5bb786241907bb0304edb25ac1d398b3ae7f3be0) 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>
Diffstat (limited to 'meta/recipes-devtools/insserv/insserv_1.14.0.bb')
-rw-r--r--meta/recipes-devtools/insserv/insserv_1.14.0.bb14
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/recipes-devtools/insserv/insserv_1.14.0.bb b/meta/recipes-devtools/insserv/insserv_1.14.0.bb
index 1d1f59d..4a33e16 100644
--- a/meta/recipes-devtools/insserv/insserv_1.14.0.bb
+++ b/meta/recipes-devtools/insserv/insserv_1.14.0.bb
@@ -11,7 +11,9 @@ PR = "r1"
SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \
file://makefile.patch \
file://disable_runtests.patch \
- file://insserv.conf"
+ file://insserv.conf \
+ file://run-ptest \
+"
SRC_URI[md5sum] = "4a97d900855148842b1aa8f33b988b47"
SRC_URI[sha256sum] = "89a0a093b1cf3d802ad40568e64b496b493f51ff9825905c8bd12738b374ca47"
@@ -27,3 +29,13 @@ do_install_class-native () {
}
BBCLASSEXTEND = "native"
+
+inherit ptest
+
+do_install_ptest() {
+ for i in common suite; do cp ${S}/tests/$i ${D}${PTEST_PATH}; done
+ sed -e 's|${\PWD}/insserv|insserv|;/trap/d' -i ${D}${PTEST_PATH}/suite
+ sed -e '/test_simple_sequence$/d;/test_undetected_loop$/d' -i ${D}${PTEST_PATH}/common
+}
+
+RDEPENDS_${PN}-ptest += "bash"
OpenPOWER on IntegriCloud