diff options
| author | Zang Ruochen <zangrc.fnst@cn.fujitsu.com> | 2020-04-02 10:22:31 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-04-01 23:32:54 -0700 |
| commit | ee2735b3c0fbb0272b9251fb8aa28befe92560d5 (patch) | |
| tree | fe70fcd06f237cd67bbb72e72aa5dc2aa45fb8fc | |
| parent | 59438f43e40e2bee05897307cc0bc444b353ab2f (diff) | |
| download | meta-openembedded-ee2735b3c0fbb0272b9251fb8aa28befe92560d5.tar.gz | |
python3-parse: 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-parse.inc | 14 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-parse/run-ptest | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta-python/recipes-devtools/python/python-parse.inc b/meta-python/recipes-devtools/python/python-parse.inc index adae261296..ecfd67172a 100644 --- a/meta-python/recipes-devtools/python/python-parse.inc +++ b/meta-python/recipes-devtools/python/python-parse.inc | |||
| @@ -6,9 +6,21 @@ LIC_FILES_CHKSUM = "file://parse.py;beginline=1325;endline=1345;md5=3d987b2e7388 | |||
| 6 | SRC_URI[md5sum] = "a5aa82b2b8b4d733d227e3c99d7d01b4" | 6 | SRC_URI[md5sum] = "a5aa82b2b8b4d733d227e3c99d7d01b4" |
| 7 | SRC_URI[sha256sum] = "a6d4e2c2f1fbde6717d28084a191a052950f758c0cbd83805357e6575c2b95c0" | 7 | SRC_URI[sha256sum] = "a6d4e2c2f1fbde6717d28084a191a052950f758c0cbd83805357e6575c2b95c0" |
| 8 | 8 | ||
| 9 | inherit pypi | 9 | inherit pypi ptest |
| 10 | 10 | ||
| 11 | RDEPENDS_${PN} += "\ | 11 | RDEPENDS_${PN} += "\ |
| 12 | ${PYTHON_PN}-datetime \ | 12 | ${PYTHON_PN}-datetime \ |
| 13 | ${PYTHON_PN}-logging \ | 13 | ${PYTHON_PN}-logging \ |
| 14 | " | 14 | " |
| 15 | |||
| 16 | SRC_URI += " \ | ||
| 17 | file://run-ptest \ | ||
| 18 | " | ||
| 19 | |||
| 20 | RDEPENDS_${PN}-ptest += " \ | ||
| 21 | ${PYTHON_PN}-pytest \ | ||
| 22 | " | ||
| 23 | |||
| 24 | do_install_ptest() { | ||
| 25 | cp -f ${S}/test_parse.py ${D}${PTEST_PATH}/ | ||
| 26 | } | ||
diff --git a/meta-python/recipes-devtools/python/python3-parse/run-ptest b/meta-python/recipes-devtools/python/python3-parse/run-ptest new file mode 100644 index 0000000000..40c284799d --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-parse/run-ptest | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | pytest | ||
