arb_copy_image: test copying of different mipmap levels of a texture
[piglit.git] / tests / no_error.py
blob4ecaa9a019bc22843bc1b55df6ee9d6d84ee87d9
1 # -*- coding: utf-8 -*-
3 import itertools
5 from tests.quick_gl import profile as _profile1
6 from tests.quick_shader import profile as _profile2
7 from framework.test import PiglitGLTest
8 from framework.test.shader_test import ShaderTest, MultiShaderTest
9 from framework.profile import TestProfile
11 __all__ = ['profile']
13 # Save the filters from the original profiles to a new profile
14 profile = TestProfile()
15 profile.filters = _profile1.filters + _profile2.filters
17 # Add a modified version of each PiglitGLTest as a khr_no_error variant.
18 # Shader runner doesn't explicitly test for expected errors so we add shader
19 # tests as is. We actively filter GLSL parser and any other type of tests.
20 for name, test in itertools.chain(_profile1.test_list.items(),
21 _profile2.test_list.items()):
22 if isinstance(test, (PiglitGLTest, ShaderTest, MultiShaderTest)):
23 profile.test_list['{} khr_no_error'.format(name)] = test
24 test.command += ['-khr_no_error']