summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2016-03-10 17:32:31 -0800
committerDylan Baker <baker.dylan.c@gmail.com>2016-03-11 12:26:10 -0800
commit05fe08a0b46b15cb663c4a89203b75d456289884 (patch)
tree6fc339dc21595bef7591194cacd094ad99d48b45 /framework
parent1d83558d4bef6e0cd05b1cf167c2bf63ac6b3b92 (diff)
framework: Add generic deqp options to piglit.conf
Sometimes there are extra arguments to deqp that a developer wants for all of the test suites, this adds that option by putting a generic [deqp] section and add an extra_args. This new extra args gets joined with any suite specific extra_args Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'framework')
-rw-r--r--framework/test/deqp.py28
1 files changed, 17 insertions, 11 deletions
diff --git a/framework/test/deqp.py b/framework/test/deqp.py
index 0c4b8a04d..4fd51eca0 100644
--- a/framework/test/deqp.py
+++ b/framework/test/deqp.py
@@ -40,17 +40,6 @@ __all__ = [
]
-def make_profile(test_list, test_class):
- """Create a TestProfile instance."""
- profile = TestProfile()
- for testname in test_list:
- # deqp uses '.' as the testgroup separator.
- piglit_name = testname.replace('.', grouptools.SEPARATOR)
- profile.test_list[piglit_name] = test_class(testname)
-
- return profile
-
-
def get_option(env_varname, config_option, default=None):
"""Query the given environment variable and then piglit.conf for the option.
@@ -66,6 +55,22 @@ def get_option(env_varname, config_option, default=None):
return opt or default
+_EXTRA_ARGS = get_option('PIGLIT_DEQP_EXTRA_ARGS',
+ ('deqp', 'extra_args'),
+ default='').split()
+
+
+def make_profile(test_list, test_class):
+ """Create a TestProfile instance."""
+ profile = TestProfile()
+ for testname in test_list:
+ # deqp uses '.' as the testgroup separator.
+ piglit_name = testname.replace('.', grouptools.SEPARATOR)
+ profile.test_list[piglit_name] = test_class(testname)
+
+ return profile
+
+
def gen_caselist_txt(bin_, caselist, extra_args):
"""Generate a caselist.txt and return its path.
@@ -129,6 +134,7 @@ class DEQPBaseTest(Test):
only works to join two lists together.
"""
+ return _EXTRA_ARGS
def __init__(self, case_name):
command = [self.deqp_bin, '--deqp-case=' + case_name]