[Piglit] [RFC v2 16/39] all.py: replace add_shader_test_dir with loop in all.py

Dylan Baker baker.dylan.c at gmail.com
Mon Feb 2 17:37:21 PST 2015


Rather than having a function that is called multiple times to scan
directories for shader tests, this patch creates a simple loop at the
top of the file that looks for shader shader tests and adds them.

This results in 7 additional tests being detected and add, and 5 tests
changing names.

The following 7 tests are now detected and added to the list:
spec/gl-3.1/attributeless-vertexid: skip pass
spec/glsl-1.20/compiler/unused-const-array: skip pass
spec/glsl-es-1.00/linker/glsl-fcoord-invariant: skip fail
spec/glsl-es-1.00/linker/glsl-fface-invariant: skip fail
spec/glsl-es-1.00/linker/glsl-no-glposition: skip pass
spec/glsl-es-1.00/linker/glsl-pcoord-invariant: skip fail
spec/glsl-es-1.00/linker/glsl-undefined-varying: skip pass

The following 5 tests change name:
spec/arb_texture_rg/execution/fs-shadow2d-red-02: skip pass
spec/arb_texture_rg/execution/fs-shadow2d-red-03: skip pass
spec/arb_texture_rg/execution/fs-shadow2d-red-01: skip pass
spec/arb_texture_rg/fs-shadow2d-red-03: pass skip
spec/arb_texture_rg/fs-shadow2d-red-02: pass skip
spec/arb_texture_rg/fs-shadow2d-red-01: pass skip
spec/arb_draw_instanced/draw-non-instanced: pass skip
spec/arb_draw_instanced/execution/draw-non-instanced: skip pass
spec/arb_draw_instanced/execution/instance-array-dereference: skip pass
spec/arb_draw_instanced/instance-array-dereference: pass skip

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/test/shader_test.py        |  22 --------
 framework/tests/shader_test_tests.py |  10 ----
 tests/all.py                         | 100 +++++------------------------------
 3 files changed, 14 insertions(+), 118 deletions(-)

diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py
index a05abea..be2d52a 100644
--- a/framework/test/shader_test.py
+++ b/framework/test/shader_test.py
@@ -24,16 +24,13 @@
 """ This module enables running shader tests. """
 
 from __future__ import print_function, absolute_import
-import os
 import re
 
 from .piglit_test import PiglitBaseTest
-from framework import grouptools
 
 __all__ = [
     'ShaderTest',
     'ShaderTestParserException',
-    'add_shader_test_dir'
 ]
 
 
@@ -98,22 +95,3 @@ class ShaderTest(PiglitBaseTest):
 class ShaderTestParserException(Exception):
     """ An excpetion to be raised for errors in the ShaderTest parser """
     pass
-
-
-def add_shader_test_dir(profile, group, startdir):
-    """Add all shader tests in a directory to the given group."""
-    assert isinstance(group, basestring)
-
-    for dirpath, _, filenames in os.walk(startdir):
-        for filename in filenames:
-            testname, ext = os.path.splitext(filename)
-            if ext != '.shader_test':
-                continue
-
-            lgroup = grouptools.join(
-                group,
-                grouptools.from_path(os.path.relpath(dirpath, startdir)),
-                testname)
-
-            profile.test_list[lgroup] = \
-                ShaderTest(os.path.join(dirpath, filename))
diff --git a/framework/tests/shader_test_tests.py b/framework/tests/shader_test_tests.py
index 9f44f70..7b06012 100644
--- a/framework/tests/shader_test_tests.py
+++ b/framework/tests/shader_test_tests.py
@@ -75,16 +75,6 @@ def test_parse_gles3_test():
             "but instead ran with " + os.path.basename(test.command[0]))
 
 
-def test_add_shader_test_dir():
-    """ Test that add_shader_test_dir works """
-    class Profile(object):  # pylint: disable=too-few-public-methods
-        def __init__(self):
-            self.test_list = {}
-
-    testm.add_shader_test_dir(Profile(), 'tests/spec/glsl-es-3.00',
-                              'tests/spec/glsl-es-3.00/execution')
-
-
 def test_add_fbo():
     """ ShaderTest.command adds -auto """
     test = testm.ShaderTest('tests/spec/glsl-es-1.00/execution/sanity.shader_test')
