Signed-off-by: Zang Ruochen <zangrc.f...@cn.fujitsu.com>
---
 .../python/python-more-itertools.inc              | 15 +++++++++++++++
 .../python/python3-more-itertools/run-ptest       |  3 +++
 2 files changed, 18 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-more-itertools/run-ptest

diff --git a/meta-python/recipes-devtools/python/python-more-itertools.inc 
b/meta-python/recipes-devtools/python/python-more-itertools.inc
index 8dcf00b3f..0b684c1b1 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/
+}
diff --git 
a/meta-python/recipes-devtools/python/python3-more-itertools/run-ptest 
b/meta-python/recipes-devtools/python/python3-more-itertools/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-more-itertools/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest
-- 
2.20.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84007): 
https://lists.openembedded.org/g/openembedded-devel/message/84007
Mute This Topic: https://lists.openembedded.org/mt/73164562/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to