[Piglit] [PATCH 36/49] unittests/suites/test_integration: Add tests for remaining suites

Dylan Baker dylan at pnwbakers.com
Fri Jul 29 18:39:22 UTC 2016


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 unittests/suites/test_integration.py | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/unittests/suites/test_integration.py b/unittests/suites/test_integration.py
index 8c22473..1172c13 100644
--- a/unittests/suites/test_integration.py
+++ b/unittests/suites/test_integration.py
@@ -55,9 +55,24 @@ def _import(name):
                     'This may be expected.')
 
 
-def test_xts_import():
-    """ xts.py can be imported """
-    _import('tests.xts')
+ at pytest.mark.parametrize("name", [
+    'tests.cts_gl',
+    'tests.cts_gles',
+    'tests.deqp_gles2',
+    'tests.deqp_gles3',
+    'tests.deqp_gles31',
+    'tests.deqp_vk',
+    'tests.es3conform',
+    'tests.igt',
+    'tests.oglconform',
+    'tests.xts',
+    'tests.xts-render',
+])
+def test_import(name):
+    """Try to import tests, if they raise an error skip."""
+    # TODO: Figure out what is necissary for each test to run, or catch
+    # specific errors as skips rather than any of them.
+    _import(name)
 
 
 def test_xts_xtstest():
@@ -72,33 +87,18 @@ def test_xts_xtsprofile():
     mod.XTSProfile()
 
 
-def test_igt_import():
-    """ igt.py can be imported """
-    _import('tests.igt')
-
-
 def test_igt_igttest():
     """ igt.IGTTest initializes """
     mod = _import('tests.igt')
     mod.IGTTest('foo')
 
 
-def test_es3conform_import():
-    """ es3conform.py can be imported """
-    _import('tests.es3conform')
-
-
 def test_es3conform_gtftest():
     """ es3conform.GTFTest initializes """
     mod = _import('tests.es3conform')
     mod.GTFTest('testpath')
 
 
-def test_oglconform_import():
-    """ oglconform.py can be imported """
-    _import('tests.oglconform')
-
-
 def test_oglconform_oglctest():
     """ oglconform.OGLCTest initializes """
     mod = _import('tests.oglconform')
-- 
2.9.0



More information about the Piglit mailing list