From 4dd49113a28fed3b9b33b2c1f5dd563a07e4b5ef Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Sat, 18 Oct 2025 09:20:52 +0200 Subject: [PATCH] libxml++-5.0: fix ptests The recipe inherits the ptest class, however installs no tests nor run-ptest script. This change rectifies this. Signed-off-by: Gyorgy Sarvari --- meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest | 4 ++++ meta-oe/recipes-core/libxml/libxml++-5.0_5.0.1.bb | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest diff --git a/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest b/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest new file mode 100644 index 0000000000..4f54f90e09 --- /dev/null +++ b/meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest @@ -0,0 +1,4 @@ +#!/bin/sh +for t in `ls ./*_test`; do + $t && echo PASS: $t || echo FAIL: $t +done diff --git a/meta-oe/recipes-core/libxml/libxml++-5.0_5.0.1.bb b/meta-oe/recipes-core/libxml/libxml++-5.0_5.0.1.bb index c0f0b2e130..bb73f7fab7 100644 --- a/meta-oe/recipes-core/libxml/libxml++-5.0_5.0.1.bb +++ b/meta-oe/recipes-core/libxml/libxml++-5.0_5.0.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34 " SHRT_VER = "${@d.getVar('PV').split('.')[0]}.${@d.getVar('PV').split('.')[1]}" SRC_URI = "${GNOME_MIRROR}/libxml++/${SHRT_VER}/libxml++-${PV}.tar.xz \ + file://run-ptest \ " SRC_URI[sha256sum] = "15c38307a964fa6199f4da6683a599eb7e63cc89198545b36349b87cf9aa0098" @@ -16,5 +17,11 @@ DEPENDS = "libxml2 glibmm" inherit meson pkgconfig ptest +do_install_ptest(){ + for t in `ls ${B}/tests/*_test`; do + install $t ${D}${PTEST_PATH}/ + done +} + FILES:${PN}-doc += "${datadir}/devhelp" FILES:${PN}-dev += "${libdir}/libxml++-${SHRT_VER}/include/libxml++config.h"