diff options
author | Björn Stenberg <bjst@enea.com> | 2012-12-19 17:18:31 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-26 11:34:05 +0000 |
commit | f83ff491b4812e9b68df5a55391ac3f4e18755ae (patch) | |
tree | eaad33ecefcb4841301a5eb2c220da882d65849d /meta/recipes-extended/bash/bash.inc | |
parent | 0c7da2f1467e01d87c20ca5d033d1d3838e10f79 (diff) | |
download | poky-f83ff491b4812e9b68df5a55391ac3f4e18755ae.tar.gz |
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>
Diffstat (limited to 'meta/recipes-extended/bash/bash.inc')
-rw-r--r-- | meta/recipes-extended/bash/bash.inc | 16 |
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 | ||
5 | DEPENDS = "ncurses bison-native" | 5 | DEPENDS = "ncurses bison-native" |
6 | 6 | ||
7 | inherit autotools gettext update-alternatives | 7 | inherit autotools gettext update-alternatives ptest |
8 | 8 | ||
9 | PARALLEL_MAKE = "" | 9 | PARALLEL_MAKE = "" |
10 | 10 | ||
@@ -17,18 +17,32 @@ ALTERNATIVE_PRIORITY = "100" | |||
17 | 17 | ||
18 | export AUTOHEADER = "true" | 18 | export AUTOHEADER = "true" |
19 | 19 | ||
20 | RDEPENDS_${PN}-ptest += "make" | ||
21 | |||
20 | do_configure_prepend () { | 22 | do_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 | ||
28 | do_compile_append () { | ||
29 | if [ "${PN}" = "${BPN}" -a ${PTEST_ENABLED} = "1" ]; then | ||
30 | oe_runmake buildtest | ||
31 | fi | ||
32 | } | ||
33 | |||
26 | do_install_append () { | 34 | do_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 | ||
34 | pkg_postinst_${PN} () { | 48 | pkg_postinst_${PN} () { |