summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
Diffstat (limited to 'meta-python')
-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"