mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
bd9f2fef17
commit
cdfcdb6da5
|
|
@ -39,6 +39,7 @@ PTESTS_FAST_META_PYTHON = "\
|
||||||
python3-gpt-image \
|
python3-gpt-image \
|
||||||
python3-gunicorn \
|
python3-gunicorn \
|
||||||
python3-h2 \
|
python3-h2 \
|
||||||
|
python3-hpack \
|
||||||
python3-html2text \
|
python3-html2text \
|
||||||
python3-httptools \
|
python3-httptools \
|
||||||
python3-inflection \
|
python3-inflection \
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,14 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5bf1c68e73fbaec2b1687b7e71514393"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca"
|
SRC_URI[sha256sum] = "ec5eca154f7056aa06f196a557655c5b009b382873ac8d1e66e79e87535f1dca"
|
||||||
|
|
||||||
inherit pypi python_setuptools_build_meta
|
inherit ptest-python-pytest pypi python_setuptools_build_meta
|
||||||
|
|
||||||
RDEPENDS:${PN} += "python3-logging"
|
RDEPENDS:${PN} += "python3-logging"
|
||||||
|
RDEPENDS:${PN}-ptest += "python3-hypothesis"
|
||||||
|
|
||||||
|
do_install_ptest:append(){
|
||||||
|
# One test is failing due to missing fixtures, upstream's recommended
|
||||||
|
# solution is to delete this file (as of v4.1.0):
|
||||||
|
# https://github.com/python-hyper/hpack/issues/272
|
||||||
|
rm -f ${D}${PTEST_PATH}/${PTEST_PYTEST_DIR}/conftest.py
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user