python3-priority: add ptest support

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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2025-12-16 18:58:37 +01:00 committed by Khem Raj
parent 75c9a73add
commit 8fc1b929d8
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 5 additions and 1 deletions

View File

@ -65,6 +65,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-portion \ python3-portion \
python3-precise-runner \ python3-precise-runner \
python3-prettytable \ python3-prettytable \
python3-priority \
python3-propcache \ python3-propcache \
python3-pyais \ python3-pyais \
python3-pydantic \ python3-pydantic \

View File

@ -6,4 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ae57d8a09fc8b6b164d7357339619045"
SRC_URI[sha256sum] = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0" SRC_URI[sha256sum] = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0"
inherit pypi setuptools3 PTEST_PYTEST_DIR = "test"
inherit pypi setuptools3 ptest-python-pytest
RDEPENDS:${PN}-ptest += "python3-hypothesis"