diff mbox series

[meta-oe] xdg-dbus-proxy: add ptests

Message ID 20260320220910.3129299-1-colinmca242@gmail.com
State Under Review
Headers show
Series [meta-oe] xdg-dbus-proxy: add ptests | expand

Commit Message

Colin McAllister March 20, 2026, 10:09 p.m. UTC
Adds ptest support for xdg-dbus-proxy.

Signed-off-by: Colin Pinnell McAllister <colinmca242@gmail.com>
---
 .../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
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/run-ptest b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/run-ptest
new file mode 100755
index 0000000000..ff4b0b49ad
--- /dev/null
+++ b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy/run-ptest
@@ -0,0 +1,2 @@ 
+#!/bin/sh
+gnome-desktop-testing-runner xdg-dbus-proxy
diff --git a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb
index 43536f5d7b..28773163c5 100644
--- a/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb
+++ b/meta-oe/recipes-support/xdg-dbus-proxy/xdg-dbus-proxy_0.1.6.bb
@@ -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"