summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/json-glib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-11-20 15:17:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-21 11:54:14 +0000
commit01aa606e5391dd683143b07dc95471a4cc38193c (patch)
tree4ae2f849fc71419b34ca525d789c52155cc90fdc /meta/recipes-gnome/json-glib
parent1ced01965cc28134bca5667a1faf0a16668dc449 (diff)
downloadpoky-01aa606e5391dd683143b07dc95471a4cc38193c.tar.gz
json-glib: add ptest
(From OE-Core rev: c33e9b5a6ecd43796ff88e44f68b122248145aa0) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/json-glib')
-rw-r--r--meta/recipes-gnome/json-glib/json-glib/run-ptest3
-rw-r--r--meta/recipes-gnome/json-glib/json-glib_1.4.2.bb12
2 files changed, 10 insertions, 5 deletions
diff --git a/meta/recipes-gnome/json-glib/json-glib/run-ptest b/meta/recipes-gnome/json-glib/json-glib/run-ptest
new file mode 100644
index 0000000000..0c6398a177
--- /dev/null
+++ b/meta/recipes-gnome/json-glib/json-glib/run-ptest
@@ -0,0 +1,3 @@
1#! /bin/sh
2
3gnome-desktop-testing-runner json-glib
diff --git a/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb b/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb
index 19fe3cc442..b4a6a6f2b6 100644
--- a/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb
+++ b/meta/recipes-gnome/json-glib/json-glib_1.4.2.bb
@@ -10,12 +10,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
10 10
11DEPENDS = "glib-2.0" 11DEPENDS = "glib-2.0"
12 12
13GNOMEBASEBUILDCLASS = "meson"
14inherit gnomebase lib_package gobject-introspection gtk-doc gettext ptest-gnome
15
16SRC_URI += "file://run-ptest"
13SRC_URI[archive.md5sum] = "35107e23a7bbbc70f31c34f7b9adf1c3" 17SRC_URI[archive.md5sum] = "35107e23a7bbbc70f31c34f7b9adf1c3"
14SRC_URI[archive.sha256sum] = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8" 18SRC_URI[archive.sha256sum] = "2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8"
15 19
16GNOMEBASEBUILDCLASS = "meson"
17inherit gnomebase lib_package gobject-introspection gtk-doc gettext
18
19# This builds both API docs (via gtk-doc) and manpages 20# This builds both API docs (via gtk-doc) and manpages
20GTKDOC_ENABLE_FLAG = "-Ddocs=true" 21GTKDOC_ENABLE_FLAG = "-Ddocs=true"
21GTKDOC_DISABLE_FLAG = "-Ddocs=false" 22GTKDOC_DISABLE_FLAG = "-Ddocs=false"
@@ -29,8 +30,9 @@ EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GI_DATA_ENABLED', 'T
29 '${GI_DISABLE_FLAG}', d)} " 30 '${GI_DISABLE_FLAG}', d)} "
30 31
31do_install_append() { 32do_install_append() {
32 # FIXME: these need to be provided via ptest 33 if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then
33 rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir} 34 rm -rf ${D}${datadir}/installed-tests ${D}${libexecdir}
35 fi
34} 36}
35 37
36BBCLASSEXTEND = "native nativesdk" 38BBCLASSEXTEND = "native nativesdk"