aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>2020-03-24 02:25:20 +0800
committerKhem Raj <raj.khem@gmail.com>2020-03-23 08:02:46 -0700
commit8a229451a0d5e4efee82a49e77185b92fd0ded0e (patch)
tree87bd5769d53d7fc6895b6449d40eeee0aa001d66 /meta-python
parentc15b1137471f691942b3e9e63d88812a93cfaf75 (diff)
downloadmeta-openembedded-8a229451a0d5e4efee82a49e77185b92fd0ded0e.tar.gz
python3-whoosh: Enable ptest
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python-whoosh.inc16
-rw-r--r--meta-python/recipes-devtools/python/python3-whoosh/run-ptest2
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-whoosh.inc b/meta-python/recipes-devtools/python/python-whoosh.inc
index 040b32458f..b059b8d38c 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 0000000000..40c284799d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-whoosh/run-ptest
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest