python3-prettytable: 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-11 08:42:01 +08:00 committed by Khem Raj
parent 1ec13d7d95
commit 8a078a9d61
2 changed files with 16 additions and 0 deletions

View File

@ -23,3 +23,16 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/"
UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P<pver>(\d+[\.\-_]*)+)"
BBCLASSEXTEND = "native nativesdk"
inherit ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS_${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
cp -f ${S}/prettytable_test.py ${D}${PTEST_PATH}/
}

View File

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