Lines Matching full:in

43             default = [self.enum_type(v.lower()) for v in default]
55 values = [self.enum_type(v.lower()) for v in values]
219 … tuple[str, bool]: Tuple of the expected failure string and whether it was present in `stderr`
236 """Check whether `cgnsdiff` is an executable program in the current environment
247 return 'not found' not in proc.stderr.decode('utf-8')
251 """Helper function, checks if any of the substrings are included in the base string
254 base (str): Base string to search in
258 bool: True if any substrings are included in base string
260 return any((sub in base for sub in substrings))
273 return any((base.startswith(prefix) for prefix in prefixes))
289 …Tuple[int]: If matching delimeters are found, return indices in `list`. Otherwise, return end < st…
299 for i in range(start + 1, len(line)):
319 field_names = [f.name for f in test_fields]
326 raise ParseError(f"Mismatched parentheses in TESTCASE: {line}")
340 for match in re.finditer(keyvalues_pattern, keyvalues_str):
348 value = [constraint.strip() for constraint in value.split(',')]
360 if not 'name' in known.keys():
370 for k, v in other.items():
388 if source_file.suffix in ['.c', '.cc', '.cpp']:
390 elif source_file.suffix in ['.py']:
392 elif source_file.suffix in ['.usr']:
394 elif source_file.suffix in ['.f90']:
400 for line in source_file.read_text().splitlines()
423 return f'No lines found in test output {test_csv}'
425 return f'No lines found in test source {true_csv}'
427 return f'Number of lines in {test_csv} and {true_csv} do not match'
431 for n, (test_line, true_line) in enumerate(zip(test_lines, true_lines)):
438 return f'Commented line found in {test_csv} at line {n} but not in {true_csv}'
440 return f'Commented line found in {true_csv} at line {n} but not in {test_csv}'
445 test_lines = [test_lines[line] for line in uncommented_lines]
446 true_lines = [true_lines[line] for line in uncommented_lines]
451 return f'No CSV columns found in test output {test_csv}'
453 return f'No CSV columns found in test source {true_csv}'
459 for test_line, true_line in zip(test_reader, true_reader):
460 for key in test_reader.fieldnames:
545 for k, v in spec.key_values.items():
551 for i, failure in enumerate(test_case.failures):
567 for failure in test_case.failures:
605 if '{ceed_resource}' in run_args:
607 for i, arg in enumerate(run_args):
608 if '{ceed_resource}' in arg:
610 if '{nproc}' in run_args:
627 proc = subprocess.run(' '.join(str(arg) for arg in run_args),
643 … output_files: List[str] = [arg.split(':')[1] for arg in run_args if arg.startswith('ascii:')]
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:')]
652 ref_cgns = [suite_spec.get_output_path(test, file) for file in output_files]
687 for ref_csv in ref_csvs:
714 for ref_cgn in ref_cgns:
734 for ref_file in ref_ascii:
754 test_case.args = ' '.join(str(arg) for arg in run_args)
778 …pool_size (int, optional): Number of processes to use when running tests in parallel. Defaults to …
786 …t for t in get_test_args(suite_spec.get_source_path(test)) if re.search(search, t.name, re.IGNOREC…
796 for (i, backend) in enumerate(ceed_backends, start=1)]
797 for spec in test_specs
801 for (i, subtest) in enumerate(async_outputs, start=1):
804 for async_output in subtest:
832 """Check whether any test cases in a `TestSuite` failed
840 return any(c.is_failure() or c.is_error() for c in test_suite.test_cases)