From c96af8320a0c114f3074aaea318f027331397d27 Mon Sep 17 00:00:00 2001 From: Zang Ruochen Date: Tue, 21 Apr 2020 09:58:54 +0800 Subject: python3-more-itertools: Enable ptest Signed-off-by: Zang Ruochen Signed-off-by: Khem Raj --- .../recipes-devtools/python/python-more-itertools.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-more-itertools.inc') diff --git a/meta-python/recipes-devtools/python/python-more-itertools.inc b/meta-python/recipes-devtools/python/python-more-itertools.inc index 8dcf00b3fe..0b684c1b1d 100644 --- a/meta-python/recipes-devtools/python/python-more-itertools.inc +++ b/meta-python/recipes-devtools/python/python-more-itertools.inc @@ -4,3 +4,18 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=3396ea30f9d21389d7857719816f83b5" 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/ +} -- cgit v1.2.3-54-g00ecf