summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bash/bash.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/bash/bash.inc')
-rw-r--r--meta/recipes-extended/bash/bash.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index f1de931e82..20a23f030f 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -4,7 +4,7 @@ SECTION = "base/shell"
4 4
5DEPENDS = "ncurses bison-native" 5DEPENDS = "ncurses bison-native"
6 6
7inherit autotools gettext update-alternatives 7inherit autotools gettext update-alternatives ptest
8 8
9PARALLEL_MAKE = "" 9PARALLEL_MAKE = ""
10 10
@@ -17,18 +17,32 @@ ALTERNATIVE_PRIORITY = "100"
17 17
18export AUTOHEADER = "true" 18export AUTOHEADER = "true"
19 19
20RDEPENDS_${PN}-ptest += "make"
21
20do_configure_prepend () { 22do_configure_prepend () {
21 if [ ! -e acinclude.m4 ]; then 23 if [ ! -e acinclude.m4 ]; then
22 cat aclocal.m4 > acinclude.m4 24 cat aclocal.m4 > acinclude.m4
23 fi 25 fi
24} 26}
25 27
28do_compile_append () {
29 if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then
30 oe_runmake buildtest
31 fi
32}
33
26do_install_append () { 34do_install_append () {
27 # Move /usr/bin/bash to /bin/bash, if need 35 # Move /usr/bin/bash to /bin/bash, if need
28 if [ "${base_bindir}" != "${bindir}" ]; then 36 if [ "${base_bindir}" != "${bindir}" ]; then
29 mkdir -p ${D}${base_bindir} 37 mkdir -p ${D}${base_bindir}
30 mv ${D}${bindir}/bash ${D}${base_bindir} 38 mv ${D}${bindir}/bash ${D}${base_bindir}
31 fi 39 fi
40
41 if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then
42 ptest_do_install
43 make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
44 cp ${B}/Makefile ${D}${PTEST_PATH}
45 fi
32} 46}
33 47
34pkg_postinst_${PN} () { 48pkg_postinst_${PN} () {