mirror of
https://git.yoctoproject.org/poky
synced 2026-07-27 07:27:12 +00:00
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>
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
basedir=$(dirname $0)
|
||||||
|
. $basedir/common
|
||||||
|
|
||||||
|
output() {
|
||||||
|
if [ $? -eq 0 ]; \
|
||||||
|
then echo "PASS: $i"; \
|
||||||
|
else echo "FAIL: $i"; \
|
||||||
|
fi;
|
||||||
|
}
|
||||||
|
|
||||||
|
for i in test_simple_sequence test_undetected_loop; \
|
||||||
|
do $i &>/dev/null ; output; \
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -rf ${tmpdir}
|
||||||
@@ -11,7 +11,9 @@ PR = "r1"
|
|||||||
SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \
|
SRC_URI = "ftp://ftp.suse.com/pub/projects/init/${BPN}-${PV}.tar.bz2 \
|
||||||
file://makefile.patch \
|
file://makefile.patch \
|
||||||
file://disable_runtests.patch \
|
file://disable_runtests.patch \
|
||||||
file://insserv.conf"
|
file://insserv.conf \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "4a97d900855148842b1aa8f33b988b47"
|
SRC_URI[md5sum] = "4a97d900855148842b1aa8f33b988b47"
|
||||||
SRC_URI[sha256sum] = "89a0a093b1cf3d802ad40568e64b496b493f51ff9825905c8bd12738b374ca47"
|
SRC_URI[sha256sum] = "89a0a093b1cf3d802ad40568e64b496b493f51ff9825905c8bd12738b374ca47"
|
||||||
@@ -27,3 +29,13 @@ do_install_class-native () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "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"
|
||||||
|
|||||||
Reference in New Issue
Block a user