コード例 #1
0
ファイル: profile_tests.py プロジェクト: krnowak/piglit
def test_testprofile_set_dmesg_false():
    """profile.TestProfile: Dmesg returns a DummyDmesg if set to False"""
    utils.platform_check("linux")
    profile_ = profile.TestProfile()
    profile_.dmesg = True
    profile_.dmesg = False
    nt.ok_(isinstance(profile_.dmesg, dmesg.DummyDmesg))
コード例 #2
0
ファイル: dmesg_tests.py プロジェクト: bpeel/piglit
def test_get_dmesg_linux():
    """dmesg.get_dmesg: Returns a LinuxDmesg when not_dummy is True and the OS is Linux
    """
    utils.platform_check('linux')
    posix = _get_dmesg()
    nt.assert_is(type(posix), dmesg.LinuxDmesg,
                 msg=("Error: get_dmesg should have returned LinuxDmesg, "
                      "but it actually returned {}".format(type(posix))))
コード例 #3
0
ファイル: json_tests.py プロジェクト: varadgautam/piglit
 def test_root_lspci(self):
     """JSON: lspci is a root key."""
     utils.platform_check('linux')
     utils.binary_check('lspci')
     nt.assert_in('lspci', self.json)
コード例 #4
0
ファイル: json_tests.py プロジェクト: varadgautam/piglit
 def test_root_glxinfo(self):
     """JSON: glxinfo is a root key."""
     utils.platform_check('linux')
     utils.binary_check('glxinfo')
     nt.assert_in('glxinfo', self.json)
コード例 #5
0
ファイル: json_tests.py プロジェクト: varadgautam/piglit
 def test_root_uname(self):
     """JSON: uname is a root key."""
     utils.platform_check('linux')
     utils.binary_check('uname')
     nt.assert_in('uname', self.json)
コード例 #6
0
ファイル: profile_tests.py プロジェクト: krnowak/piglit
def test_testprofile_set_dmesg_true():
    """profile.TestProfile: Dmesg returns an apropriate dmesg is ste to True"""
    utils.platform_check("linux")
    profile_ = profile.TestProfile()
    profile_.dmesg = True
    nt.ok_(isinstance(profile_.dmesg, dmesg.LinuxDmesg))
コード例 #7
0
 def test_root_glxinfo(self):
     """JSON: glxinfo is a root key."""
     utils.platform_check('linux')
     utils.binary_check('glxinfo')
     nt.assert_in('glxinfo', self.json)
コード例 #8
0
 def test_root_uname(self):
     """JSON: uname is a root key."""
     utils.platform_check('linux')
     utils.binary_check('uname')
     nt.assert_in('uname', self.json)
コード例 #9
0
 def test_root_lspci(self):
     """JSON: lspci is a root key."""
     utils.platform_check('linux')
     utils.binary_check('lspci')
     nt.assert_in('lspci', self.json)