From 8a078a9d619f68a6563eba72823fe7398a295dd6 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Sat, 11 Apr 2020 08:42:01 +0800 Subject: python3-prettytable: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-prettytable.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-prettytable.inc') diff --git a/meta-python/recipes-devtools/python/python-prettytable.inc b/meta-python/recipes-devtools/python/python-prettytable.inc index 07e896d2d1..09384dae17 100644 --- a/meta-python/recipes-devtools/python/python-prettytable.inc +++ b/meta-python/recipes-devtools/python/python-prettytable.inc @@ -23,3 +23,16 @@ UPSTREAM_CHECK_URI = "https://pypi.python.org/pypi/PrettyTable/" UPSTREAM_CHECK_REGEX = "/PrettyTable/(?P(\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}/ +} -- cgit v1.2.3-54-g00ecf