mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-10-22 15:03:59 +02:00
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>
This commit is contained in:
parent
1559130d37
commit
b833fdc421
4
meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest
Normal file
4
meta-oe/recipes-core/libxml/libxml++-5.0/run-ptest
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
for t in `ls ./*_test`; do
|
||||
$t && echo PASS: $t || echo FAIL: $t
|
||||
done
|
|
@ -11,11 +11,21 @@ DEPENDS = "libxml2 glibmm"
|
|||
GNOMEBN = "libxml++"
|
||||
inherit gnomebase ptest
|
||||
|
||||
SRC_URI += "file://run-ptest"
|
||||
S = "${UNPACKDIR}/libxml++-${PV}"
|
||||
|
||||
SRC_URI[archive.sha256sum] = "e9a23c436686a94698d2138e6bcbaf849121d63bfa0f50dc34fefbfd79566848"
|
||||
|
||||
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
||||
PACKAGECONFIG[tests] = "-Dbuild-tests=true, -Dbuild-tests=false"
|
||||
|
||||
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++-${@gnome_verdir("${PV}")}/include/libxml++config.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user