mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-27 12:01:38 +01:00
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>
This commit is contained in:
parent
196bb0a40d
commit
fbbbae7624
|
|
@ -16,6 +16,7 @@ PTESTS_FAST_META_PYTHON = "\
|
||||||
python3-blinker \
|
python3-blinker \
|
||||||
python3-cachetools \
|
python3-cachetools \
|
||||||
python3-cbor2 \
|
python3-cbor2 \
|
||||||
|
python3-configobj \
|
||||||
python3-click \
|
python3-click \
|
||||||
python3-dasbus \
|
python3-dasbus \
|
||||||
python3-dominate \
|
python3-dominate \
|
||||||
|
|
|
||||||
3
meta-python/recipes-devtools/python/python3-configobj/run-ptest
Executable file
3
meta-python/recipes-devtools/python/python3-configobj/run-ptest
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pytest --automake
|
||||||
|
|
@ -3,12 +3,25 @@ SECTION = "devel/python"
|
||||||
LICENSE = "BSD-3-Clause"
|
LICENSE = "BSD-3-Clause"
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95"
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=e2df3cb285297a24cd1097dfe6e96f95"
|
||||||
|
|
||||||
PYPI_PACKAGE = "configobj"
|
|
||||||
SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"
|
SRC_URI[sha256sum] = "03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"
|
||||||
|
|
||||||
inherit pypi python_setuptools_build_meta
|
inherit pypi python_setuptools_build_meta ptest
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
RDEPENDS:${PN} += " \
|
RDEPENDS:${PN} += " \
|
||||||
python3-pprint \
|
python3-pprint \
|
||||||
python3-six \
|
python3-six \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
RDEPENDS:${PN}-ptest += " \
|
||||||
|
python3-pytest \
|
||||||
|
python3-unittest-automake-output \
|
||||||
|
"
|
||||||
|
|
||||||
|
do_install_ptest() {
|
||||||
|
install -d ${D}${PTEST_PATH}/tests
|
||||||
|
cp -rf ${S}/src/tests/* ${D}${PTEST_PATH}/tests/
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user