diff --git a/tests/all.py b/tests/all.py
index 39cde36..c81507b 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -6,21 +6,14 @@ __all__ = ['profile']
 import itertools
 import os
 import platform
-import subprocess
-import sys
 
 from framework import grouptools
 from framework.profile import TestProfile
-from framework.test import (PiglitGLTest, GleanTest, import_glsl_parser_tests,
-                            add_shader_test_dir)
+from framework.test import (PiglitGLTest, GleanTest, ShaderTest,
+                            import_glsl_parser_tests)
 from py_modules.constants import TESTS_DIR, GENERATED_TESTS_DIR
 
 
-def shader_test_dir(group, startdir):
-    """Wrapper for add_shader_test_dir that provides the profile element."""
-    add_shader_test_dir(profile, group, startdir)
-
-
 def add_single_param_test_set(group, name, *params):
     for param in params:
         group['{}-{}'.format(name, param)] = PiglitGLTest([name, param])
@@ -52,6 +45,18 @@ def power_set(s):
 # Collecting all tests
 profile = TestProfile()
 
+# Find and add all shader tests.
+for basedir in [TESTS_DIR, GENERATED_TESTS_DIR]:
+    for dirpath, _, filenames in os.walk(basedir):
+        for filename in filenames:
+            testname, ext = os.path.splitext(filename)
+            if ext == '.shader_test':
+                group = grouptools.join(
+                    grouptools.from_path(os.path.relpath(dirpath, basedir)),
+                    testname)
+                profile.test_list[group] = ShaderTest(
+                    os.path.join(dirpath, filename))
+
 # List of all of the MSAA sample counts we wish to test
 MSAA_SAMPLE_COUNTS = (2, 4, 6, 8, 16, 32)
 
@@ -394,8 +399,6 @@ def add_getactiveuniform_count(group, name, expected):
         run_concurrent=True)
 
 shaders = profile.tests['shaders']
-shader_test_dir('shaders',
-                os.path.join(TESTS_DIR, 'shaders'))
 add_concurrent_test(shaders, ['activeprogram-bad-program'])
 add_concurrent_test(shaders, ['activeprogram-get'])
 add_concurrent_test(shaders, ['attribute0'])
