python3-xlrd: Enable ptest

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zang Ruochen 2020-03-20 10:21:00 +08:00 committed by Khem Raj
parent e36ff205b2
commit 54201bae76
2 changed files with 19 additions and 0 deletions

View File

@ -12,3 +12,19 @@ SRC_URI[sha256sum] = "546eb36cee8db40c3eaa46c351e67ffee6eeb5fa2650b71bc4c758a29a
RDEPENDS_${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io ${PYTHON_PN}-pprint ${PYTHON_PN}-shell"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
inherit ptest
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
install -d ${D}${PTEST_PATH}/examples
cp -rf ${S}/examples/* ${D}${PTEST_PATH}/examples/
}

View File

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