[Piglit] [PATCH 1/2] sanity: Turn shader_test list into a string

Jordan Justen jordan.l.justen at intel.com
Fri Sep 21 22:53:46 UTC 2018


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 tests/sanity.py | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/tests/sanity.py b/tests/sanity.py
index 88bf27457..566d63218 100644
--- a/tests/sanity.py
+++ b/tests/sanity.py
@@ -66,10 +66,15 @@ def add_shader_test(shader):
 
 profile = TestProfile()
 
-add_shader_test('tests/shaders/glsl-algebraic-add-zero.shader_test')
-add_shader_test('tests/spec/glsl-1.50/execution/geometry-basic.shader_test')
-add_shader_test('tests/spec/arb_tessellation_shader/execution/sanity.shader_test')
-add_shader_test('tests/spec/arb_compute_shader/execution/basic-ssbo.shader_test')
+shader_tests = '''
+tests/shaders/glsl-algebraic-add-zero.shader_test
+tests/spec/arb_compute_shader/execution/basic-ssbo.shader_test
+tests/spec/arb_tessellation_shader/execution/sanity.shader_test
+tests/spec/glsl-1.50/execution/geometry-basic.shader_test
+'''
+
+for line in shader_tests.split():
+    add_shader_test(line)
 
 with profile.test_list.group_manager(
         PiglitGLTest,
-- 
2.18.0



More information about the Piglit mailing list