diff options
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/python/python3-mako/run-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-mako_1.3.5.bb | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-mako/run-ptest b/meta/recipes-devtools/python/python3-mako/run-ptest new file mode 100644 index 0000000000..8d2017d39c --- /dev/null +++ b/meta/recipes-devtools/python/python3-mako/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | pytest --automake | ||
diff --git a/meta/recipes-devtools/python/python3-mako_1.3.5.bb b/meta/recipes-devtools/python/python3-mako_1.3.5.bb index d27fb121a6..d52f72f458 100644 --- a/meta/recipes-devtools/python/python3-mako_1.3.5.bb +++ b/meta/recipes-devtools/python/python3-mako_1.3.5.bb | |||
| @@ -6,7 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d0995d6f7ba3f186a03118f244e88f57" | |||
| 6 | 6 | ||
| 7 | PYPI_PACKAGE = "Mako" | 7 | PYPI_PACKAGE = "Mako" |
| 8 | 8 | ||
| 9 | inherit pypi python_setuptools_build_meta | 9 | inherit pypi python_setuptools_build_meta ptest |
| 10 | |||
| 11 | SRC_URI:append = " \ | ||
| 12 | file://run-ptest \ | ||
| 13 | " | ||
| 10 | 14 | ||
| 11 | SRC_URI[sha256sum] = "48dbc20568c1d276a2698b36d968fa76161bf127194907ea6fc594fa81f943bc" | 15 | SRC_URI[sha256sum] = "48dbc20568c1d276a2698b36d968fa76161bf127194907ea6fc594fa81f943bc" |
| 12 | 16 | ||
| @@ -17,4 +21,15 @@ RDEPENDS:${PN} = "python3-html \ | |||
| 17 | python3-threading \ | 21 | python3-threading \ |
| 18 | " | 22 | " |
| 19 | 23 | ||
| 24 | RDEPENDS:${PN}-ptest += "\ | ||
| 25 | python3-pytest \ | ||
| 26 | python3-unittest-automake-output \ | ||
| 27 | " | ||
| 28 | |||
| 29 | do_install_ptest() { | ||
| 30 | install -d ${D}${PTEST_PATH}/test | ||
| 31 | install -m 0644 ${S}/setup.cfg ${D}${PTEST_PATH}/ | ||
| 32 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ | ||
| 33 | } | ||
| 34 | |||
| 20 | BBCLASSEXTEND = "native nativesdk" | 35 | BBCLASSEXTEND = "native nativesdk" |
