python3-whoosh: Enable ptest

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zheng Ruoqin
2020-03-24 02:25:20 +08:00
committed by Khem Raj
parent c15b113747
commit 8a229451a0
2 changed files with 18 additions and 0 deletions

View File

@@ -22,3 +22,19 @@ RDEPENDS_${PN} += " \
${PYTHON_PN}-shell \
${PYTHON_PN}-stringold \
"
SRC_URI += " \
file://run-ptest \
"
inherit ptest
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
${PYTHON_PN}-fcntl \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}