It takes about a second to execute. Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-16T16:32
BEGIN: /usr/lib/python3-pyconnman/ptest
PASS: test_agent.AgentTest.test_simple_wifi_agent
PASS: test_manager.ConnManagerTest.test_agent_registration
dbus.Dictionary({dbus.String('State'): dbus.String('online...
[SNIP... debug log... SNIP]
dbus.Dictionary({dbus.String('Connected'): dbus.Boolean(...
=========================================================
PASS: test_technology.ConnTechnologyTest.test_scan

============================================================================
Testsuite summary
DURATION: 0
END: /usr/lib/python3-pyconnman/ptest
2025-12-16T16:32
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <[email protected]>
---
 .../conf/include/ptest-packagelists-meta-python.inc    |  1 +
 .../python-pyconnman/files/run-ptest                   |  3 +++
 .../python-pyconnman/python3-pyconnman_0.2.0.bb        | 10 ++++++++--
 3 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 
meta-python/recipes-connectivity/python-pyconnman/files/run-ptest

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 7bc6b6575f..e575b372b5 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -20,6 +20,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-cachetools \
     python3-cbor2 \
     python3-configobj \
+    python3-pyconnman \
     python3-click \
     python3-dasbus \
     python3-dominate \
diff --git a/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest 
b/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest
new file mode 100644
index 0000000000..aafa0f731d
--- /dev/null
+++ b/meta-python/recipes-connectivity/python-pyconnman/files/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd tests
+python3 -mputao.unittest
diff --git 
a/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb 
b/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb
index 040f1acc92..52fc1dac55 100644
--- 
a/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb
+++ 
b/meta-python/recipes-connectivity/python-pyconnman/python3-pyconnman_0.2.0.bb
@@ -4,8 +4,14 @@ LICENSE = "Apache-2.0"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-SRC_URI[sha256sum] = 
"d3a63a039c82b08a1171b003eafa62c6f128aa4eaa1ce7a55a9401b48f9ad926"
+inherit pypi setuptools3 ptest
 
-inherit pypi setuptools3
+SRC_URI += "file://run-ptest"
+SRC_URI[sha256sum] = 
"d3a63a039c82b08a1171b003eafa62c6f128aa4eaa1ce7a55a9401b48f9ad926"
 
 RDEPENDS:${PN} = "connman python3-dbus python3-pprint python3-future"
+RDEPENDS:${PN}-ptest += "python3-mock python3-unittest-automake-output"
+
+do_install_ptest(){
+    cp -r ${S}/tests ${D}${PTEST_PATH}/
+}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#122704): 
https://lists.openembedded.org/g/openembedded-devel/message/122704
Mute This Topic: https://lists.openembedded.org/mt/116813620/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to