aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxml/libxml2.inc
diff options
context:
space:
mode:
authorMihaela Sendrea <mihaela.sendrea@enea.com>2013-07-04 16:23:43 +0200
committerSaul Wold <sgw@linux.intel.com>2013-07-09 07:56:14 -0700
commit22cf4cc85fbe21a53ca4684b0b06b9af20b2ecc5 (patch)
tree43f0843457c8af33ad2afec4893964f55db3eb54 /meta/recipes-core/libxml/libxml2.inc
parentd084c31720f9c13a71c5981f4eda21e18ba2350f (diff)
downloadopenembedded-core-contrib-22cf4cc85fbe21a53ca4684b0b06b9af20b2ecc5.tar.gz
libxml2: Add ptest
Install libxml2 test suite and run it as ptest. Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/libxml/libxml2.inc')
-rw-r--r--meta/recipes-core/libxml/libxml2.inc14
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc
index 9b2af0ff8a..7fb2644416 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"