[Piglit] [PATCH 01/13] profiles: add new profiles that only run specific test classes.

Dylan Baker baker.dylan.c at gmail.com
Thu Feb 12 10:38:37 PST 2015


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 README              | 6 ++++++
 tests/glslparser.py | 8 ++++++++
 tests/shader.py     | 8 ++++++++
 3 files changed, 22 insertions(+)
 create mode 100644 tests/glslparser.py
 create mode 100644 tests/shader.py

diff --git a/README b/README
index e1e1e2c..5c36e75 100644
--- a/README
+++ b/README
@@ -306,6 +306,12 @@ cpu.py
 	This profile runs tests that don't touch the gpu, in other words all of
 	the tests in quick.py that are not run by gpu.py
 
+glslparser.py
+	A subset of all.py which runs only glslparser tests
+
+shader.py
+	A subset of all.py which runs only shader tests
+
 
 4.2 OpenCL Tests
 ----------------
diff --git a/tests/glslparser.py b/tests/glslparser.py
new file mode 100644
index 0000000..b5338f8
--- /dev/null
+++ b/tests/glslparser.py
@@ -0,0 +1,8 @@
+"""A profile that runs only GLSLParserTest instances."""
+
+from framework.test import GLSLParserTest
+from tests.all import profile
+
+__all__ = ['profile']
+
+profile.filter_tests(lambda _, t: isinstance(t, GLSLParserTest))
diff --git a/tests/shader.py b/tests/shader.py
new file mode 100644
index 0000000..4be504b
--- /dev/null
+++ b/tests/shader.py
@@ -0,0 +1,8 @@
+"""A profile that runs only ShaderTest instances."""
+
+from framework.test import ShaderTest
+from tests.all import profile
+
+__all__ = ['profile']
+
+profile.filter_tests(lambda _, t: isinstance(t, ShaderTest))
-- 
2.3.0



More information about the Piglit mailing list