diff options
| -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" |
