diff mbox series

[meta-python,1/7] python3-h2: add ptest support

Message ID 20251216175840.2939403-1-skandigraun@gmail.com
State Under Review
Headers show
Series [meta-python,1/7] python3-h2: add ptest support | expand

Commit Message

Gyorgy Sarvari Dec. 16, 2025, 5:58 p.m. UTC
It takes around 10s to execute the suite.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-16T15:36
BEGIN: /usr/lib/python3-h2/ptest
PASS: tests/test_basic_logic.py:TestBasicClient.test_begin_connection
PASS: tests/test_basic_logic.py:TestBasicClient.test_sending_headers
PASS: tests/test_basic_logic.py:TestBasicClient.test_sending_data
[...many lines...]
PASS: tests/test_utility_functions.py:test_size_limit_dict_limit
PASS: tests/test_utility_functions.py:test_size_limit_dict_limit_init
PASS: tests/test_utility_functions.py:test_size_limit_dict_no_limit
============================================================================
Testsuite summary
DURATION: 10
END: /usr/lib/python3-h2/ptest
2025-12-16T15:36
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 meta-python/conf/include/ptest-packagelists-meta-python.inc    | 1 +
 meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index e17d5ef46d..4cbdec70a3 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -38,6 +38,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-gpiod \
     python3-gpt-image \
     python3-gunicorn \
+    python3-h2 \
     python3-html2text \
     python3-httptools \
     python3-inflection \
diff --git a/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb b/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb
index 11ee118831..db181dc0b4 100644
--- a/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb
+++ b/meta-python/recipes-connectivity/python-h2/python3-h2_4.3.0.bb
@@ -6,6 +6,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=aa3b9b4395563dd427be5f022ec321c1"
 
 SRC_URI[sha256sum] = "6c59efe4323fa18b47a632221a1888bd7fde6249819beda254aeca909f221bf1"
 
-inherit pypi python_setuptools_build_meta
+inherit ptest-python-pytest pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} += "python3-hpack python3-hyperframe"
+RDEPENDS:${PN}-ptest += "python3-hypothesis"