2
1
Эх сурвалжийг харах

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 <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Romain Naour 2 жил өмнө
parent
commit
f9f6da877a

+ 1 - 0
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

+ 3 - 0
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

+ 13 - 0
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