Skip to contentSkip to conversation

xdg-dbus-proxy: add ptests

PATCH New Colin McAllister 1 participant 1 message Mar 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xdg-dbus-proxy: add ptests

Adds ptest support for xdg-dbus-proxy.

---
 .../xdg-dbus-proxy/xdg-dbus-proxy/run-ptest          |  2 ++
 .../xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb           | 12 ++++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100755 meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/run-ptest
meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/run-ptest new file +2 -0
new file mode 100755
index 0000000000..ff4b0b49ad
@@ -0,0 +1,2 @@
+#!/bin/sh
+gnome-desktop-testing-runner xdg-dbus-proxy
meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb +10 -2
index 43536f5d7b..28773163c5 100644
@@ -9,10 +9,18 @@ DEPENDS = " \
     docbook-xsl-stylesheets-native \
 "
 
-inherit meson pkgconfig
+inherit meson pkgconfig ptest-gnome
 
-SRC_URI = "git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main"
+SRC_URI = " \
+    git://github.com/flatpak/xdg-dbus-proxy.git;protocol=https;branch=main \
+    file://run-ptest \
+    "
 
 SRCREV = "1c1989e56f94b9eb3b7567f8a6e8a0aa16cba496"
 
+PACKAGECONFIG = "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
+PACKAGECONFIG[tests] = "-Dtests=true -Dinstalled_tests=true,-Dtests=false -Dinstalled_tests=false"
+
+RDEPENDS:${PN}-ptest += "dbus"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.53.0