Signed-off-by: Zang Ruochen <[email protected]> --- .../recipes-devtools/python/python-prettytable.inc | 13 +++++++++++++ .../python/python3-prettytable/run-ptest | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-prettytable/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-prettytable.inc b/meta-python/recipes-devtools/python/python-prettytable.inc index 07e896d2d..4897f27db 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<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}/ +} diff --git a/meta-python/recipes-devtools/python/python3-prettytable/run-ptest b/meta-python/recipes-devtools/python/python3-prettytable/run-ptest new file mode 100644 index 000000000..5cec71169 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-prettytable/run-ptest @@ -0,0 +1,3 @@ +#!/bin/sh + +pytest -- 2.20.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#83865): https://lists.openembedded.org/g/openembedded-devel/message/83865 Mute This Topic: https://lists.openembedded.org/mt/72935601/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
