Lines Matching refs:self

75   def check_return_code_is_zero(self, status):
85 def check_return_code_is_nonzero(self, status):
94 def check_no_output_on_stdout(self, status):
103 def check_no_output_on_stderr(self, status):
118 def check_no_generated_files(self, status):
133 def verify_binary_length_and_header(self, binary, spv_version=0x10000):
202 def verify_object_file_preamble(self,
218 return self.verify_binary_length_and_header(binary, spv_version)
226 def verify_assembly_file_preamble(self, filename):
248 def check_object_file_preamble(self, status):
251 success, message = self.verify_object_file_preamble(
263 def check_object_file_preamble(self, status):
266 success, message = self.verify_object_file_preamble(
278 def check_object_file_preamble(self, status):
281 success, message = self.verify_object_file_preamble(
293 def check_object_file_preamble(self, status):
296 success, message = self.verify_object_file_preamble(
312 def check_object_file_disassembly(self, status):
316 success, message = self.verify_object_file_preamble(obj_file)
345 def check_object_file_preamble(self, status):
346 for object_filename in self.expected_object_filenames:
347 success, message = self.verify_object_file_preamble(
359 def check_file(self, status):
360 target_filename = os.path.join(status.directory, self.target_filename)
365 if isinstance(self.expected_file_contents, str):
366 if file_contents == self.expected_file_contents:
372 exp=self.expected_file_contents,
376 self.expected_file_contents.split('\n'),
380 elif isinstance(self.expected_file_contents, type(re.compile(''))):
381 if self.expected_file_contents.search(file_contents):
386 exp=self.expected_file_contents.pattern))
396 def check_assembly_file_preamble(self, status):
399 success, message = self.verify_assembly_file_preamble(
416 def check_assembly_with_substr(self, status):
419 success, message = self.verify_assembly_file_preamble(
425 if self.expected_assembly_substr not in convert_to_unix_line_endings(
429 asm=content, exp=self.expected_assembly_substr))
443 def check_assembly_for_substr(self, status):
446 success, message = self.verify_assembly_file_preamble(
452 if self.unexpected_assembly_substr in convert_to_unix_line_endings(
456 asm=content, exp=self.unexpected_assembly_substr))
468 def check_object_file_preamble(self, status):
469 for assembly_filename in self.expected_assembly_filenames:
470 success, message = self.verify_assembly_file_preamble(
486 def check_has_error_message(self, status):
498 if self.expected_error != convert_to_unix_line_endings(status.stderr):
501 act=status.stderr, exp=self.expected_error))
515 def check_has_error_message_as_substring(self, status):
527 if self.expected_error_substr not in convert_to_unix_line_endings(
531 act=status.stderr, exp=self.expected_error_substr))
542 def check_has_warning_message(self, status):
548 if self.expected_warning != convert_to_unix_line_endings(status.stderr):
551 act=status.stderr, exp=self.expected_warning))
561 def check_object_file_preamble(self, status):
564 success, message = self.verify_object_file_preamble(
577 def check_assembly_file_preamble(self, status):
580 success, message = self.verify_assembly_file_preamble(
600 def check_stdout_match(self, status):
604 if self.expected_stdout is True:
607 elif type(self.expected_stdout) == str:
608 if self.expected_stdout != convert_to_unix_line_endings(status.stdout):
611 ac=status.stdout, ex=self.expected_stdout))
614 if not self.expected_stdout.search(converted):
617 ac=status.stdout, ex=self.expected_stdout.pattern))
634 def check_stderr_match(self, status):
638 if self.expected_stderr is True:
641 elif type(self.expected_stderr) == str:
642 if self.expected_stderr != convert_to_unix_line_endings(status.stderr):
645 ac=status.stderr, ex=self.expected_stderr))
647 if not self.expected_stderr.search(
651 ac=status.stderr, ex=self.expected_stderr.pattern))
662 def check_stdout_not_too_wide(self, status):
676 def check_no_object_file(self, status):
692 def check_no_named_output_files(self, status):
693 for object_filename in self.expected_output_filenames:
709 def check_list_of_executed_passes(self, status):
718 for (expected, actual) in zip(self.expected_passes, pass_names):