]> code.ossystems Code Review - openembedded-core.git/commitdiff
json-glib: use PACKAGECONFIG for tests
authorRoss Burton <ross@burtonini.com>
Wed, 4 Nov 2020 12:12:15 +0000 (12:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 8 Nov 2020 14:03:16 +0000 (14:03 +0000)
json-glib 1.6 has an option to enable or disable the tests, so use that
instead of a do_install_append.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-gnome/json-glib/json-glib_1.6.0.bb

index 82f983f3c5bf3a4c0571fbf1a582183d4c50405f..59b0609900bd62cecc87107308a36ec9a882e3c6 100644 (file)
@@ -23,13 +23,9 @@ SRC_URI += "file://run-ptest \
             file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch"
 SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73"
 
+PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native"
-
-do_install_append() {
-       if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
-               rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir}
-       fi
-}
+PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
 
 BBCLASSEXTEND = "native nativesdk"