1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

Add ptest for bash.

(From OE-Core rev: 71e07ce8d1e4c2a50e937f0c819f025afd4677cb)

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
2012-12-19 17:18:31 +01:00
committed by Richard Purdie
parent 0c7da2f146
commit f83ff491b4
5 changed files with 93 additions and 1 deletions
+15 -1
View File
@@ -4,7 +4,7 @@ SECTION = "base/shell"
DEPENDS = "ncurses bison-native"
inherit autotools gettext update-alternatives
inherit autotools gettext update-alternatives ptest
PARALLEL_MAKE = ""
@@ -17,18 +17,32 @@ ALTERNATIVE_PRIORITY = "100"
export AUTOHEADER = "true"
RDEPENDS_${PN}-ptest += "make"
do_configure_prepend () {
if [ ! -e acinclude.m4 ]; then
cat aclocal.m4 > acinclude.m4
fi
}
do_compile_append () {
if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then
oe_runmake buildtest
fi
}
do_install_append () {
# Move /usr/bin/bash to /bin/bash, if need
if [ "${base_bindir}" != "${bindir}" ]; then
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
}
pkg_postinst_${PN} () {