summaryrefslogtreecommitdiffstats
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 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} += " \
22 ${PYTHON_PN}-shell \ 22 ${PYTHON_PN}-shell \
23 ${PYTHON_PN}-stringold \ 23 ${PYTHON_PN}-stringold \
24" 24"
25
26SRC_URI += " \
27 file://run-ptest \
28"
29
30inherit ptest
31
32RDEPENDS_${PN}-ptest += " \
33 ${PYTHON_PN}-pytest \
34 ${PYTHON_PN}-fcntl \
35"
36
37do_install_ptest() {
38 install -d ${D}${PTEST_PATH}/tests
39 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
40}
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 @@
1#!/bin/sh
2pytest