summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-03-20 10:22:33 +0800
committerKhem Raj <raj.khem@gmail.com>2020-03-20 07:44:29 -0700
commitddd3d75b88974de76da631498d2dc8818079a7a4 (patch)
tree22ca10ca5143921088abe7381c84266353b53047
parent380bd91766eb32a93191b079a1388fe01a25aacf (diff)
downloadmeta-openembedded-ddd3d75b88974de76da631498d2dc8818079a7a4.tar.gz
python3-yappi: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python-yappi.inc18
-rw-r--r--meta-python/recipes-devtools/python/python3-yappi/run-ptest3
2 files changed, 20 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-yappi.inc b/meta-python/recipes-devtools/python/python-yappi.inc
index b3718d7d1..d6e9d4ed6 100644
--- a/meta-python/recipes-devtools/python/python-yappi.inc
+++ b/meta-python/recipes-devtools/python/python-yappi.inc
@@ -7,10 +7,26 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;md5=9a193c13f346884e597acdcac7fe9ac8"
7SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8" 7SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8"
8SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf" 8SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf"
9 9
10inherit pypi setuptools3 10SRC_URI += " \
11 file://run-ptest \
12"
13
14inherit pypi setuptools3 ptest
11 15
12RDEPENDS_${PN} += "\ 16RDEPENDS_${PN} += "\
13 ${PYTHON_PN}-datetime \ 17 ${PYTHON_PN}-datetime \
14 ${PYTHON_PN}-pickle \ 18 ${PYTHON_PN}-pickle \
15 ${PYTHON_PN}-threading \ 19 ${PYTHON_PN}-threading \
16 " 20 "
21
22RDEPENDS_${PN}-ptest += " \
23 ${PYTHON_PN}-pytest \
24 ${PYTHON_PN}-multiprocessing \
25 ${PYTHON_PN}-profile \
26"
27
28do_install_ptest() {
29 install -d ${D}${PTEST_PATH}/tests
30 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
31 cp -f ${S}/yappi.py ${D}/${PTEST_PATH}/
32}
diff --git a/meta-python/recipes-devtools/python/python3-yappi/run-ptest b/meta-python/recipes-devtools/python/python3-yappi/run-ptest
new file mode 100644
index 000000000..5cec71169
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-yappi/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3pytest