diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-16 18:58:38 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-20 11:41:02 -0800 |
| commit | 069f1827d01635ee185c30d39d20aa600f1a2e2e (patch) | |
| tree | 719e0a96cabf312127dc7f594fd6a4f7fe6afa3d /meta-python | |
| parent | 8fc1b929d8ed1966d76e8265665f39fdef6a3208 (diff) | |
| download | meta-openembedded-069f1827d01635ee185c30d39d20aa600f1a2e2e.tar.gz | |
python3-pyconnman: add ptest support
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 <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
3 files changed, 12 insertions, 2 deletions
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 = "\ | |||
| 20 | python3-cachetools \ | 20 | python3-cachetools \ |
| 21 | python3-cbor2 \ | 21 | python3-cbor2 \ |
| 22 | python3-configobj \ | 22 | python3-configobj \ |
| 23 | python3-pyconnman \ | ||
| 23 | python3-click \ | 24 | python3-click \ |
| 24 | python3-dasbus \ | 25 | python3-dasbus \ |
| 25 | python3-dominate \ | 26 | 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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | cd tests | ||
| 3 | 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" | |||
| 4 | 4 | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "d3a63a039c82b08a1171b003eafa62c6f128aa4eaa1ce7a55a9401b48f9ad926" | 7 | inherit pypi setuptools3 ptest |
| 8 | 8 | ||
| 9 | inherit pypi setuptools3 | 9 | SRC_URI += "file://run-ptest" |
| 10 | SRC_URI[sha256sum] = "d3a63a039c82b08a1171b003eafa62c6f128aa4eaa1ce7a55a9401b48f9ad926" | ||
| 10 | 11 | ||
| 11 | RDEPENDS:${PN} = "connman python3-dbus python3-pprint python3-future" | 12 | RDEPENDS:${PN} = "connman python3-dbus python3-pprint python3-future" |
| 13 | RDEPENDS:${PN}-ptest += "python3-mock python3-unittest-automake-output" | ||
| 14 | |||
| 15 | do_install_ptest(){ | ||
| 16 | cp -r ${S}/tests ${D}${PTEST_PATH}/ | ||
| 17 | } | ||
