Lines Matching refs:str

19 sys.path.insert(0, str(Path(__file__).parent / "junit-xml"))
40 elif isinstance(default, str):
52 elif isinstance(values, str):
64 name: str = field(default_factory=str)
88 def get_source_path(self, test: str) -> Path: argument
100 def get_run_path(self, test: str) -> Path: argument
112 def get_output_path(self, test: str, output_file: str) -> Path: argument
172 def post_test_hook(self, test: str, spec: TestSpec, backend: str) -> None: argument
181 def check_pre_skip(self, test: str, spec: TestSpec, resource: str, nproc: int) -> Optional[str]: argument
195 … def check_post_skip(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Optional[str]: argument
209 …def check_required_failure(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Tuple[s… argument
223 def check_allowed_stdout(self, test: str) -> bool: argument
250 def contains_any(base: str, substrings: List[str]) -> bool: argument
263 def startswith_any(base: str, prefixes: List[str]) -> bool: argument
276 def find_matching(line: str, open: str = '(', close: str = ')') -> Tuple[int, int]: argument
309 def parse_test_line(line: str, fallback_name: str = '') -> TestSpec: argument
369 args: List[str] = re.findall(args_pattern, line)
387 comment_str: str = ''
405 …comment_str: str = '#', comment_func: Optional[Callable[[str, str], Optional[str]]] = None) -> str: argument
419 test_lines: List[str] = test_csv.read_text().splitlines()
420 true_lines: List[str] = true_csv.read_text().splitlines()
458 diff_lines: List[str] = list()
481 def diff_cgns(test_cgns: Path, true_cgns: Path, cgns_tol: float) -> str:
494 run_args: List[str] = ['cgnsdiff', '-d', '-t', f'{cgns_tol}', str(test_cgns), str(true_cgns)]
504 def diff_ascii(test_file: Path, true_file: Path, backend: str) -> str: argument
514 tmp_backend: str = backend.replace('/', '-')
515 true_str: str = true_file.read_text().replace('{ceed_resource}', tmp_backend)
518 fromfile=str(test_file),
519 tofile=str(true_file)))
524 backend: str, test: str, index: int, verbose: bool) -> str: argument
585 def run_test(index: int, test: str, spec: TestSpec, backend: str, argument
603 run_args: List = [f'{suite_spec.get_run_path(test)}', *map(str, spec.args)]
616 skip_reason: Optional[str] = suite_spec.check_pre_skip(test, spec, backend, nproc)
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:')]
658 … skip_reason: Optional[str] = suite_spec.check_post_skip(test, spec, backend, test_case.stderr)
680 fromfile=str(ref_stdout),
754 test_case.args = ' '.join(str(arg) for arg in run_args)
768 def run_tests(test: str, ceed_backends: List[str], mode: RunMode, nproc: int, argument
769 …suite_spec: SuiteSpec, pool_size: int = 1, search: str = ".*", verbose: bool = False) -> TestSuite: argument
820 def write_junit_xml(test_suite: TestSuite, batch: str = '') -> None: argument