Lines Matching full:if

34         if not issubclass(type, Enum):
38 if isinstance(default, self.enum_type):
50 if isinstance(values, self.enum_type):
182 … """Check if a test case should be skipped prior to running, returning the reason for skipping
191 Optional[str]: Skip reason, or `None` if test case should not be skipped
196 """Check if a test case should be allowed to fail, based on its stderr output
205 Optional[str]: Skip reason, or `None` if unexpected error
210 """Check whether a test case is expected to fail and if it failed expectedly
230 bool: True if the test is allowed to print console output
239 bool: True if `cgnsdiff` is found
251 """Helper function, checks if any of the substrings are included in the base string
258 bool: True if any substrings are included in base string
264 """Helper function, checks if the base string is prefixed by any of `prefixes`
271 bool: True if base string is prefixed by any of the prefixes
285 RuntimeError: If open or close is not a single character
286 RuntimeError: If open and close are the same characters
289 …Tuple[int]: If matching delimeters are found, return indices in `list`. Otherwise, return end < st…
291 if len(open) != 1 or len(close) != 1:
293 if open == close:
296 if start < 0:
300 if line[i] == open:
302 if line[i] == close:
304 if count == 0:
322 if line[0] == "(":
325 if end < start:
341 if not match: # empty
344 value = match.group(2) if match.group(2) else match.group(3)
347 if key == "only": # weird bc only is a list
360 if not 'name' in known.keys():
382 RuntimeError: Errors if source file extension is unsupported
385 … of parsed `TestSpec` objects, or a list containing a single, default `TestSpec` if none were found
388 if source_file.suffix in ['.c', '.cc', '.cpp']:
401if line.startswith(f'{comment_str}TESTARGS')] or [TestSpec(source_file.stem, args=['{ceed_resource…
414 comment_func (Callable, optional): Function to determine if test and true line are different
422 if len(test_lines) == 0:
424 if len(true_lines) == 0:
426 if len(test_lines) != len(true_lines):
432 if test_line[0] == comment_str and true_line[0] == comment_str:
433 if comment_func:
435 if output:
450 if not test_reader.fieldnames:
452 if not true_reader.fieldnames:
454 if test_reader.fieldnames != true_reader.fieldnames:
461 # Check if the value is numeric
468 if true_zero:
472 if fail:
475 if test_line[key] != true_line[key]:
526 if mode is RunMode.TAP:
527 # print incremental output if TAP mode
528 if test_case.is_skipped():
534 if test_case.is_failure() or test_case.is_error() or verbose:
536 if spec.only:
539 if spec.csv_ztol > 0:
541 if spec.csv_rtol > 0:
543 if spec.cgns_tol > 0:
547 if test_case.is_error():
549 if test_case.is_failure():
554 if failure["output"]:
559 # print error or failure information if JUNIT mode
560 if test_case.is_error() or test_case.is_failure():
563 if test_case.is_error():
566 if test_case.is_failure():
605 if '{ceed_resource}' in run_args:
608 if '{ceed_resource}' in arg:
610 if '{nproc}' in run_args:
617 if skip_reason:
643 … output_files: List[str] = [arg.split(':')[1] for arg in run_args if arg.startswith('ascii:')]
644 if output_files:
646 for file in output_files if file.endswith('.csv')]
648 for file in output_files if not file.endswith('.csv')]
650 output_files = [arg.split(':')[1] for arg in run_args if arg.startswith('cgns:')]
651 if output_files:
657 if not test_case.is_skipped() and test_case.stderr:
659 if skip_reason:
663 if not test_case.is_skipped():
666 if required_message and did_fail:
672 if not test_case.is_skipped() and not test_case.status:
673 if test_case.stderr:
675 if proc.returncode != 0:
677 if ref_stdout.is_file():
682 if diff:
690 if not ref_csv.is_file():
693 if not ref_csv.is_file():
698 csv_ztol: float = spec.csv_ztol if spec.csv_ztol > 0 else suite_spec.csv_ztol
699 csv_rtol: float = spec.csv_rtol if spec.csv_rtol > 0 else suite_spec.csv_rtol
707 if diff:
717 if not ref_cgn.is_file():
720 if not ref_cgn.is_file():
725 cgns_tol = spec.cgns_tol if spec.cgns_tol > 0 else suite_spec.cgns_tol
727 if diff:
737 if not ref_file.is_file():
740 if not ref_file.is_file():
746 if diff:
786 …t for t in get_test_args(suite_spec.get_source_path(test)) if re.search(search, t.name, re.IGNOREC…
789 if mode is RunMode.TAP:
807 if is_new_subtest and mode == RunMode.TAP:
812 if test_case.is_failure() or test_case.is_error():
814 if mode == RunMode.TAP:
815 print(f'{"" if subtest_ok else "not "}ok {i} - {test_case.category}')
838 bool: True if any test cases failed