From 4b0ab26071909713e7b21ac4a544e6641139f8cd Mon Sep 17 00:00:00 2001 From: Mihaela Sendrea Date: Thu, 4 Jul 2013 16:23:43 +0200 Subject: libxml2: Add ptest Install libxml2 test suite and run it as ptest. (From OE-Core rev: 22cf4cc85fbe21a53ca4684b0b06b9af20b2ecc5) Signed-off-by: Mihaela Sendrea Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/recipes-core/libxml/libxml2.inc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'meta/recipes-core/libxml/libxml2.inc') diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc index 9b2af0f..7fb2644 100644 --- a/meta/recipes-core/libxml/libxml2.inc +++ b/meta/recipes-core/libxml/libxml2.inc @@ -13,12 +13,16 @@ DEPENDS_class-nativesdk = "nativesdk-python" DEPENDS_class-native = "python-native" DEPENDS =+ "zlib" -SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz \ +SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar \ file://libxml-64bit.patch \ - file://ansidecl.patch" + file://ansidecl.patch \ + file://runtest.patch \ + file://run-ptest \ + " +inherit autotools pkgconfig binconfig pythonnative ptest -inherit autotools pkgconfig binconfig pythonnative +RDEPENDS_${PN}-ptest_append_libc-glibc += "eglibc-gconv-ebcdic-us eglibc-gconv-ibm1141" # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header do_configure_prepend () { @@ -49,4 +53,8 @@ PACKAGES += "${PN}-utils" FILES_${PN}-dev += "${libdir}/xml2Conf.sh" FILES_${PN}-utils += "${bindir}/*" +do_install_ptest () { + cp -r ${WORKDIR}/xmlconf ${D}${PTEST_PATH} +} + BBCLASSEXTEND = "native nativesdk" -- cgit v1.1