python3-pyasn1: 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-04-11 22:12:07 +08:00 committed by Khem Raj
parent 355f3480b4
commit e4e5fa1b92
2 changed files with 18 additions and 0 deletions

View File

@ -14,3 +14,18 @@ RDEPENDS_${PN}_class-target += " \
"
BBCLASSEXTEND = "native nativesdk"
inherit ptest
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