From f9f6da877a7c8b24a79d2c784b31876c270c9cb4 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Fri, 9 Jun 2023 19:49:55 +0200 Subject: [PATCH] support/testing: TestPythonPy3MakoExt: new test for mako external plugins Mako provide some external plugins that requires additionnal and optional runtime dependencies, make sure we test these situations. Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + .../testing/tests/package/sample_python_mako_ext.py | 3 +++ support/testing/tests/package/test_python_mako.py | 13 +++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 support/testing/tests/package/sample_python_mako_ext.py diff --git a/DEVELOPERS b/DEVELOPERS index 83d7ae868f..c297deedbe 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2610,6 +2610,7 @@ F: package/waffle/ F: package/xenomai/ F: package/zziplib/ F: support/testing/tests/package/sample_python_mako.py +F: support/testing/tests/package/sample_python_mako_ext.py F: support/testing/tests/package/test_glxinfo.py F: support/testing/tests/package/test_openssh.py F: support/testing/tests/package/test_python_mako.py 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..855d64ebf5 --- /dev/null +++ b/support/testing/tests/package/sample_python_mako_ext.py @@ -0,0 +1,3 @@ +from mako import runtime # noqa +import mako.ext.pygmentplugin # noqa +import mako.ext.babelplugin # noqa diff --git a/support/testing/tests/package/test_python_mako.py b/support/testing/tests/package/test_python_mako.py index b6075bde6a..ea8fe57a5b 100644 --- a/support/testing/tests/package/test_python_mako.py +++ b/support/testing/tests/package/test_python_mako.py @@ -10,3 +10,16 @@ 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