def test_platform_not_in_exclude(self, mock_options):
     """does not skip if platform is in exclude_platforms."""
     mock_options.env['PIGLIT_PLATFORM'] = 'gbm'
     test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
     test.is_skip()
 def test_platform_not_in_require(self, mock_options):
     """skips if platform is not in require_platforms."""
     mock_options.env['PIGLIT_PLATFORM'] = 'gbm'
     test = PiglitGLTest(['foo'], require_platforms=['glx'])
     with pytest.raises(_TestIsSkip):
         test.is_skip()
 def test_platform_in_exclude(self, mock_options):
     """skips if platform is in exclude_platforms."""
     mock_options.env['PIGLIT_PLATFORM'] = 'glx'
     test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
     with pytest.raises(_TestIsSkip):
         test.is_skip()
Beispiel #4
0
def test_PiglitGLTest_platform_not_in_exclude():
    """test.piglit_test.PiglitGLTest.is_skip(): does not skip if platform is in exclude_platforms"""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
    test.is_skip()
 def test_platform_in_require(self, mock_options):
     """does not skip if platform is in require_platforms."""
     mock_options.env['PIGLIT_PLATFORM'] = 'glx'
     test = PiglitGLTest(['foo'], require_platforms=['glx'])
     test.is_skip()
Beispiel #6
0
def test_PiglitGLTest_platform_not_in_exclude(mock_opts):
    """test.piglit_test.PiglitGLTest.is_skip(): does not skip if platform is in exclude_platforms"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
    test.is_skip()
Beispiel #7
0
def test_PiglitGLTest_platform_not_in_require():
    """test.piglit_test.PiglitGLTest.is_skip(): skips if platform is not in require_platforms"""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], require_platforms=['glx'])
    test.is_skip()
Beispiel #8
0
def test_PiglitGLTest_platform_in_require():
    """PiglitGLTest.is_skip() does not skip if platform is in require_platforms."""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'glx'
    test = PiglitGLTest(['foo'], require_platforms=['glx'])
    nt.assert_false(test.is_skip())
Beispiel #9
0
def test_PiglitGLTest_platform_not_in_require(mock_opts):
    """test.piglit_test.PiglitGLTest.is_skip(): skips if platform is not in require_platforms"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], require_platforms=['glx'])
    test.is_skip()
Beispiel #10
0
def test_PiglitGLTest_platform_not_in_exclude():
    """PiglitGLTest.is_skip() does not skip if platform is in exclude_platforms."""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
    nt.assert_false(test.is_skip())
Beispiel #11
0
def test_PiglitGLTest_platform_in_exclude():
    """PiglitGLTest.is_skip() skips if platform is in exclude_platforms.."""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'glx'
    test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
    nt.assert_true(test.is_skip())
Beispiel #12
0
def test_PiglitGLTest_platform_not_in_require():
    """PiglitGLTest.is_skip() skips if platform is not in require_platforms."""
    PiglitGLTest.OPTS.env['PIGLIT_PLATFORM'] = 'gbm'
    test = PiglitGLTest(['foo'], require_platforms=['glx'])
    nt.assert_true(test.is_skip())
def test_PiglitGLTest_platform_in_exclude(mock_opts):
    """test.piglit_test.PiglitGLTest.is_skip(): skips if platform is in exclude_platforms"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'glx'
    test = PiglitGLTest(['foo'], exclude_platforms=['glx'])
    test.is_skip()
def test_PiglitGLTest_platform_in_require(mock_opts):
    """test.piglit_test.PiglitGLTest.is_skip(): does not skip if platform is in require_platforms"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'glx'
    test = PiglitGLTest(['foo'], require_platforms=['glx'])
    test.is_skip()