From 54201bae76ddfeaebb077c79fdf28740de76d88e Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Fri, 20 Mar 2020 10:21:00 +0800 Subject: python3-xlrd: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-xlrd.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-xlrd.inc') diff --git a/meta-python/recipes-devtools/python/python-xlrd.inc b/meta-python/recipes-devtools/python/python-xlrd.inc index f87d2ab7c7..ee73e76b91 100644 --- a/meta-python/recipes-devtools/python/python-xlrd.inc +++ b/meta-python/recipes-devtools/python/python-xlrd.inc @@ -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/ +} -- cgit v1.2.3-54-g00ecf