diff options
author | Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | 2020-03-24 02:25:20 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-23 08:02:46 -0700 |
commit | 8a229451a0d5e4efee82a49e77185b92fd0ded0e (patch) | |
tree | 87bd5769d53d7fc6895b6449d40eeee0aa001d66 /meta-python | |
parent | c15b1137471f691942b3e9e63d88812a93cfaf75 (diff) | |
download | meta-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.inc | 16 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-whoosh/run-ptest | 2 |
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 | |||
26 | SRC_URI += " \ | ||
27 | file://run-ptest \ | ||
28 | " | ||
29 | |||
30 | inherit ptest | ||
31 | |||
32 | RDEPENDS_${PN}-ptest += " \ | ||
33 | ${PYTHON_PN}-pytest \ | ||
34 | ${PYTHON_PN}-fcntl \ | ||
35 | " | ||
36 | |||
37 | do_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 | ||
2 | pytest | ||