python3-propcache: enable ptest

- Tested on qemux86-64 and qemuarm64

- Added ptest to PTESTS_FAST_META_PYTHON

Ptest result:
=============

qemux86-64:

Testsuite summary
TOTAL: 37
PASS: 37
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 7
END: /usr/lib/python3-propcache/ptest
2024-10-11T08:21
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 37
PASS: 37
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 6
END: /usr/lib/python3-propcache/ptest
2024-10-11T08:16
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
alperak
2024-10-11 16:04:37 +03:00
committed by Khem Raj
parent de34d6fefa
commit 6f49be3368
3 changed files with 22 additions and 3 deletions

View File

@@ -5,9 +5,24 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI[sha256sum] = "df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70"
inherit pypi python_setuptools_build_meta
inherit pypi python_setuptools_build_meta ptest
SRC_URI += " \
file://run-ptest \
"
DEPENDS += " \
python3-expandvars-native \
python3-cython-native \
python3-expandvars-native \
python3-cython-native \
"
RDEPENDS:${PN}-ptest = " \
python3-pytest \
python3-pytest-xdist \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}