summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2008-07-05 09:31:24 +0200
committerNicolai Haehnle <nhaehnle@gmail.com>2008-07-05 09:31:24 +0200
commit83283dd14c002ad610695a8e25fe586eea6f0b8b (patch)
treec602b9930ff53607f33c2b09d09a9911134dc6f7 /tests
parent9810d1ce80f781853d52f706dc82695fbb5a1705 (diff)
Reorganize test profiles for Radeon family drivers
Diffstat (limited to 'tests')
-rw-r--r--tests/r300.tests33
-rw-r--r--tests/r500.tests18
-rw-r--r--tests/radeon.tests35
3 files changed, 54 insertions, 32 deletions
diff --git a/tests/r300.tests b/tests/r300.tests
index 6c12656c8..c4f24165d 100644
--- a/tests/r300.tests
+++ b/tests/r300.tests
@@ -6,44 +6,13 @@
import os
import re
-execfile(os.path.dirname(__file__) + '/all.tests')
+execfile(os.path.dirname(__file__) + '/radeon.tests')
from framework.core import *
from framework.gleantest import *
-
-
-# Potentially serious problem, but workaround for now
-GleanTest.globalParams += [ '--visuals', 'id != 0x4b' ]
-Test.ignoreErrors.append(re.compile('3D driver claims to not support'))
-
-# Debug info
-Test.ignoreErrors.append(re.compile('Try R300_SPAN_DISABLE_LOCKING env var if this hangs.'))
-
-# Some window managers can be confusing for some of the tests because they
-# send resize / move events that invalidate frame buffer contents.
-# It would be nice to fix these things in a reliable way, but for now
-# this workaround of waiting between tests helps...
-Test.sleep = 0.2
-
-
# glean/blendFunc
# R300 blending hardware appears to be bad
env = profile.tests['glean']['blendFunc'].env
env['GLEAN_BLEND_RGB_TOLERANCE'] = 1.9
env['GLEAN_BLEND_ALPHA_TOLERANCE'] = 2.0
-
-# glean/exactRGBA
-# insane OpenGL spec requirements
-env = profile.tests['glean']['exactRGBA'].env
-env['GLEAN_EXACTRGBA_ROUNDING'] = 1
-
-# Tests specific to r300
-r300 = Group()
-# Apparently, LOD calculations are off a little for small MIP levels.
-# This test is a relaxed variant of the texturing/cubemap test.
-# Its only purpose is to catch major regressions in cubemapping as long as we
-# fail the real texturing/cubemap test.
-r300['cubemap-relax'] = PlainExecTest([testBinDir + 'cubemap', '-auto', '-r300relax'])
-
-profile.tests['r300'] = r300
diff --git a/tests/r500.tests b/tests/r500.tests
new file mode 100644
index 000000000..6fe27338a
--- /dev/null
+++ b/tests/r500.tests
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+#
+# Testing the r500 DRI driver
+#
+
+import os
+import re
+
+execfile(os.path.dirname(__file__) + '/radeon.tests')
+
+from framework.core import *
+from framework.gleantest import *
+
+# glean/blendFunc
+# R500 blending hardware appears to be a bit better than R300
+env = profile.tests['glean']['blendFunc'].env
+env['GLEAN_BLEND_RGB_TOLERANCE'] = 1.35
+env['GLEAN_BLEND_ALPHA_TOLERANCE'] = 1.35
diff --git a/tests/radeon.tests b/tests/radeon.tests
new file mode 100644
index 000000000..0984639fa
--- /dev/null
+++ b/tests/radeon.tests
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+#
+# Testing drivers for Radeon hardware
+#
+
+import os
+import re
+
+execfile(os.path.dirname(__file__) + '/all.tests')
+
+from framework.core import *
+from framework.gleantest import *
+
+
+# Some window managers can be confusing for some of the tests because they
+# send resize / move events that invalidate frame buffer contents.
+# It would be nice to fix these things in a reliable way, but for now
+# this workaround of waiting between tests helps...
+Test.sleep = 0.2
+
+
+# glean/exactRGBA
+# insane OpenGL spec requirements
+env = profile.tests['glean']['exactRGBA'].env
+env['GLEAN_EXACTRGBA_ROUNDING'] = 1
+
+# Tests specific to r300
+r300 = Group()
+# Apparently, LOD calculations are off a little for small MIP levels.
+# This test is a relaxed variant of the texturing/cubemap test.
+# Its only purpose is to catch major regressions in cubemapping as long as we
+# fail the real texturing/cubemap test.
+r300['cubemap-relax'] = PlainExecTest([testBinDir + 'cubemap', '-auto', '-r300relax'])
+
+profile.tests['r300'] = r300