python3-parse-type: 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-04-02 10:23:03 +08:00
committed by Khem Raj
parent ee2735b3c0
commit 03bce25da3
2 changed files with 17 additions and 1 deletions

View File

@@ -7,6 +7,19 @@ SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707"
SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c"
PYPI_PACKAGE = "parse_type"
inherit pypi
inherit pypi ptest
RDEPENDS_${PN} += "${PYTHON_PN}-parse"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

View File

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