python3-glances: add ptest

Example output:

|root@qemux86-64:~# ptest-runner python3-glances
|START: ptest-runner
|2026-08-14T13:48
|BEGIN: /usr/lib/python3-glances/ptest
|============================= test session starts ==============================
|platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0
|rootdir: /usr/lib/python3-glances/ptest
|plugins: putao-0.4, anyio-4.14.2, inline-snapshot-0.35.3
|collected 37 items
|
|tests/test_core.py .....................................                 [100%]
|
|============================== 37 passed in 8.02s ==============================
|DURATION: 8
|END: /usr/lib/python3-glances/ptest
|2026-08-14T13:48
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
|root@qemux86-64:~#

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Trevor Gamblin
2026-08-14 09:56:36 -04:00
committed by Khem Raj
parent 9d23992f2d
commit 2592ce3ad8
2 changed files with 12 additions and 1 deletions
@@ -0,0 +1,3 @@
#!/bin/sh
pytest tests/test_core.py
@@ -7,7 +7,11 @@ SRC_URI[sha256sum] = "736faa7faea3bcd58afffd6443974b4ed4b498627a71ce5d6c9640b7b5
PYPI_PACKAGE = "glances"
inherit pypi python_setuptools_build_meta
inherit pypi python_setuptools_build_meta ptest-python-pytest
SRC_URI += " \
file://run-ptest \
"
# psutil/jinja2/packaging are oe-core; fastapi/uvicorn/defusedxml are
# meta-python.
@@ -26,5 +30,9 @@ RDEPENDS:${PN} += " \
python3-xml \
"
RDEPENDS:${PN}-ptest += " \
python3-requests \
"
# Optional fast-JSON accelerator glances uses if present.
RRECOMMENDS:${PN} += "python3-orjson"