python3-tzdata: enable ptest

Add to ptest-packagelists-meta-python.inc META_PYTHON_PTESTS_FAST

Install ${S}/VERSION to PTEST_PATH for test_version

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Tim Orling 2024-08-08 09:38:39 -07:00 committed by Khem Raj
parent a580ee3246
commit 447369b01e
No known key found for this signature in database
GPG Key ID: BB053355919D3314
3 changed files with 18 additions and 0 deletions

View File

@ -74,6 +74,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-tomlkit \
python3-trustme \
python3-typeguard \
python3-tzdata \
python3-ujson \
python3-u-msgpack-python \
python3-unidiff \

View File

@ -0,0 +1,3 @@
#!/bin/sh
pytest --automake

View File

@ -8,3 +8,17 @@ SRC_URI[sha256sum] = "2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5cea
inherit pypi python_setuptools_build_meta
inherit ptest
SRC_URI += "file://run-ptest"
RDEPENDS:${PN}-ptest += "\
python3-pytest \
python3-pytest-subtests \
python3-unittest-automake-output \
"
do_install_ptest() {
cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
install ${S}/VERSION ${D}${PTEST_PATH}/
}