diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index da6fa6ee97..d7d711383c 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -63,6 +63,7 @@ PTESTS_FAST = "\ python3-jinja2 \ python3-jsonpointer \ python3-license-expression \ + python3-mako \ python3-markupsafe \ python3-more-itertools \ python3-pluggy \ 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 @@ +#!/bin/sh + +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" PYPI_PACKAGE = "Mako" -inherit pypi python_setuptools_build_meta +inherit pypi python_setuptools_build_meta ptest + +SRC_URI:append = " \ + file://run-ptest \ +" SRC_URI[sha256sum] = "48dbc20568c1d276a2698b36d968fa76161bf127194907ea6fc594fa81f943bc" @@ -17,4 +21,15 @@ RDEPENDS:${PN} = "python3-html \ python3-threading \ " +RDEPENDS:${PN}-ptest += "\ + python3-pytest \ + python3-unittest-automake-output \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/test + install -m 0644 ${S}/setup.cfg ${D}${PTEST_PATH}/ + cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ +} + BBCLASSEXTEND = "native nativesdk"