summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2020-08-31 17:08:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 15:58:05 +0100
commit5ccf343c5e7d473323048518883a6a9d7a67d2f6 (patch)
treead885e5cf234a0c02689702314f09deaa6efbf87
parent7cb4e9ab8c1596281060e94a216966060103956e (diff)
downloadopenembedded-core-contrib-5ccf343c5e7d473323048518883a6a9d7a67d2f6.tar.gz
openembedded-core-contrib-5ccf343c5e7d473323048518883a6a9d7a67d2f6.tar.bz2
openembedded-core-contrib-5ccf343c5e7d473323048518883a6a9d7a67d2f6.zip
glib-networking: add ptest
Results: $ ./run-ptest Running test: glib-networking/connection-gnutls.test [snip] PASS: glib-networking/connection-gnutls.test Running test: glib-networking/file-database-gnutls.test [snip] PASS: glib-networking/file-database-gnutls.test Running test: glib-networking/certificate-gnutls.test [snip] PASS: glib-networking/certificate-gnutls.test SUMMARY: total=3; passed=3; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=12896 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/glib-networking/glib-networking/run-ptest3
-rw-r--r--meta/recipes-core/glib-networking/glib-networking_2.64.3.bb7
2 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-core/glib-networking/glib-networking/run-ptest b/meta/recipes-core/glib-networking/glib-networking/run-ptest
new file mode 100644
index 0000000000..6d520f94f6
--- /dev/null
+++ b/meta/recipes-core/glib-networking/glib-networking/run-ptest
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+gnome-desktop-testing-runner glib-networking
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.64.3.bb b/meta/recipes-core/glib-networking/glib-networking_2.64.3.bb
index c34ae508f6..074389f552 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.64.3.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.64.3.bb
@@ -12,16 +12,19 @@ DEPENDS = "glib-2.0"
SRC_URI[archive.md5sum] = "eb382907ec941fe2fb1a9676b75acf7a"
SRC_URI[archive.sha256sum] = "937a06b124052813bfc0b0b86bff42016ff01067582e1aca65bb6dbe0845a168"
-PACKAGECONFIG ??= "gnutls"
+PACKAGECONFIG ??= "gnutls ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
PACKAGECONFIG[gnutls] = "-Dgnutls=enabled,-Dgnutls=disabled,gnutls"
PACKAGECONFIG[openssl] = "-Dopenssl=enabled,-Dopenssl=disabled,openssl"
PACKAGECONFIG[libproxy] = "-Dlibproxy=enabled,-Dlibproxy=disabled,libproxy"
+PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false"
EXTRA_OEMESON = "-Dgnome_proxy=disabled"
GNOMEBASEBUILDCLASS = "meson"
-inherit gnomebase gettext upstream-version-is-even gio-module-cache
+inherit gnomebase gettext upstream-version-is-even gio-module-cache ptest-gnome
+
+SRC_URI += "file://run-ptest"
FILES_${PN} += "\
${libdir}/gio/modules/libgio*.so \