diff options
Diffstat (limited to 'meta/recipes-devtools/insserv')
-rw-r--r-- | meta/recipes-devtools/insserv/files/run-ptest | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/insserv/insserv_1.14.0.bb | 14 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-devtools/insserv/files/run-ptest b/meta/recipes-devtools/insserv/files/run-ptest new file mode 100644 index 0000000000..495d1551c2 --- /dev/null +++ b/meta/recipes-devtools/insserv/files/run-ptest | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | basedir=$(dirname $0) | ||
4 | . $basedir/common | ||
5 | |||
6 | output() { | ||
7 | if [ $? -eq 0 ]; \ | ||
8 | then echo "PASS: $i"; \ | ||
9 | else echo "FAIL: $i"; \ | ||
10 | fi; | ||
11 | } | ||
12 | |||
13 | for i in test_simple_sequence test_undetected_loop; \ | ||
14 | do $i &>/dev/null ; output; \ | ||
15 | done | ||
16 | |||
17 | rm -rf ${tmpdir} | ||
diff --git a/meta/recipes-devtools/insserv/insserv_1.14.0.bb b/meta/recipes-devtools/insserv/insserv_1.14.0.bb index 1d1f59dd8c..4a33e16912 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" | |||
11 | SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \ | 11 | SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \ |
12 | file://makefile.patch \ | 12 | file://makefile.patch \ |
13 | file://disable_runtests.patch \ | 13 | file://disable_runtests.patch \ |
14 | file://insserv.conf" | 14 | file://insserv.conf \ |
15 | file://run-ptest \ | ||
16 | " | ||
15 | 17 | ||
16 | SRC_URI[md5sum] = "4a97d900855148842b1aa8f33b988b47" | 18 | SRC_URI[md5sum] = "4a97d900855148842b1aa8f33b988b47" |
17 | SRC_URI[sha256sum] = "89a0a093b1cf3d802ad40568e64b496b493f51ff9825905c8bd12738b374ca47" | 19 | SRC_URI[sha256sum] = "89a0a093b1cf3d802ad40568e64b496b493f51ff9825905c8bd12738b374ca47" |
@@ -27,3 +29,13 @@ do_install_class-native () { | |||
27 | } | 29 | } |
28 | 30 | ||
29 | BBCLASSEXTEND = "native" | 31 | BBCLASSEXTEND = "native" |
32 | |||
33 | inherit ptest | ||
34 | |||
35 | do_install_ptest() { | ||
36 | for i in common suite; do cp ${S}/tests/$i ${D}${PTEST_PATH}; done | ||
37 | sed -e 's|${\PWD}/insserv|insserv|;/trap/d' -i ${D}${PTEST_PATH}/suite | ||
38 | sed -e '/test_simple_sequence$/d;/test_undetected_loop$/d' -i ${D}${PTEST_PATH}/common | ||
39 | } | ||
40 | |||
41 | RDEPENDS_${PN}-ptest += "bash" | ||