bash: Use new _ptest functions

(From OE-Core rev: 1839f969bc5d6e1555f5e5d218c0265f817fe300)

Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Björn Stenberg 2013-03-06 10:41:11 +01:00 committed by Richard Purdie
parent 6819d000cb
commit 00b7714152
1 changed files with 6 additions and 9 deletions

View File

@ -25,10 +25,8 @@ do_configure_prepend () {
fi
}
do_compile_append () {
if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then
oe_runmake buildtest
fi
do_compile_ptest () {
oe_runmake buildtest
}
do_install_append () {
@ -37,12 +35,11 @@ do_install_append () {
mkdir -p ${D}${base_bindir}
mv ${D}${bindir}/bash ${D}${base_bindir}
fi
}
if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then
ptest_do_install
make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
cp ${B}/Makefile ${D}${PTEST_PATH}
fi
do_install_ptest () {
make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
cp ${B}/Makefile ${D}${PTEST_PATH}
}
pkg_postinst_${PN} () {