diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-10-18 09:04:44 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-18 09:31:14 -0700 |
| commit | b833fdc421997ac124f23f8dffc9f70c34bc15ad (patch) | |
| tree | 5252128f0a6d4dd81e8447570dbe835d29ed0a9b | |
| parent | 1559130d37760db06573a2ab40127c37107ff019 (diff) | |
| download | meta-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-ptest | 4 | ||||
| -rw-r--r-- | meta-oe/recipes-core/libxml/libxml++-5.0_5.4.0.bb | 10 |
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 | ||
| 2 | for t in `ls ./*_test`; do | ||
| 3 | $t && echo PASS: $t || echo FAIL: $t | ||
| 4 | done | ||
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" | |||
| 11 | GNOMEBN = "libxml++" | 11 | GNOMEBN = "libxml++" |
| 12 | inherit gnomebase ptest | 12 | inherit gnomebase ptest |
| 13 | 13 | ||
| 14 | SRC_URI += "file://run-ptest" | ||
| 14 | S = "${UNPACKDIR}/libxml++-${PV}" | 15 | S = "${UNPACKDIR}/libxml++-${PV}" |
| 15 | 16 | ||
| 16 | SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" | 17 | SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848" |
| 17 | 18 | ||
| 18 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" | 19 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)" |
| 19 | 20 | ||
| 21 | PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}" | ||
| 22 | PACKAGECONFIG[tests] = "-Dbuild-tests=true, -Dbuild-tests=false" | ||
| 23 | |||
| 24 | do_install_ptest(){ | ||
| 25 | for t in `ls ${B}/tests/*_test`; do | ||
| 26 | install $t ${D}${PTEST_PATH}/ | ||
| 27 | done | ||
| 28 | } | ||
| 29 | |||
| 20 | FILES:${PN}-doc += "${datadir}/devhelp" | 30 | FILES:${PN}-doc += "${datadir}/devhelp" |
| 21 | FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h" | 31 | FILES:${PN}-dev += "${libdir}/libxml++-${@gnome_verdir("${PV}")}/include/libxml++config.h" |
