summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-01-07 11:01:40 +0100
committerKhem Raj <raj.khem@gmail.com>2026-01-12 08:53:42 -0800
commit38eaab2241d5a7b835437075cd9c14e9407163bc (patch)
treeb2e4d3fd65c34fd6df473d95ea97a915338d5bad /meta-python
parent096f14d0b9edce455f28832e90bd31c242f60a24 (diff)
downloadmeta-openembedded-38eaab2241d5a7b835437075cd9c14e9407163bc.tar.gz
python3-waitress: add ptest support
It takes <10s to execute. Some (54) tests are not compatible with musl[1] - due to this the tests are on the problem-list. Sample output snippet: root@qemux86-64:~# ptest-runner START: ptest-runner 2026-01-07T09:57 BEGIN: /usr/lib/python3-waitress/ptest PASS: tests.test_adjustments.TestAdjustments.test_bad_port PASS: tests.test_adjustments.TestAdjustments.test_badvar PASS: tests.test_adjustments.TestAdjustments.test_default_listen [...many lines...] PASS: tests.test_wasyncore.Test_readwrite.test_socketerror_in_disconnected PASS: tests.test_wasyncore.Test_readwrite.test_socketerror_not_in_disconnected PASS: tests.test_wasyncore.Test_write.test_gardenpath PASS: tests.test_wasyncore.Test_write.test_non_reraised PASS: tests.test_wasyncore.Test_write.test_reraised ============================================================================ Testsuite summary \# TOTAL: 783 \# PASS: 775 \# SKIP: 8 \# XFAIL: 0 \# FAIL: 0 \# XPASS: 0 \# ERROR: 0 DURATION: 7 END: /usr/lib/python3-waitress/ptest 2026-01-07T09:57 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')
-rw-r--r--meta-python/conf/include/ptest-packagelists-meta-python.inc8
-rw-r--r--meta-python/recipes-devtools/python/python3-waitress/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb16
3 files changed, 26 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 cdec25f876..be548f62b6 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -115,6 +115,7 @@ PTESTS_FAST_META_PYTHON = "\
115 python3-unidiff \ 115 python3-unidiff \
116 python3-uritemplate \ 116 python3-uritemplate \
117 python3-validators \ 117 python3-validators \
118 python3-waitress \
118 python3-wrapt \ 119 python3-wrapt \
119 python3-wsproto \ 120 python3-wsproto \
120 python3-xlrd \ 121 python3-xlrd \
@@ -144,3 +145,10 @@ PTESTS_SLOW_META_PYTHON = "\
144 145
145PTESTS_PROBLEMS_META_PYTHON = "\ 146PTESTS_PROBLEMS_META_PYTHON = "\
146" 147"
148
149PTESTS_FAST_META_PYTHON:remove:libc-musl = "\
150 python3-waitress \
151"
152PTESTS_PROBLEMS_META_PYTHON:append:libc-musl = "\
153 python3-waitress \
154"
diff --git a/meta-python/recipes-devtools/python/python3-waitress/run-ptest b/meta-python/recipes-devtools/python/python3-waitress/run-ptest
new file mode 100644
index 0000000000..2e0e96d0b1
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-waitress/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3python3 -mputao.unittest
diff --git a/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb b/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb
index c495132c59..cc705f4efe 100644
--- a/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb
+++ b/meta-python/recipes-devtools/python/python3-waitress_3.0.2.bb
@@ -12,6 +12,20 @@ RDEPENDS:${PN} += " \
12 python3-logging \ 12 python3-logging \
13" 13"
14 14
15RDEPENDS:${PN}-ptest += "\
16 python3-doctest \
17 python3-json \
18 python3-multiprocessing \
19 python3-pytest \
20 python3-unittest \
21 python3-unittest-automake-output \
22"
23
24SRC_URI += "file://run-ptest"
15SRC_URI[sha256sum] = "682aaaf2af0c44ada4abfb70ded36393f0e307f4ab9456a215ce0020baefc31f" 25SRC_URI[sha256sum] = "682aaaf2af0c44ada4abfb70ded36393f0e307f4ab9456a215ce0020baefc31f"
16 26
17inherit python_setuptools_build_meta pypi 27inherit python_setuptools_build_meta pypi ptest
28
29do_install_ptest(){
30 cp -r ${S}/tests ${D}${PTEST_PATH}
31}