コード例 #1
0
ファイル: gpu.py プロジェクト: rafalmiel/piglit
# -*- 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']
コード例 #2
0
ファイル: cpu.py プロジェクト: BNieuwenhuizen/piglit
"""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)
コード例 #3
0
ファイル: cpu.py プロジェクト: Endle/piglit-gsoc
"""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)
コード例 #4
0
ファイル: gpu.py プロジェクト: passdedd/piglit
# -*- 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'))
コード例 #5
0
ファイル: gpu.py プロジェクト: BNieuwenhuizen/piglit
# -*- 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'))