Lines Matching full:test

11     parser = argparse.ArgumentParser('Test runner with JUnit and TAP output')
28 …parser.add_argument('-np', '--pool-size', type=int, default=1, help='Number of test cases to run i…
35 parser.add_argument('test', help='Test executable', nargs='?')
45 tofile='test created file',
57 def get_source_path(self, test: str) -> Path:
58 """Compute path to test source file
61 test (str): Name of test
66 if test.startswith('navierstokes'):
69 return (Path('tests') / test).with_suffix('.c')
72 def get_run_path(self, test: str) -> Path:
73 """Compute path to built test executable file
76 test (str): Name of test
79 Path: Path to test executable
81 return Path('build') / test
83 def get_output_path(self, test: str, output_file: str) -> Path:
87 test (str): Name of test
95 def check_pre_skip(self, test: str, spec: TestSpec, resource: str, nproc: int) -> Optional[str]:
96 … """Check if a test case should be skipped prior to running, returning the reason for skipping
99 test (str): Name of test
100 spec (TestSpec): Test case specification
102 nproc (int): Number of MPI processes to use when running test case
105 Optional[str]: Skip reason, or `None` if test case should not be skipped
109 return 'CPU only test with GPU backend'
111 return 'PyTorch only test without USE_TORCH=1'
113 … def check_post_skip(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Optional[str]:
114 """Check if a test case should be allowed to fail, based on its stderr output
117 test (str): Name of test
118 spec (TestSpec): Test case specification
120 stderr (str): Standard error output from test case execution
128 return f'CGNS not installed in PETSc for {test}, {spec.name}'
130 return f'Tet mesh generator not installed for {test}, {spec.name}'
133 …def check_required_failure(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Tuple[s…
134 """Check whether a test case is expected to fail and if it failed expectedly
137 test (str): Name of test
138 spec (TestSpec): Test case specification
140 stderr (str): Standard error output from test case execution
147 def check_allowed_stdout(self, test: str) -> bool:
148 """Check whether a test is allowed to print console output
151 test (str): Name of test
154 bool: True if the test is allowed to print console output
163 if 'smartsim' in args.test:
207 args.test,