summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2024-06-03 13:47:01 +0800
committerKhem Raj <raj.khem@gmail.com>2024-06-03 12:05:24 -0700
commit0e456ad6b3eaba314a78ae3e835b8650d39e9673 (patch)
treee31a6be3069b02fe0388d86a971e8b881c9e4657
parent446560ab41de5e29ef5dfb556de1149e76a80367 (diff)
downloadmeta-openembedded-0e456ad6b3eaba314a78ae3e835b8650d39e9673.tar.gz
python3-dasbus: Add ptest support
#./run-ptest PASS: tests/test_client.py:DBusClientTestCase.test_async_method PASS: tests/test_client.py:DBusClientTestCase.test_error PASS: tests/test_client.py:DBusClientTestCase.test_interface_proxy PASS: tests/test_client.py:DBusClientTestCase.test_introspect PASS: tests/test_client.py:DBusClientTestCase.test_invalid_method_result PASS: tests/test_client.py:DBusClientTestCase.test_method PASS: tests/test_client.py:DBusClientTestCase.test_property PASS: tests/test_client.py:DBusClientTestCase.test_signal PASS: tests/test_client.py:DBusClientTestCase.test_variant_type_factory [snip] ============================================================================ Testsuite summary # TOTAL: 162 # PASS: 162 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc1
-rwxr-xr-xmeta-python/recipes-devtools/python/python3-dasbus/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-dasbus_1.7.bb19
3 files changed, 22 insertions, 1 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 2e701dc152..bdcd658d98 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -17,6 +17,7 @@ PTESTS_FAST_META_PYTHON = "\
17 python3-cachetools \ 17 python3-cachetools \
18 python3-cbor2 \ 18 python3-cbor2 \
19 python3-click \ 19 python3-click \
20 python3-dasbus \
20 python3-dominate \ 21 python3-dominate \
21 python3-execnet \ 22 python3-execnet \
22 python3-flask \ 23 python3-flask \
diff --git a/meta-python/recipes-devtools/python/python3-dasbus/run-ptest b/meta-python/recipes-devtools/python/python3-dasbus/run-ptest
new file mode 100755
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-dasbus/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-dasbus_1.7.bb b/meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
index 3efa961713..d1d294a284 100644
--- a/meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
+++ b/meta-python/recipes-devtools/python/python3-dasbus_1.7.bb
@@ -5,11 +5,28 @@ LICENSE = "LGPL-2.1-or-later"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742"
6 6
7SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \ 7SRC_URI = "git://github.com/dasbus-project/dasbus.git;protocol=https;branch=master \
8 file://run-ptest \
8" 9"
9SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5" 10SRCREV = "413cf9a0b7c231468f1d28d9a29dd8dd8bda15c5"
10 11
11S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
12 13
13inherit setuptools3 14inherit setuptools3 ptest
15
16do_install_ptest() {
17 install -d ${D}${PTEST_PATH}/tests
18 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
19
20 # Remove the problematic cases
21 # https://github.com/dasbus-project/dasbus/issues/128
22 rm -rf ${D}${PTEST_PATH}/tests/lib_dbus.py
23 rm -rf ${D}${PTEST_PATH}/tests/test_dbus.py
24 rm -rf ${D}${PTEST_PATH}/tests/test_unix.py
25}
14 26
15RDEPENDS:${PN} = "python3-pygobject" 27RDEPENDS:${PN} = "python3-pygobject"
28
29RDEPENDS:${PN}-ptest += " \
30 python3-pytest \
31 python3-unittest-automake-output \
32"