Lines Matching refs:f

35             raise ValueError(f"{type} must be an Enum")
319 field_names = [f.name for f in test_fields]
326 raise ParseError(f"Mismatched parentheses in TESTCASE: {line}")
371 print(f"warning, unknown TESTCASE option for test '{known['name']}': {k}={v}")
397 raise RuntimeError(f'Unrecognized extension for file: {source_file}')
401 …if line.startswith(f'{comment_str}TESTARGS')] or [TestSpec(source_file.stem, args=['{ceed_resource…
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'
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}'
451 return f'No CSV columns found in test output {test_csv}'
453 return f'No CSV columns found in test source {true_csv}'
455 return ''.join(difflib.unified_diff([f'{test_lines[0]}\n'], [f'{true_lines[0]}\n'],
473 diff_lines.append(f'column: {key}, expected: {true_val}, got: {test_val}')
476 … diff_lines.append(f'column: {key}, expected: {true_line[key]}, got: {test_line[key]}')
494 run_args: List[str] = ['cgnsdiff', '-d', '-t', f'{cgns_tol}', str(test_cgns), str(true_cgns)]
529 …output_str += f' ok {index} - {spec.name}, {backend} # SKIP {test_case.skipped[0]["message"]}\n'
531 … output_str += f' not ok {index} - {spec.name}, {backend} ({test_case.elapsed_sec} s)\n'
533 output_str += f' ok {index} - {spec.name}, {backend} ({test_case.elapsed_sec} s)\n'
535 output_str += f' ---\n'
537 output_str += f' only: {",".join(spec.only)}\n'
538 output_str += f' args: {test_case.args}\n'
540 output_str += f' csv_ztol: {spec.csv_ztol}\n'
542 output_str += f' csv_rtol: {spec.csv_rtol}\n'
544 output_str += f' cgns_tol: {spec.cgns_tol}\n'
546 output_str += f' {k}: {v}\n'
548 output_str += f' error: {test_case.errors[0]["message"]}\n'
550 output_str += f' failures:\n'
552 output_str += f' -\n'
553 output_str += f' message: {failure["message"]}\n'
556 output_str += f' output: |\n {out}\n'
557 output_str += f' ...\n'
561 output_str += f'Test: {test} {spec.name}\n'
562 output_str += f' $ {test_case.args}\n'
603 run_args: List = [f'{suite_spec.get_run_path(test)}', *map(str, spec.args)]
611 run_args[run_args.index('{nproc}')] = f'{nproc}'
613 run_args = ['mpiexec', '-n', f'{nproc}', *run_args]
618 test_case: TestCase = TestCase(f'{test}, "{spec.name}", n{nproc}, {backend}',
633 test_case = TestCase(f'{test}, "{spec.name}", n{nproc}, {backend}',
667 test_case.status = f'fails with required: {required_message}'
669 test_case.add_failure_info(f'required failure missing: {required_message}')
676 test_case.add_error_info(f'returncode = {proc.returncode}')
694 test_case.add_failure_info('csv', output=f'{ref_csv} not found')
696 test_case.add_failure_info('csv', output=f'{out_file} not found')
710 test_case.add_failure_info(f'csv: {save_path}', output=diff)
721 test_case.add_failure_info('cgns', output=f'{ref_cgn} not found')
723 test_case.add_failure_info('cgns', output=f'{out_file} not found')
730 test_case.add_failure_info(f'cgns: {save_path}', output=diff)
741 test_case.add_failure_info('ascii', output=f'{ref_file} not found')
743 test_case.add_failure_info('ascii', output=f'{out_file} not found')
749 test_case.add_failure_info(f'ascii: {save_path}', output=diff)
791 print(f'1..{len(test_specs)}')
809 print(f'# Subtest: {test_case.category}')
810 print(f' 1..{len(ceed_backends)}')
815 print(f'{"" if subtest_ok else "not "}ok {i} - {test_case.category}')
827 output_file = Path('build') / (f'{test_suite.name}{batch}.junit')