diff options
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-parse-type.inc | 15 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-parse-type/run-ptest | 3 |
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" | |||
7 | SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" | 7 | SRC_URI[sha256sum] = "f596bdc75d3dd93036fbfe3d04127da9f6df0c26c36e01e76da85adef4336b3c" |
8 | 8 | ||
9 | PYPI_PACKAGE = "parse_type" | 9 | PYPI_PACKAGE = "parse_type" |
10 | inherit pypi | 10 | inherit pypi ptest |
11 | 11 | ||
12 | RDEPENDS_${PN} += "${PYTHON_PN}-parse" | 12 | RDEPENDS_${PN} += "${PYTHON_PN}-parse" |
13 | |||
14 | SRC_URI += " \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | |||
18 | RDEPENDS_${PN}-ptest += " \ | ||
19 | ${PYTHON_PN}-pytest \ | ||
20 | " | ||
21 | |||
22 | do_install_ptest() { | ||
23 | install -d ${D}${PTEST_PATH}/tests | ||
24 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
25 | } | ||
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | pytest | ||