diff options
author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-03-20 10:22:33 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-20 07:44:29 -0700 |
commit | ddd3d75b88974de76da631498d2dc8818079a7a4 (patch) | |
tree | 22ca10ca5143921088abe7381c84266353b53047 | |
parent | 380bd91766eb32a93191b079a1388fe01a25aacf (diff) | |
download | meta-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.inc | 18 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-yappi/run-ptest | 3 |
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" | |||
7 | SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8" | 7 | SRC_URI[md5sum] = "a545101aa8a435b0780f06f4723f58c8" |
8 | SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf" | 8 | SRC_URI[sha256sum] = "7f814131515d51db62b1a3468bcb84de30499124752806a5a6e11caf0b4344bf" |
9 | 9 | ||
10 | inherit pypi setuptools3 | 10 | SRC_URI += " \ |
11 | file://run-ptest \ | ||
12 | " | ||
13 | |||
14 | inherit pypi setuptools3 ptest | ||
11 | 15 | ||
12 | RDEPENDS_${PN} += "\ | 16 | RDEPENDS_${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 | |||
22 | RDEPENDS_${PN}-ptest += " \ | ||
23 | ${PYTHON_PN}-pytest \ | ||
24 | ${PYTHON_PN}-multiprocessing \ | ||
25 | ${PYTHON_PN}-profile \ | ||
26 | " | ||
27 | |||
28 | do_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 | |||
3 | pytest | ||