summaryrefslogtreecommitdiff
path: root/framework/test/shader_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'framework/test/shader_test.py')
-rw-r--r--framework/test/shader_test.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py
index a05abeaf1..be2d52a40 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))