Signed-off-by: Zheng Ruoqin <[email protected]>
---
.../recipes-devtools/python/python-whoosh.inc | 16 ++++++++++++++++
.../python/python3-whoosh/run-ptest | 2 ++
2 files changed, 18 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-whoosh/run-ptest
diff --git a/meta-python/recipes-devtools/python/python-whoosh.inc
b/meta-python/recipes-devtools/python/python-whoosh.inc
index 040b32458..b059b8d38 100644
--- a/meta-python/recipes-devtools/python/python-whoosh.inc
+++ b/meta-python/recipes-devtools/python/python-whoosh.inc
@@ -22,3 +22,19 @@ RDEPENDS_${PN} += " \
${PYTHON_PN}-shell \
${PYTHON_PN}-stringold \
"
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+inherit ptest
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+ ${PYTHON_PN}-fcntl \
+"
+
+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-whoosh/run-ptest
b/meta-python/recipes-devtools/python/python3-whoosh/run-ptest
new file mode 100644
index 000000000..40c284799
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-whoosh/run-ptest
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#83455):
https://lists.openembedded.org/g/openembedded-devel/message/83455
Mute This Topic: https://lists.openembedded.org/mt/72487713/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-