@@ -1066,8 +1069,6 @@ spec[grouptools.join('!OpenGL 4.4', 'tex-errors')] = PiglitGLTest(['tex-errors']
 import_glsl_parser_tests(spec['glsl-es-1.00'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-es-1.00'),
                          ['compiler'])
-shader_test_dir('spec/glsl-es-1.00/execution',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-es-1.00', 'execution'))
 spec['glsl-es-1.00']['built-in constants'] = PiglitGLTest(
     ['built-in-constants_gles2',
      os.path.join(TESTS_DIR, 'spec', 'glsl-es-1.00', 'minimum-maximums.txt')],
@@ -1077,10 +1078,6 @@ spec['glsl-es-1.00']['built-in constants'] = PiglitGLTest(
 import_glsl_parser_tests(spec['glsl-1.10'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-1.10'),
                          ['preprocessor', 'compiler'])
-shader_test_dir('spec/glsl-1.10/linker',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.10', 'linker'))
-shader_test_dir('spec/glsl-1.10/execution',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.10', 'execution'))
 add_concurrent_test(spec['glsl-1.10']['execution'], ['glsl-render-after-bad-attach'])
 add_concurrent_test(spec['glsl-1.10']['execution'], ['glsl-1.10-fragdepth'])
 for mode in ['fixed', 'pos_clipvert', 'clipvert_pos']:
@@ -1109,10 +1106,6 @@ import_glsl_parser_tests(spec['glsl-1.20'],
 import_glsl_parser_tests(spec['glsl-1.20'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-1.20'),
                          ['compiler'])
-shader_test_dir('spec/glsl-1.20/execution',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.20', 'execution'))
-shader_test_dir('spec/glsl-1.20/linker',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.20', 'linker'))
 
 def add_recursion_test(group, name):
     # When the recursion tests fail it is usually because the GLSL
@@ -1228,8 +1221,6 @@ add_concurrent_test(spec['glsl-1.30']['execution'], ['texelFetch', 'fs', 'sample
 add_concurrent_test(spec['glsl-1.30']['execution'], ['fs-texelFetch-2D'])
 add_concurrent_test(spec['glsl-1.30']['execution'], ['fs-texelFetchOffset-2D'])
 add_concurrent_test(spec['glsl-1.30']['execution'], ['fs-textureOffset-2D'])
-shader_test_dir('spec/glsl-1.30/execution',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.30', 'execution'))
 add_plain_test(spec['glsl-1.30']['linker']['clipping'], ['mixing-clip-distance-and-clip-vertex-disallowed'])
 add_plain_test(spec['glsl-1.30']['execution']['clipping'], ['max-clip-distances'])
 for arg in ['vs_basic', 'vs_xfb', 'vs_fbo', 'fs_basic', 'fs_fbo']:
@@ -1426,8 +1417,6 @@ add_concurrent_test(spec['glsl-1.30']['execution'], ['tex-miplevel-selection', '
 import_glsl_parser_tests(spec['glsl-1.40'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-1.40'),
                          ['compiler'])
-shader_test_dir('spec/glsl-1.40',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.40'))
 spec['glsl-1.40']['execution']['tf-no-position'] = PiglitGLTest(['glsl-1.40-tf-no-position'], run_concurrent=True)
 spec['glsl-1.40']['built-in constants'] = PiglitGLTest(
     ['built-in-constants',
@@ -1463,8 +1452,6 @@ for stage in ['vs', 'gs', 'fs']:
 import_glsl_parser_tests(spec['glsl-1.50'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-1.50'),
                          ['compiler'])
-shader_test_dir('spec/glsl-1.50',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-1.50'))
 spec['glsl-1.50']['execution']['interface-blocks-api-access-members'] = PiglitGLTest(['glsl-1.50-interface-blocks-api-access-members'], run_concurrent=True)
 spec['glsl-1.50']['execution']['get-active-attrib-array'] = PiglitGLTest(['glsl-1.50-get-active-attrib-array'], run_concurrent=True)
 spec['glsl-1.50']['execution']['vs-input-arrays'] = PiglitGLTest(['glsl-1.50-vs-input-arrays'], run_concurrent=True)
@@ -1540,15 +1527,11 @@ spec['glsl-3.30']['built-in constants'] = PiglitGLTest(
 import_glsl_parser_tests(spec['glsl-3.30'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-3.30'),
                          ['compiler'])
-shader_test_dir('spec/glsl-3.30',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-3.30'))
 
 # Group spec/glsl-es-3.00
 import_glsl_parser_tests(spec['glsl-es-3.00'],
                          os.path.join(TESTS_DIR, 'spec', 'glsl-es-3.00'),
                          ['compiler'])
-shader_test_dir('spec/glsl-es-3.00',
-                os.path.join(TESTS_DIR, 'spec', 'glsl-es-3.00'))
 add_concurrent_test(spec['glsl-es-3.00']['execution'], ['varying-struct-centroid_gles3'])
 spec['glsl-es-3.00']['built-in constants'] = PiglitGLTest(
     ['built-in-constants_gles3',
@@ -1562,23 +1545,17 @@ profile.test_list[grouptools.join('spec', 'AMD_performance_monitor', 'measure')]
 import_glsl_parser_tests(spec['AMD_conservative_depth'],
                          os.path.join(TESTS_DIR, 'spec', 'amd_conservative_depth'),
                          [''])
-shader_test_dir('spec/AMD_conservative_depth',
-                os.path.join(TESTS_DIR, 'spec', 'amd_conservative_depth'))
 
 # Group ARB_arrays_of_arrays
 arb_arrays_of_arrays = spec['ARB_arrays_of_arrays']
 import_glsl_parser_tests(arb_arrays_of_arrays,
                          os.path.join(TESTS_DIR, 'spec', 'arb_arrays_of_arrays'),
                          ['compiler'])
-shader_test_dir('spec/arb_arrays_of_arrays',
-                os.path.join(TESTS_DIR, 'spec', 'arb_arrays_of_arrays'))
 
 # Group AMD_shader_trinary_minmax
 import_glsl_parser_tests(spec['AMD_shader_trinary_minmax'],
                          os.path.join(TESTS_DIR, 'spec', 'amd_shader_trinary_minmax'),
                          [''])
-shader_test_dir('spec/AMD_shader_trinary_minmax',
-                os.path.join(TESTS_DIR, 'spec', 'amd_shader_trinary_minmax'))
 
 # Group ARB_point_sprite
 arb_point_sprite = spec['ARB_point_sprite']
@@ -1599,8 +1576,6 @@ add_concurrent_test(arb_tessellation_shader, ['arb_tessellation_shader-minmax'])
 import_glsl_parser_tests(arb_tessellation_shader,
                          os.path.join(TESTS_DIR, 'spec',
                          'arb_tessellation_shader'), ['compiler'])
-shader_test_dir('spec/arb_tessellation_shader',
-                os.path.join(TESTS_DIR, 'spec', 'arb_tessellation_shader'))
 
 # Group ARB_texture_multisample
 samplers_atm = ['sampler2DMS', 'isampler2DMS', 'usampler2DMS',
@@ -1739,8 +1714,6 @@ import_glsl_parser_tests(arb_draw_instanced,
                         os.path.join(TESTS_DIR, 'spec', 'arb_draw_instanced'),
                         [''])
 
-shader_test_dir('spec/arb_draw_instanced',
-                os.path.join(TESTS_DIR, 'spec', 'arb_draw_instanced', 'execution'))
 arb_draw_instanced['dlist'] = PiglitGLTest(['arb_draw_instanced-dlist'], run_concurrent=True)
 arb_draw_instanced['elements'] = PiglitGLTest(['arb_draw_instanced-elements'], run_concurrent=True)
 arb_draw_instanced['negative-arrays-first-negative'] = PiglitGLTest(['arb_draw_instanced-negative-arrays-first-negative'], run_concurrent=True)
@@ -1763,8 +1736,6 @@ arb_draw_indirect['gl_VertexID used with glDrawElementsIndirect'] = PiglitGLTest
 
 # Group ARB_fragment_program
 arb_fragment_program = spec['ARB_fragment_program']
-shader_test_dir('spec/ARB_fragment_program',
-                os.path.join(TESTS_DIR, 'spec', 'arb_fragment_program'))
 arb_fragment_program['minmax'] = PiglitGLTest(['arb_fragment_program-minmax'], run_concurrent=True)
 add_vpfpgeneric(arb_fragment_program, 'fdo30337a')
 add_vpfpgeneric(arb_fragment_program, 'fdo30337b')
@@ -1791,8 +1762,6 @@ add_plain_test(arb_fragment_program, ['trinity-fp1'])
 arb_fragment_program['incomplete-texture-arb_fp'] = PiglitGLTest(['incomplete-texture', 'arb_fp'], run_concurrent=True)
 
 # Group ARB_fragment_program_shadow
-shader_test_dir('spec/ARB_fragment_program_shadow',
-                os.path.join(TESTS_DIR, 'spec', 'arb_fragment_program_shadow'))
 
 nv_fragment_program_option = spec['NV_fragment_program_option']
 add_plain_test(nv_fragment_program_option, ['fp-abs-02'])
@@ -1809,8 +1778,6 @@ import_glsl_parser_tests(arb_fragment_coord_conventions,
                                       'arb_fragment_coord_conventions'),
                          ['compiler'])
 
-shader_test_dir('arb_fragment_layer_viewport',
-                os.path.join(TESTS_DIR, 'spec', 'arb_fragment_layer_viewport'))
 
 ati_fragment_shader = spec['ATI_fragment_shader']
 add_plain_test(ati_fragment_shader, ['ati-fs-bad-delete'])
@@ -1883,8 +1850,6 @@ add_plain_test(arb_framebuffer_srgb, ['framebuffer-srgb']) # must not be concurr
 add_concurrent_test(arb_framebuffer_srgb, ['arb_framebuffer_srgb-clear'])
 
 arb_gpu_shader5 = spec['ARB_gpu_shader5']
-shader_test_dir('spec/arb_gpu_shader5',
-                os.path.join(TESTS_DIR, 'spec', 'arb_gpu_shader5'))
 import_glsl_parser_tests(arb_gpu_shader5,
                          os.path.join(TESTS_DIR, 'spec', 'arb_gpu_shader5'),
                          [''])
@@ -1941,23 +1906,17 @@ add_concurrent_test(arb_gpu_shader5, ['arb_gpu_shader5-interpolateAtOffset'])
 add_concurrent_test(arb_gpu_shader5, ['arb_gpu_shader5-interpolateAtOffset-nonconst'])
 
 arb_shader_subroutine = spec['ARB_shader_subroutine']
-shader_test_dir('spec/arb_shader_subroutine',
-                os.path.join(TESTS_DIR, 'spec', 'arb_shader_subroutine'))
 import_glsl_parser_tests(arb_shader_subroutine,
                          os.path.join(TESTS_DIR, 'spec', 'arb_shader_subroutine'),
                          [''])
 add_concurrent_test(arb_shader_subroutine, ['arb_shader_subroutine-minmax'])
 
 arb_gpu_shader_fp64 = spec['ARB_gpu_shader_fp64']
-shader_test_dir('spec/arb_gpu_shader_fp64',
-                os.path.join(TESTS_DIR, 'spec', 'arb_gpu_shader_fp64'))
 import_glsl_parser_tests(arb_gpu_shader_fp64,
                     os.path.join(TESTS_DIR, 'spec', 'arb_gpu_shader_fp64'),
                     [''])
 
 arb_texture_query_levels = spec['ARB_texture_query_levels']
-shader_test_dir('spec/arb_texture_query_levels',
-                os.path.join(TESTS_DIR, 'spec', 'arb_texture_query_levels'))
 import_glsl_parser_tests(arb_texture_query_levels,
                          os.path.join(TESTS_DIR, 'spec', 'arb_texture_query_levels'),
                          [''])
@@ -2080,13 +2039,9 @@ add_plain_test(arb_robustness, ['arb_robustness_client-mem-bounds'])
 #add_plain_test(arb_robustness, ['arb_robustness_draw-vbo-bounds'])
 
 # Group ARB_shader_bit_encoding
-shader_test_dir('spec/arb_shader_bit_encoding/execution',
-                os.path.join(TESTS_DIR, 'spec', 'arb_shader_bit_encoding', 'execution'))
 
 # Group ARB_shader_texture_lod
 arb_shader_texture_lod = spec['ARB_shader_texture_lod']
-shader_test_dir('spec/arb_shader_texture_lod/execution',
-                os.path.join(TESTS_DIR, 'spec', 'arb_shader_texture_lod', 'execution'))
 add_plain_test(arb_shader_texture_lod['execution'], ['arb_shader_texture_lod-texgrad'])
 add_plain_test(arb_shader_texture_lod['execution'], ['arb_shader_texture_lod-texgradcube'])
 
@@ -2139,8 +2094,6 @@ arb_shading_language_420pack = spec['ARB_shading_language_420pack']
 import_glsl_parser_tests(arb_shading_language_420pack,
                          os.path.join(TESTS_DIR, 'spec', 'arb_shading_language_420pack'),
                          ['compiler'])
-shader_test_dir('spec/arb_shading_language_420pack/execution',
-                os.path.join(TESTS_DIR, 'spec', 'arb_shading_language_420pack', 'execution'))
 spec['ARB_shading_language_420pack']['built-in constants'] = PiglitGLTest(
     ['built-in-constants',
      os.path.join(TESTS_DIR, 'spec', 'arb_shading_language_420pack', 'minimum-maximums.txt')],
@@ -2167,8 +2120,6 @@ arb_explicit_uniform_location = spec['ARB_explicit_uniform_location']
 import_glsl_parser_tests(arb_explicit_uniform_location,
                          os.path.join(TESTS_DIR, 'spec', 'arb_explicit_uniform_location'),
                          [''])
-shader_test_dir('spec/arb_explicit_uniform_location',
-                os.path.join(TESTS_DIR, 'spec', 'arb_explicit_uniform_location'))
 add_plain_test(arb_explicit_uniform_location, ['arb_explicit_uniform_location-minmax'])
 add_plain_test(arb_explicit_uniform_location, ['arb_explicit_uniform_location-boundaries'])
 add_plain_test(arb_explicit_uniform_location, ['arb_explicit_uniform_location-array-elements'])
@@ -2198,13 +2149,9 @@ arb_texture_buffer_range['errors'] = PiglitGLTest(['arb_texture_buffer_range-err
 arb_texture_buffer_range['ranges'] = PiglitGLTest(['arb_texture_buffer_range-ranges'], run_concurrent=True)
 arb_texture_buffer_range['ranges-2'] = PiglitGLTest(['arb_texture_buffer_range-ranges-2'], run_concurrent=True)
 
-shader_test_dir('spec/arb_texture_query_lod',
-                os.path.join(TESTS_DIR, 'spec', 'arb_texture_query_lod'))
 
 arb_texture_rectangle = spec['ARB_texture_rectangle']
 add_texwrap_target_tests(arb_texture_rectangle, 'RECT')
-shader_test_dir('spec/arb_texture_rectangle',
-                os.path.join(TESTS_DIR, 'spec', 'arb_texture_rectangle'))
 add_msaa_visual_plain_tests(arb_texture_rectangle, ['copyteximage', 'RECT'])
 add_concurrent_test(arb_texture_rectangle, ['1-1-linear-texture'])
 add_plain_test(arb_texture_rectangle, ['texrect-many'])
@@ -2778,8 +2725,6 @@ add_concurrent_test(ext_texture_array, ['fbo-generatemipmap-array', 'RGB9_E5'])
 add_concurrent_test(ext_texture_array, ['fbo-generatemipmap-array', 'S3TC_DXT1'])
 spec['EXT_texture_array']['maxlayers'] = PiglitGLTest(['ext_texture_array-maxlayers'], run_concurrent=True)
 spec['EXT_texture_array']['gen-mipmap'] = PiglitGLTest(['ext_texture_array-gen-mipmap'], run_concurrent=True)
-shader_test_dir('spec/ext_texture_array',
-                os.path.join(TESTS_DIR, 'spec', 'ext_texture_array'))
 add_msaa_visual_plain_tests(ext_texture_array, ['copyteximage', '1D_ARRAY'])
 add_msaa_visual_plain_tests(ext_texture_array, ['copyteximage', '2D_ARRAY'])
 add_plain_test(ext_texture_array, ['fbo-array'])
@@ -2917,8 +2862,6 @@ add_texwrap_format_tests(ext_texture_integer, 'GL_EXT_texture_integer')
 add_plain_test(ext_texture_integer, ['fbo-integer'])
 
 arb_texture_rg = spec['ARB_texture_rg']
-shader_test_dir('spec/arb_texture_rg',
-                os.path.join(TESTS_DIR, 'spec', 'arb_texture_rg', 'execution'))
 add_fbo_formats_tests(grouptools.join('spec', 'ARB_texture_rg'), 'GL_ARB_texture_rg')
 add_fbo_formats_tests(grouptools.join('spec', 'ARB_texture_rg'), 'GL_ARB_texture_rg-float', '-float')
 # unsupported for int yet
@@ -3175,8 +3118,6 @@ arb_uniform_buffer_object = spec['ARB_uniform_buffer_object']
 import_glsl_parser_tests(spec['ARB_uniform_buffer_object'],
                          os.path.join(TESTS_DIR, 'spec', 'arb_uniform_buffer_object'),
                          [''])
-shader_test_dir('spec/ARB_uniform_buffer_object',
-                os.path.join(TESTS_DIR, 'spec', 'arb_uniform_buffer_object'))
 arb_uniform_buffer_object['bindbuffer-general-point'] = PiglitGLTest(['arb_uniform_buffer_object-bindbuffer-general-point'], run_concurrent=True)
 arb_uniform_buffer_object['buffer-targets'] = PiglitGLTest(['arb_uniform_buffer_object-buffer-targets'], run_concurrent=True)
 arb_uniform_buffer_object['bufferstorage'] = PiglitGLTest(['arb_uniform_buffer_object-bufferstorage'], run_concurrent=True)
@@ -3269,8 +3210,6 @@ ext_fog_coord = spec['EXT_fog_coord']
 add_plain_test(ext_fog_coord, ['ext_fog_coord-modes'])
 
 ext_shader_integer_mix = spec['EXT_shader_integer_mix']
-shader_test_dir('spec/EXT_shader_integer_mix',
-                os.path.join(TESTS_DIR, 'spec', 'ext_shader_integer_mix'))
 
 nv_texture_barrier = spec['NV_texture_barrier']
 add_plain_test(nv_texture_barrier, ['blending-in-shader'])
@@ -3423,8 +3362,6 @@ add_concurrent_test(arb_copy_image, ['arb_copy_image-formats', '--samples=8'])
 
 arb_cull_distance = spec['arb_cull_distance']
 add_concurrent_test(arb_cull_distance, ['arb_cull_distance-max-distances'])
-shader_test_dir(grouptools.join('spec', 'arb_cull_distance'),
-                os.path.join(TESTS_DIR, 'spec', 'arb_cull_distance'))
 
 arb_half_float_vertex = spec['ARB_half_float_vertex']
 add_plain_test(arb_half_float_vertex, ['draw-vertices-half-float'])
@@ -3518,8 +3455,6 @@ add_concurrent_test(arb_geometry_shader4, ['arb_geometry_shader4-program-paramet
 add_concurrent_test(arb_geometry_shader4, ['arb_geometry_shader4-vertices-in'])
 for mode in ['1', 'tf 1', 'max', 'tf max']:
     add_concurrent_test(arb_geometry_shader4, ['arb_geometry_shader4-program-parameter-vertices-out', mode])
-shader_test_dir('spec/ARB_geometry_shader4',
-                os.path.join(TESTS_DIR, 'spec', 'arb_geometry_shader4'))
 import_glsl_parser_tests(spec['ARB_geometry_shader4'],
                          os.path.join(TESTS_DIR, 'spec', 'arb_geometry_shader4'),
                          ['compiler'])
@@ -3529,8 +3464,6 @@ arb_compute_shader['api_errors'] = PiglitGLTest(['arb_compute_shader-api_errors'
 arb_compute_shader['minmax'] = PiglitGLTest(['arb_compute_shader-minmax'], run_concurrent=True)
 arb_compute_shader[grouptools.join('compiler', 'work_group_size_too_large')] = \
     PiglitGLTest(['arb_compute_shader-work_group_size_too_large'], run_concurrent=True)
-shader_test_dir('spec/ARB_compute_shader',
-                os.path.join(TESTS_DIR, 'spec', 'arb_compute_shader'))
 import_glsl_parser_tests(spec['ARB_compute_shader'],
                          os.path.join(TESTS_DIR, 'spec', 'arb_compute_shader'),
                          ['compiler'])
@@ -3573,8 +3506,6 @@ add_plain_test(hiz, ['hiz-stencil-test-window-depth0'])
 add_plain_test(hiz, ['hiz-stencil-test-window-depth1'])
 
 fast_color_clear = profile.tests['fast_color_clear']
-shader_test_dir('fast_color_clear',
-                os.path.join(TESTS_DIR, 'fast_color_clear'))
 for subtest in ('sample', 'read_pixels', 'blit', 'copy'):
     for buffer_type in ('rb', 'tex'):
         if subtest == 'sample' and buffer_type == 'rb':
@@ -4120,7 +4051,6 @@ for tex_format in ('rgb8', 'srgb8', 'rgba8', 'srgb8-alpha8', 'r11', 'rg11', 'rgb
 add_concurrent_test(arb_es3_compatibility, ['es3-primrestart-fixedindex'])
 add_concurrent_test(arb_es3_compatibility, ['es3-drawarrays-primrestart-fixedindex'])
 
-shader_test_dir('spec', os.path.join(GENERATED_TESTS_DIR, 'spec'))
 import_glsl_parser_tests(profile.tests, GENERATED_TESTS_DIR, ['spec'])
 
 arb_shader_atomic_counters = spec['ARB_shader_atomic_counters']
@@ -4142,8 +4072,6 @@ arb_shader_atomic_counters['unused-result'] = PiglitGLTest(['arb_shader_atomic_c
 arb_shader_atomic_counters['respecify-buffer'] = PiglitGLTest(['arb_shader_atomic_counters-respecify-buffer'], run_concurrent=True)
 
 arb_derivative_control = spec['ARB_derivative_control']
-shader_test_dir('spec/arb_derivative_control',
-                os.path.join(TESTS_DIR, 'spec', 'arb_derivative_control'))
 import_glsl_parser_tests(arb_derivative_control,
                          os.path.join(TESTS_DIR, 'spec', 'arb_derivative_control'),
                          [''])
-- 
2.2.2



More information about the Piglit mailing list