Ejemplo n.º 1
0
__all__ = ['profile']

# See the note in all.py about this warning
# pylint: disable=bad-continuation

GleanTest.GLOBAL_PARAMS += ["--quick"]

# Set the --quick flag on a few image_load_store_tests
with profile.group_manager(
        PiglitGLTest, grouptools.join('spec',
                                      'arb_shader_image_load_store')) as g:
    with profile.allow_reassignment:
        g(['arb_shader_image_load_store-coherency', '--quick'], 'coherency')
        g(['arb_shader_image_load_store-host-mem-barrier', '--quick'],
          'host-mem-barrier')
        g(['arb_shader_image_load_store-max-size', '--quick'], 'max-size')
        g(['arb_shader_image_load_store-semantics', '--quick'], 'semantics')
        g(['arb_shader_image_load_store-shader-mem-barrier', '--quick'],
          'shader-mem-barrier')

# Set the --quick flag on the image_size test
with profile.group_manager(PiglitGLTest,
                           grouptools.join('spec',
                                           'arb_shader_image_size')) as g:
    with profile.allow_reassignment:
        g(['arb_shader_image_size-builtin', '--quick'], 'builtin')

# These take too long
profile.filter_tests(lambda n, _: '-explosion' not in n)
Ejemplo n.º 2
0
"""A profile that runs only ShaderTest instances."""

from __future__ import (
    absolute_import, division, print_function, unicode_literals
)

from framework.test.shader_test import ShaderTest, MultiShaderTest
from tests.all import profile

__all__ = ['profile']

profile.filter_tests(lambda _, t: isinstance(t, (ShaderTest, MultiShaderTest)))
Ejemplo n.º 3
0
"""A profile that runs only GLSLParserTest instances."""

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)

from framework.test import GLSLParserTest
from tests.all import profile

__all__ = ['profile']

profile.filter_tests(lambda _, t: isinstance(t, GLSLParserTest))
Ejemplo n.º 4
0
"""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))
Ejemplo n.º 5
0
"""A profile that runs only GLSLParserTest instances."""

from __future__ import (
    absolute_import, division, print_function, unicode_literals
)

from framework.test import GLSLParserTest
from tests.all import profile

__all__ = ['profile']

profile.filter_tests(lambda _, t: isinstance(t, GLSLParserTest))
Ejemplo n.º 6
0
# -*- coding: utf-8 -*-

from framework import grouptools
from framework.test import (GleanTest, PiglitGLTest)
from tests.all import profile

__all__ = ['profile']

# See the note in all.py about this warning
# pylint: disable=bad-continuation

GleanTest.GLOBAL_PARAMS += ["--quick"]

# Set the --quick flag on a few image_load_store_tests
with profile.group_manager(
        PiglitGLTest,
        grouptools.join('spec', 'arb_shader_image_load_store')) as g:
    with profile.allow_reassignment:
        g(['arb_shader_image_load_store-coherency', '--quick'], 'coherency')
        g(['arb_shader_image_load_store-host-mem-barrier', '--quick'],
          'host-mem-barrier')
        g(['arb_shader_image_load_store-max-size', '--quick'], 'max-size')
        g(['arb_shader_image_load_store-semantics', '--quick'], 'semantics')
        g(['arb_shader_image_load_store-shader-mem-barrier', '--quick'],
          'shader-mem-barrier')

# These take too long
profile.filter_tests(lambda n, _: '-explosion' not in n)