Home
last modified time | relevance | path

Searched refs:test_object (Results 1 – 3 of 3) sorted by relevance

/test/vts-testcase/kernel/api/selinux/
DVtsKernelSelinuxFileApiTest.py44 def runSelinuxFileTest(self, test_object): argument
50 logging.info("Testing existence of %s" % (test_object.get_path()))
53 target_file_utils.Exists(test_object.get_path(), self.shell),
54 "%s: File does not exist." % test_object.get_path())
56 logging.info("Testing permissions of %s" % (test_object.get_path()))
59 test_object.get_path(), self.shell)
61 test_object.get_permission_checker()(permissions),
63 (test_object.get_path(), permissions))
67 logging.info("Testing format of %s" % (test_object.get_path()))
69 test_object.get_path(), self.shell)
[all …]
/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py270 def run_proc_file_test(test_object): argument
277 if test_object in TEST_OBJECTS_64 and not self.is64Bit(self.dut):
280 test_object.set_api_level(self.dut)
281 filepath = test_object.get_path()
282 if not self.dut.Exists(filepath) and test_object.file_optional(dut=self.dut):
287 self.assertTrue(test_object.get_permission_checker())
288 self.assertTrue(test_object.get_permission_checker()(permission),
294 test_object.prepare_test(self.dut), "Setup failed!")
296 if not test_object.test_format():
301 parse_result = test_object.parse_contents(file_content)
[all …]
/test/vts-testcase/kernel/api/proc/
DVtsKernelProcFileApiTest.py136 def runProcFileTest(self, test_object): argument
142 asserts.skipIf(test_object in TEST_OBJECTS_64 and not self.dut.is64Bit,
144 test_object.set_api_level(self.dut)
145 filepath = test_object.get_path()
147 test_object.file_optional(shell=self.shell, dut=self.dut),
150 self.shell, filepath, test_object.get_permission_checker())
155 test_object.prepare_test(self.shell, self.dut), "Setup failed!")
157 if not test_object.test_format():
162 parse_result = test_object.parse_contents(file_content)
166 test_object.result_correct(parse_result), "Results not valid!")