Home | History | Annotate | Download | only in test

Lines Matching refs:test_file

167         self.test_file = open(policy_file_name, 'r')
187 self.test_file.seek(279)
188 self.failIf(SELinux_CTS.expand_brackets(self.test_file))
191 self.test_file.seek(26123)
192 self.failUnless(SELinux_CTS.expand_brackets(self.test_file) == " entrypoint read execute ")
195 self.test_file.seek(26873)
196 self.failUnless(SELinux_CTS.expand_brackets(self.test_file)
201 self.test_file.seek(26096)
210 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
212 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
214 c = SELinux_CTS.advance_past_whitespace(self.test_file)
216 self.test_file.read(1)
217 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
219 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
223 self.test_file.seek(26838)
232 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
234 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
237 c = SELinux_CTS.advance_past_whitespace(self.test_file)
239 self.test_file.read(1)
240 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
242 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
246 self.test_file.seek(26967)
255 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
257 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
259 c = SELinux_CTS.advance_past_whitespace(self.test_file)
261 self.test_file.read(1)
262 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
264 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
268 self.test_file.seek(26806)
271 self.failUnless(SELinux_CTS.get_avc_rule_component(self.test_file)
304 self.test_file.seek(inherit_offset, 0)
305 inherit_result = SELinux_CTS.process_inherits_segment(self.test_file)
310 #using a special file, since the test_file has some lines which don't 'jive'
375 self.test_file.seek(common_offset, 0)
376 line = self.test_file.readline()
377 class_policy.process_common_line(line, self.test_file)
378 self.test_file.seek(class_initial_offset, 0)
379 line = self.test_file.readline()
380 class_policy.process_class_line(line, self.test_file)
382 test_file.seek(class_perm_offset, 0)
383 line = self.test_file.readline()
384 class_policy.process_class_line(line, self.test_file)
390 self.test_file.seek(common_offset, 0)
391 line = self.test_file.readline()
392 common_policy.process_common_line(line, self.test_file)
400 self.test_file.seek(allow_offset, 0)
401 line = self.test_file.readline()
402 avc_policy.process_avc_rule_line(line, self.test_file)
404 self.test_file.seek(neverallow_offset, 0)
405 line = self.test_file.readline()
406 avc_policy.process_avc_rule_line(line, self.test_file)