[Piglit] [RFC 06/30] profiles: add new profiles that only run specific test classes.
Dylan Baker
baker.dylan.c at gmail.com
Tue Jan 27 14:58:40 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 ef8b639..f45a3e0 100644
--- a/README
+++ b/README
@@ -290,6 +290,12 @@ gpu.py
A further reduced set of tests from quick.py, this runs tests only
for hardware functionality and not tests for the software stack.
+glslparser.py
+ A subset of all.py which runs only glslparser tests
+
+shader.py
+ A subset of all.py which runs only shader tests
+
radeon.py
r300.py
r500.py
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.2.2
More information about the Piglit
mailing list