diff mbox series

[meta-python,4/7] python3-priority: add ptest support

Message ID 20251216175840.2939403-4-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 under 5s to execute. Sample output:

qemux86-64 login: root
root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-16T16:00
BEGIN: /usr/lib/python3-priority/ptest
PASS: test/test_priority.py:TestStream.test_stream_repr
PASS: test/test_priority.py:TestStream.test_streams_are_well_ordered
PASS: test/test_priority.py:TestStream.test_stream_ordering
[...many lines...]
PASS: test/test_priority.py:TestPriorityTreeManual.test_maximum_streams_with_bad_int_is_error[-50]
PASS: test/test_priority.py:TestPriorityTreeOutput.test_period_of_repetition
PASS: test/test_priority.py:TestPriorityTreeOutput.test_priority_tree_distribution
PASS: ../../python3.13/site-packages/hypothesis/stateful.py:TestPriorityTreeStateful.runTest
============================================================================
Testsuite summary
DURATION: 4
END: /usr/lib/python3-priority/ptest
2025-12-16T16:00
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 +
 .../python-priority/python3-priority_2.0.0.bb                | 5 ++++-
 2 files changed, 5 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 18f31a7c6f..7bc6b6575f 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -65,6 +65,7 @@  PTESTS_FAST_META_PYTHON = "\
     python3-portion \
     python3-precise-runner \
     python3-prettytable \
+    python3-priority \
     python3-propcache \
     python3-pyais \
     python3-pydantic \
diff --git a/meta-python/recipes-connectivity/python-priority/python3-priority_2.0.0.bb b/meta-python/recipes-connectivity/python-priority/python3-priority_2.0.0.bb
index 93b694c8b8..26620a3a39 100644
--- a/meta-python/recipes-connectivity/python-priority/python3-priority_2.0.0.bb
+++ b/meta-python/recipes-connectivity/python-priority/python3-priority_2.0.0.bb
@@ -6,4 +6,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=ae57d8a09fc8b6b164d7357339619045"
 
 SRC_URI[sha256sum] = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0"
 
-inherit pypi setuptools3
+PTEST_PYTEST_DIR = "test"
+inherit pypi setuptools3 ptest-python-pytest
+
+RDEPENDS:${PN}-ptest += "python3-hypothesis"