diff options
Diffstat (limited to 'meta/recipes-extended/sed/sed_4.2.2.bb')
-rw-r--r-- | meta/recipes-extended/sed/sed_4.2.2.bb | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/meta/recipes-extended/sed/sed_4.2.2.bb b/meta/recipes-extended/sed/sed_4.2.2.bb index 47c8b5b14f..74ac16bea9 100644 --- a/meta/recipes-extended/sed/sed_4.2.2.bb +++ b/meta/recipes-extended/sed/sed_4.2.2.bb @@ -5,14 +5,19 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ file://sed/sed.h;beginline=1;endline=17;md5=767ab3a06d7584f6fd0469abaec4412f" SECTION = "console/utils" -SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz" +SRC_URI = "${GNU_MIRROR}/sed/sed-${PV}.tar.gz \ + file://sed-add-ptest.patch \ + file://run-ptest \ +" SRC_URI[md5sum] = "4111de4faa3b9848a0686b2f260c5056" SRC_URI[sha256sum] = "fea0a94d4b605894f3e2d5572e3f96e4413bcad3a085aae7367c2cf07908b2ff" -inherit autotools texinfo update-alternatives gettext +inherit autotools texinfo update-alternatives gettext ptest +RDEPENDS_${PN}-ptest += "make locale-base-ru-ru" -EXTRA_OECONF = "--disable-acl" +EXTRA_OECONF = "--disable-acl \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '--enable-regex-tests', '', d)}" do_install () { autotools_do_install @@ -25,4 +30,14 @@ ALTERNATIVE_${PN} = "sed" ALTERNATIVE_LINK_NAME[sed] = "${base_bindir}/sed" ALTERNATIVE_PRIORITY = "100" +TESTDIR = "testsuite" + +do_compile_ptest() { + oe_runmake -C ${TESTDIR} buildtest-TESTS +} + +do_install_ptest() { + oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} +} + BBCLASSEXTEND = "native" |