shader_runner: don't abort on atomic counter subtest failure
[piglit.git] / tests / no_error.py
blob9b53c6cb4f3ace6d54e52c20e169deaf78d47351
1 # -*- coding: utf-8 -*-
3 from __future__ import (
4 absolute_import, division, print_function, unicode_literals
6 import itertools
8 import six
10 from tests.quick_gl import profile as _profile1
11 from tests.quick_shader import profile as _profile2
12 from framework.test import PiglitGLTest
13 from framework.test.shader_test import ShaderTest, MultiShaderTest
14 from framework.profile import TestProfile
16 __all__ = ['profile']
18 # Save the filters from the original profiles to a new profile
19 profile = TestProfile()
20 profile.filters = _profile1.filters + _profile2.filters
22 # Add a modified version of each PiglitGLTest as a khr_no_error variant.
23 # Shader runner doesn't explitly test for expected errors so we add shader
24 # tests as is. We actively filter GLSL parser and any other type of tests.
25 for name, test in itertools.chain(six.iteritems(_profile1.test_list),
26 six.iteritems(_profile2.test_list)):
27 if isinstance(test, (PiglitGLTest, ShaderTest, MultiShaderTest)):
28 profile.test_list['{} khr_no_error'.format(name)] = test
29 test.command += ['-khr_no_error']