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…
33 parser.add_argument('test', help='Test executable', nargs='?')
43 def get_source_path(self, test: str) -> Path:
44 """Compute path to test source file
47 test (str): Name of test
52 prefix, rest = test.split('-', 1)
67 elif test.startswith('ex'):
68 if test.endswith('-f'):
69 return (Path('examples') / 'ceed' / test).with_suffix('.f90')
71 return (Path('examples') / 'ceed' / test).with_suffix('.c')
72 elif test.endswith('-f'):
73 return (Path('tests') / test).with_suffix('.f90')
75 return (Path('tests') / test).with_suffix('.c')
78 def get_run_path(self, test: str) -> Path:
79 """Compute path to built test executable file
82 test (str): Name of test
85 Path: Path to test executable
87 return Path('build') / test
89 def get_output_path(self, test: str, output_file: str) -> Path:
93 test (str): Name of test
101 def check_pre_skip(self, test: str, spec: TestSpec, resource: str, nproc: int) -> Optional[str]:
102 … """Check if a test case should be skipped prior to running, returning the reason for skipping
105 test (str): Name of test
106 spec (TestSpec): Test case specification
108 nproc (int): Number of MPI processes to use when running test case
111 Optional[str]: Skip reason, or `None` if test case should not be skipped
113 if test.startswith('t318') and contains_any(resource, ['/gpu/cuda/ref']):
115 if test.startswith('t506') and contains_any(resource, ['/gpu/cuda/shared']):
119 return 'CPU only test with GPU backend'
121 … def check_post_skip(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Optional[str]:
122 """Check if a test case should be allowed to fail, based on its stderr output
125 test (str): Name of test
126 spec (TestSpec): Test case specification
128 stderr (str): Standard error output from test case execution
139 elif 'Test not implemented in single precision' in stderr:
140 return f'Test not implemented in single precision'
144 return f'Tet mesh generator not installed for {test}, {spec.name}'
147 …def check_required_failure(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Tuple[s…
148 """Check whether a test case is expected to fail and if it failed expectedly
151 test (str): Name of test
152 spec (TestSpec): Test case specification
154 stderr (str): Standard error output from test case execution
159 test_id: str = test[:4]
186 def check_allowed_stdout(self, test: str) -> bool:
187 """Check whether a test is allowed to print console output
190 test (str): Name of test
193 bool: True if the test is allowed to print console output
195 return test[:4] in ['t003']
202 args.test,