aboutsummaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorZang Ruochen <zangrc.fnst@cn.fujitsu.com>2020-04-02 10:23:03 +0800
committerKhem Raj <raj.khem@gmail.com>2020-04-01 23:32:54 -0700
commit03bce25da33eae6d8f671303e13b79602b5446ef (patch)
tree5d78ad73f1e245a39f1a36f8035f08b93fadc7b6 /meta-python
parentee2735b3c0fbb0272b9251fb8aa28befe92560d5 (diff)
downloadmeta-openembedded-03bce25da33eae6d8f671303e13b79602b5446ef.tar.gz
python3-parse-type: Enable ptest
Signed-off-by: Zang Ruochen <zangrc.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-parse-type.inc15
-rw-r--r--meta-python/recipes-devtools/python/python3-parse-type/run-ptest3
2 files changed, 17 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-parse-type.inc b/meta-python/recipes-devtools/python/python-parse-type.inc
index 4549ec98b8..147ea6443f 100644
--- a/meta-python/recipes-devtools/python/python-parse-type.inc
+++ b/meta-python/recipes-devtools/python/python-parse-type.inc
@@ -7,6 +7,19 @@ SRC_URI[md5sum] = "b5fa59e45965d1b2896023742df2e707"
SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c"
PYPI_PACKAGE = "parse_type"
-inherit pypi
+inherit pypi ptest
RDEPENDS_${PN} += "${PYTHON_PN}-parse"
+
+SRC_URI += " \
+ file://run-ptest \
+"
+
+RDEPENDS_${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+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-parse-type/run-ptest b/meta-python/recipes-devtools/python/python3-parse-type/run-ptest
new file mode 100644
index 0000000000..5cec711696
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-parse-type/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest