- 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 <[email protected]> --- .../ptest-packagelists-meta-python.inc | 1 + .../python/python3-propcache/run-ptest | 3 +++ .../python/python3-propcache_0.2.0.bb | 21 ++++++++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-propcache/run-ptest diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index da6206c6b..25d71a2b6 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -49,6 +49,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-portalocker \ python3-precise-runner \ python3-prettytable \ + python3-propcache \ python3-pydantic \ python3-pydantic-core \ python3-pylint \ diff --git a/meta-python/recipes-devtools/python/python3-propcache/run-ptest b/meta-python/recipes-devtools/python/python3-propcache/run-ptest new file mode 100644 index 000000000..8d2017d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-propcache/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb index 874c9fd8e..5f9fbda5f 100644 --- a/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-propcache_0.2.0.bb @@ -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/ +} -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#112797): https://lists.openembedded.org/g/openembedded-devel/message/112797 Mute This Topic: https://lists.openembedded.org/mt/108948097/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
