From 6f49be3368a7af12a60e78b660114880c6db89dc Mon Sep 17 00:00:00 2001 From: alperak Date: Fri, 11 Oct 2024 16:04:37 +0300 Subject: 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 Signed-off-by: Khem Raj --- .../conf/include/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 (limited to 'meta-python') diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index da6206c6ba..25d71a2b6f 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 0000000000..8d2017d39c --- /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 874c9fd8ee..5f9fbda5f1 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/ +} -- cgit v1.2.3-54-g00ecf