mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
meta-python: python3-lorem: Add ptest
Signed-off-by: Ever ATILANO <ever.atilano@smile.fr> Signed-off-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pytest --automake
|
||||||
@@ -5,12 +5,25 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5301c01b2bcdeedba23645f94db2f179"
|
|||||||
SRC_URI[md5sum] = "e3f0064a94c13e19780eb724affdb426"
|
SRC_URI[md5sum] = "e3f0064a94c13e19780eb724affdb426"
|
||||||
SRC_URI[sha256sum] = "785f4109a241fc2891e59705e85d065f6e6d3ed6ad91750a8cb54d4f3e59d934"
|
SRC_URI[sha256sum] = "785f4109a241fc2891e59705e85d065f6e6d3ed6ad91750a8cb54d4f3e59d934"
|
||||||
|
|
||||||
|
SRC_URI += "\
|
||||||
|
file://run-ptest \
|
||||||
|
"
|
||||||
|
|
||||||
PYPI_PACKAGE = "lorem"
|
PYPI_PACKAGE = "lorem"
|
||||||
|
|
||||||
inherit pypi setuptools3
|
inherit pypi setuptools3 ptest
|
||||||
|
|
||||||
CLEANBROKEN = "1"
|
CLEANBROKEN = "1"
|
||||||
|
|
||||||
RDEPENDS:${PN} += " \
|
RDEPENDS:${PN} += " \
|
||||||
python3 \
|
python3 \
|
||||||
"
|
"
|
||||||
|
RDEPENDS:${PN}-ptest += " \
|
||||||
|
${PYTHON_PN}-pytest \
|
||||||
|
${PYTHON_PN}-unittest-automake-output \
|
||||||
|
"
|
||||||
|
|
||||||
|
do_install_ptest() {
|
||||||
|
install -d ${D}${PTEST_PATH}/tests
|
||||||
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user