mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 22:35:25 +01:00
python3-geojson: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
4d5162a030
commit
3a05a4e325
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||||
|
|
@ -6,7 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=f48972abe5cddee79e301574742ed745"
|
||||||
SRC_URI[md5sum] = "14753ed28678828b1de73f68b04e2324"
|
SRC_URI[md5sum] = "14753ed28678828b1de73f68b04e2324"
|
||||||
SRC_URI[sha256sum] = "6e4bb7ace4226a45d9c8c8b1348b3fc43540658359f93c3f7e03efa9f15f658a"
|
SRC_URI[sha256sum] = "6e4bb7ace4226a45d9c8c8b1348b3fc43540658359f93c3f7e03efa9f15f658a"
|
||||||
|
|
||||||
inherit pypi setuptools3
|
inherit pypi setuptools3 ptest
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPENDS_${PN}-ptest += " \
|
||||||
|
${PYTHON_PN}-pytest \
|
||||||
|
"
|
||||||
|
|
||||||
|
do_install_ptest() {
|
||||||
|
install -d ${D}${PTEST_PATH}/tests
|
||||||
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||||
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} += "python3-simplejson python3-math"
|
RDEPENDS_${PN} += "python3-simplejson python3-math"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user