summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-connectivity/python-hpack
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-12-16 18:58:35 +0100
committerKhem Raj <raj.khem@gmail.com>2025-12-20 11:41:01 -0800
commitcdfcdb6da591407797689a5a500fc7673b40f395 (patch)
tree590a0fd8a7b2fdc49b69dbb82a4c217d3cd2bb30 /meta-python/recipes-connectivity/python-hpack
parentbd9f2fef17d902df9624e361adf326a4fc0af868 (diff)
downloadmeta-openembedded-cdfcdb6da591407797689a5a500fc7673b40f395.tar.gz
python3-hpack: add ptest support
The tests need about 3s to execute. Sample output: root@qemux86-64:~# ptest-runner START: ptest-runner 2025-12-16T15:48 BEGIN: /usr/lib/python3-hpack/ptest PASS: tests/test_encode_decode.py:TestIntegerEncoding.test_encoding_10_with_5_bit_prefix PASS: tests/test_encode_decode.py:TestIntegerEncoding.test_encoding_1337_with_5_bit_prefix PASS: tests/test_encode_decode.py:TestIntegerEncoding.test_encoding_42_with_8_bit_prefix [...many lines...] PASS: tests/test_table.py:TestHeaderTable.test_size PASS: tests/test_table.py:TestHeaderTable.test_shrink_maxsize_is_zero PASS: tests/test_table.py:TestHeaderTable.test_shrink_maxsize ============================================================================ Testsuite summary DURATION: 3 END: /usr/lib/python3-hpack/ptest 2025-12-16T15:48 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/recipes-connectivity/python-hpack')
-rw-r--r--meta-python/recipes-connectivity/python-hpack/python3-hpack_4.1.0.bb10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-python/recipes-connectivity/python-hpack/python3-hpack_4.1.0.bb b/meta-python/recipes-connectivity/python-hpack/python3-hpack_4.1.0.bb
index a5b9130d00..4ecbd583f3 100644
--- a/meta-python/recipes-connectivity/python-hpack/python3-hpack_4.1.0.bb
+++ b/meta-python/recipes-connectivity/python-hpack/python3-hpack_4.1.0.bb
@@ -6,6 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5bf1c68e73fbaec2b1687b7e71514393"
6 6
7SRC_URI[sha256sum] = "ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca" 7SRC_URI[sha256sum] = "ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca"
8 8
9inherit pypi python_setuptools_build_meta 9inherit ptest-python-pytest pypi python_setuptools_build_meta
10 10
11RDEPENDS:${PN} += "python3-logging" 11RDEPENDS:${PN} += "python3-logging"
12RDEPENDS:${PN}-ptest += "python3-hypothesis"
13
14do_install_ptest:append(){
15 # One test is failing due to missing fixtures, upstream's recommended
16 # solution is to delete this file (as of v4.1.0):
17 # https://github.com/python-hyper/hpack/issues/272
18 rm -f ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/conftest.py
19}