summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-10-18 09:04:44 +0200
committerKhem Raj <raj.khem@gmail.com>2025-10-18 09:31:14 -0700
commitb833fdc421997ac124f23f8dffc9f70c34bc15ad (patch)
tree5252128f0a6d4dd81e8447570dbe835d29ed0a9b
parent1559130d37760db06573a2ab40127c37107ff019 (diff)
downloadmeta-openembedded-b833fdc421997ac124f23f8dffc9f70c34bc15ad.tar.gz
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 <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest4
-rw-r--r--meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb10
2 files changed, 14 insertions, 0 deletions
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 @@
1#!/bin/sh
2for t in `ls ./*_test`; do
3 $t && echo PASS: $t || echo FAIL: $t
4done
diff --git a/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb b/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
index e4fdac2c2c..cd16ec862f 100644
--- a/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
+++ b/meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb
@@ -11,11 +11,21 @@ DEPENDS = "libxml2 glibmm"
11GNOMEBN = "libxml++" 11GNOMEBN = "libxml++"
12inherit gnomebase ptest 12inherit gnomebase ptest
13 13
14SRC_URI += "file://run-ptest"
14S = "${UNPACKDIR}/libxml++-${PV}" 15S = "${UNPACKDIR}/libxml++-${PV}"
15 16
16SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" 17SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848"
17 18
18UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" 19UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
19 20
21PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
22PACKAGECONFIG[tests] = "-Dbuild-tests=true, -Dbuild-tests=false"
23
24do_install_ptest(){
25 for t in `ls ${B}/tests/*_test`; do
26 install $t ${D}${PTEST_PATH}/
27 done
28}
29
20FILES:${PN}-doc += "${datadir}/devhelp" 30FILES:${PN}-doc += "${datadir}/devhelp"
21FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h" 31FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h"