summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python
diff options
context:
space:
mode:
authoralperak <alperyasinak1@gmail.com>2024-10-11 16:04:41 +0300
committerKhem Raj <raj.khem@gmail.com>2024-10-11 07:52:23 -0700
commitfbbbae762470bfa55fd851d16281f4a390054514 (patch)
treeb1679e8e532047bad06d6c1d0af4d7cabbd772f1 /meta-python/recipes-devtools/python
parent196bb0a40d604f438f9a725a60479dd86bda69a6 (diff)
downloadmeta-openembedded-fbbbae762470bfa55fd851d16281f4a390054514.tar.gz
python3-configobj: enable ptest
- Tested on qemux86-64 and qemuarm64 - Added ptest into PTESTS_FAST_META_PYTHON - The PyPi package name defaults to PN without the python3- prefix, so there is no need to set PYPI_PACKAGE as configobj, it is by default. Ptest result: ============= qemux86-64: Testsuite summary TOTAL: 75 PASS: 75 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 12 END: /usr/lib/python3-configobj/ptest 2024-10-11T12:59 STOP: ptest-runner TOTAL: 1 FAIL: 0 qemuarm64: Testsuite summary TOTAL: 75 PASS: 75 SKIP: 0 XFAIL: 0 FAIL: 0 XPASS: 0 ERROR: 0 DURATION: 9 END: /usr/lib/python3-configobj/ptest 2024-10-11T12:56 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: alperak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rwxr-xr-xmeta-python/recipes-devtools/python/python3-configobj/run-ptest3
-rw-r--r--meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb21
2 files changed, 20 insertions, 4 deletions
diff --git a/meta-python/recipes-devtools/python/python3-configobj/run-ptest b/meta-python/recipes-devtools/python/python3-configobj/run-ptest
new file mode 100755
index 0000000000..8d2017d39c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-configobj/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest --automake
diff --git a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
index 2f6572af5c..d41d71a4ea 100644
--- a/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
+++ b/meta-python/recipes-devtools/python/python3-configobj_5.0.9.bb
@@ -3,12 +3,25 @@ SECTION = "devel/python"
3LICENSE = "BSD-3-Clause" 3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95"
5 5
6PYPI_PACKAGE = "configobj"
7SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848" 6SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"
8 7
9inherit pypi python_setuptools_build_meta 8inherit pypi python_setuptools_build_meta ptest
9
10SRC_URI += " \
11 file://run-ptest \
12"
10 13
11RDEPENDS:${PN} += " \ 14RDEPENDS:${PN} += " \
12 python3-pprint \ 15 python3-pprint \
13 python3-six \ 16 python3-six \
14" 17"
18
19RDEPENDS:${PN}-ptest += " \
20 python3-pytest \
21 python3-unittest-automake-output \
22"
23
24do_install_ptest() {
25 install -d ${D}${PTEST_PATH}/tests
26 cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/
27}