[Piglit] [PATCH] Updated sanity.py to reflect new Piglit version of the read pixels sanity test.
Laura Ekstrand
laura at jlekstrand.net
Tue Oct 21 10:02:09 PDT 2014
---
tests/sanity.py | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/tests/sanity.py b/tests/sanity.py
index 0e0e038..0a3c49c 100644
--- a/tests/sanity.py
+++ b/tests/sanity.py
@@ -3,10 +3,36 @@
#
from framework.profile import TestProfile
-from framework.gleantest import GleanTest
+from framework.exectest import PiglitTest
+
+# Helper functions from all.py:
+# Quick wrapper for PiglitTest for our usual concurrent args.
+def plain_test(args):
+ return PiglitTest(args.split() + ['-auto'])
+
+def add_single_param_test_set(group, name, *params):
+ for param in params:
+ group[name + '-' + param] = plain_test(name + ' ' + param)
+
+def add_plain_test(group, args):
+ assert '/' not in args, args
+ group[args] = plain_test(args)
+
+def concurrent_test(args):
+ test = plain_test(args + ' -fbo')
+ test.run_concurrent = True
+ return test
+
+def add_concurrent_test(group, args):
+ assert '/' not in args, args
+ group[args] = concurrent_test(args)
__all__ = ['profile']
profile = TestProfile()
-profile.tests['glean/basic'] = GleanTest('basic')
-profile.tests['glean/readPixSanity'] = GleanTest('readPixSanity')
+
+spec = {}
+profile.tests['spec'] = spec
+gl10 = {}
+spec['!OpenGL 1.0'] = gl10
+add_concurrent_test(gl10, 'gl-1.0-readpixsanity')
--
2.1.0
More information about the Piglit
mailing list