meta-python: python3-path: 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:
Ever ATILANO
2023-03-24 15:41:48 +01:00
committed by Khem Raj
parent 2e0a581bee
commit 7e4947d0b0
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
pytest --automake

View File

@@ -4,8 +4,27 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
SRC_URI[sha256sum] = "bea3816e1d54f4e33aac78d2031a0b0ed2f95e69db85b45d51f17df97071da69"
inherit pypi python_setuptools_build_meta
SRC_URI += "\
file://run-ptest \
"
inherit pypi python_setuptools_build_meta ptest
DEPENDS += "python3-setuptools-scm-native"
RDEPENDS:${PN} += " \
${PYTHON_PN}-appdirs \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
${PYTHON_PN}-unittest-automake-output \
"
BBCLASSEXTEND = "nativesdk native"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test_* ${D}${PTEST_PATH}/test/
install -d ${D}${PTEST_PATH}/path
cp -rf ${S}/path/* ${D}${PTEST_PATH}/path/
}