# -*- coding: utf-8 -*- # quick.tests minus compiler tests. from tests.quick import profile from framework.glsl_parser_test import GLSLParserTest __all__ = ['profile'] # Remove all glsl_parser_tests, as they are compiler test profile.filter_tests(lambda p, t: not isinstance(t, GLSLParserTest)) # Drop ARB_vertex_program/ARB_fragment_program compiler tests. del profile.tests['spec']['ARB_vertex_program'] del profile.tests['spec']['ARB_fragment_program'] del profile.tests['asmparsertest']
"""Profile that removes all GPU based tests. This profile is the inverse of gpu.py. It runs GLSLParserTests, asmparsertests, and ARB_vertex_program and ARB_fragment_program tests only. Using driver specific overrides these can be forced to run on arbitrary hardware. """ from __future__ import ( absolute_import, division, print_function, unicode_literals ) from tests.quick import profile from framework.test import GLSLParserTest __all__ = ['profile'] def filter_gpu(name, test): """Remove all tests that are run on the GPU.""" if isinstance(test, GLSLParserTest) or name.startswith('asmparsertest'): return True return False profile.filter_tests(filter_gpu)
"""Profile that removes all GPU based tests. This profile is the inverse of gpu.py. It runs GLSLParserTests, asmparsertests, and ARB_vertex_program and ARB_fragment_program tests only. Using driver specific overrides these can be forced to run on arbitrary hardware. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from tests.quick import profile from framework.test import GLSLParserTest __all__ = ['profile'] def filter_gpu(name, test): """Remove all tests that are run on the GPU.""" if isinstance(test, GLSLParserTest) or name.startswith('asmparsertest'): return True return False profile.filter_tests(filter_gpu)
# -*- coding: utf-8 -*- # quick.tests minus compiler tests. from tests.quick import profile from framework.test import GLSLParserTest __all__ = ['profile'] # Remove all parser tests, as they are compiler test profile.filter_tests(lambda p, t: not isinstance(t, GLSLParserTest)) profile.filter_tests(lambda n, _: not n.startswith('asmparsertest'))
# -*- coding: utf-8 -*- # quick.tests minus compiler tests. from __future__ import ( absolute_import, division, print_function, unicode_literals ) from tests.quick import profile from framework.test import GLSLParserTest __all__ = ['profile'] # Remove all parser tests, as they are compiler test profile.filter_tests(lambda p, t: not isinstance(t, GLSLParserTest)) profile.filter_tests(lambda n, _: not n.startswith('asmparsertest'))