Exemple #1
0
    def test_default(self, env, config):  # pylint: disable=unused-argument
        """When neither the config file nor the environment sets a value for
        compression the default value should be used.
        """
        env.clear()

        assert compression.get_mode() == compression.DEFAULT
Exemple #2
0
    def test_default(self, env, config):  # pylint: disable=unused-argument
        """When neither the config file nor the environment sets a value for
        compression the default value should be used.
        """
        env.clear()

        assert compression.get_mode() == compression.DEFAULT
def test_update_piglit_conf():
    """framework.backends.compression: The compression mode honors updates to piglit.conf.

    the values in piglit.conf are subject to change. And the default
    compression mode needs to be changed with them.

    """
    nt.eq_(compression.get_mode(), 'foobar')
def test_update_piglit_conf():
    """framework.backends.compression: The compression mode honors updates to piglit.conf.

    the values in piglit.conf are subject to change. And the default
    compression mode needs to be changed with them.

    """
    nt.eq_(compression.get_mode(), 'foobar')
Exemple #5
0
    def test_piglit_conf(self, env, config, compressor):
        """Test that when env doesn't have a PIGLIT_COMPRESSION environment
        varaible set, but the configuraiton has a compression method set that
        it is used.
        """
        compressor.add('foobar', None)
        config.set('core', 'compression', 'foobar')
        env.clear()

        assert compression.get_mode() == 'foobar'
Exemple #6
0
    def test_piglit_conf(self, env, config, compressor):
        """Test that when env doesn't have a PIGLIT_COMPRESSION environment
        varaible set, but the configuraiton has a compression method set that
        it is used.
        """
        compressor.add('foobar', None)
        config.set('core', 'compression', 'foobar')
        env.clear()

        assert compression.get_mode() == 'foobar'
def testget_mode_default():
    """framework.backends.compression.get_mode: uses DEFAULT if env and piglit.conf are unset"""
    nt.eq_(compression.get_mode(), compression.DEFAULT)
def testget_mode_piglit_conf():
    """framework.backends.compression.get_mode: uses piglit.conf [core]:compression value if env is unset"""
    nt.eq_(compression.get_mode(), 'foobar')
def testget_mode_env():
    """framework.backends.compression.get_mode: uses PIGlIT_COMPRESSION environment variable"""
    nt.eq_(compression.get_mode(), 'foobar')
def testget_mode_default():
    """framework.backends.compression.get_mode: uses DEFAULT if env and piglit.conf are unset"""
    nt.eq_(compression.get_mode(), compression.DEFAULT)
def testget_mode_piglit_conf():
    """framework.backends.compression.get_mode: uses piglit.conf [core]:compression value if env is unset"""
    nt.eq_(compression.get_mode(), 'foobar')
def testget_mode_env():
    """framework.backends.compression.get_mode: uses PIGlIT_COMPRESSION environment variable"""
    nt.eq_(compression.get_mode(), 'foobar')