Message ID | 20240304163720.2349338-1-alperyasinak1@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-python] python3-wrapt: add ptest | expand |
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 0e6fea4ce..3b19152f4 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc @@ -66,6 +66,7 @@ PTESTS_FAST_META_PYTHON = "\ python3-u-msgpack-python \ python3-unidiff \ python3-uritemplate \ + python3-wrapt \ python3-xlrd \ python3-xmltodict \ python3-xxhash \ diff --git a/meta-python/recipes-devtools/python/python3-wrapt/run-ptest b/meta-python/recipes-devtools/python/python3-wrapt/run-ptest new file mode 100644 index 000000000..8d2017d39 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-wrapt/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest --automake diff --git a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb b/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb index 84c052844..056323cd3 100644 --- a/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb +++ b/meta-python/recipes-devtools/python/python3-wrapt_1.16.0.bb @@ -6,7 +6,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=dc34cbad60bc961452eb7ade801d25f7" SRC_URI[sha256sum] = "5f370f952971e7d17c7d1ead40e49f32345a7f7a5373571ef44d800d06b1899d" -inherit pypi setuptools3 +inherit pypi setuptools3 ptest + +SRC_URI += " \ + file://run-ptest \ +" + +RDEPENDS:${PN}-ptest += " \ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} RDEPENDS:${PN}:class-target += "\ python3-stringold \
* Tested on qemux86_64 and qemuarm64 * Add ptest into PTESTS_FAST_META_PYTHON Ptest result: qemux86-64: Testsuite summary TOTAL: 438 PASS: 438 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 17 END: /usr/lib/python3-wrapt/ptest 2024-03-04T16:09 STOP: ptest-runner TOTAL: 1 FAIL: 0 qemuarm64: Testsuite summary TOTAL: 438 PASS: 438 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 17 END: /usr/lib/python3-wrapt/ptest 2024-03-04T16:18 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: alperak <alperyasinak1@gmail.com> --- .../include/ptest-packagelists-meta-python.inc | 1 + .../python/python3-wrapt/run-ptest | 3 +++ .../python/python3-wrapt_1.16.0.bb | 16 +++++++++++++++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-wrapt/run-ptest