Message ID | 20230609174955.409551-4-romain.naour@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/4] support/testing: add python-mako runtime test | expand |
On Fri, 9 Jun 2023 19:49:55 +0200 Romain Naour <romain.naour@gmail.com> wrote: > Mako provide some external plugins that requires additionnal and > optionnal runtime dependencies. > > Signed-off-by: Romain Naour <romain.naour@gmail.com> > --- > .../testing/tests/package/sample_python_mako_ext.py | 3 +++ > support/testing/tests/package/test_python_mako.py | 12 ++++++++++++ > 2 files changed, 15 insertions(+) > create mode 100644 support/testing/tests/package/sample_python_mako_ext.py Applied to master after adding entries in the DEVELOPERS file, and fixing flake8 warnings. Thanks! Thomas
diff --git a/support/testing/tests/package/sample_python_mako_ext.py b/support/testing/tests/package/sample_python_mako_ext.py new file mode 100644 index 0000000000..5b06a28181 --- /dev/null +++ b/support/testing/tests/package/sample_python_mako_ext.py @@ -0,0 +1,3 @@ +from mako import runtime +import mako.ext.pygmentplugin +import mako.ext.babelplugin diff --git a/support/testing/tests/package/test_python_mako.py b/support/testing/tests/package/test_python_mako.py index b6075bde6a..f1031d1d59 100644 --- a/support/testing/tests/package/test_python_mako.py +++ b/support/testing/tests/package/test_python_mako.py @@ -10,3 +10,15 @@ class TestPythonPy3Mako(TestPythonPackageBase): """ sample_scripts = ["tests/package/sample_python_mako.py"] timeout = 30 + +class TestPythonPy3MakoExt(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_MAKO=y + BR2_PACKAGE_PYTHON_MAKO_EXT_PYGMENTPLUGIN=y + BR2_PACKAGE_PYTHON_MAKO_EXT_BABELPLUGIN=y + """ + sample_scripts = ["tests/package/sample_python_mako_ext.py"] + timeout = 30
Mako provide some external plugins that requires additionnal and optionnal runtime dependencies. Signed-off-by: Romain Naour <romain.naour@gmail.com> --- .../testing/tests/package/sample_python_mako_ext.py | 3 +++ support/testing/tests/package/test_python_mako.py | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 support/testing/tests/package/sample_python_mako_ext.py