Home | History | Annotate | Download | only in tests

Lines Matching defs:Test

40 def _make_subtest_name(test, case):
41 return '.'.join([test, case])
70 def _run_test(self, test, out_dir, test_filters):
71 if not test_filters.filter(test.name):
74 config = test.check_unsupported()
76 message = 'test unsupported for {}'.format(config)
77 return [Skipped(test.name, message)]
79 results = test.run(out_dir, test_filters)
80 config, bug = test.check_broken()
84 # We need to check each individual test case for pass/fail and change
92 for test in tests:
93 test_results.extend(self._run_test(test, out_dir,
200 class Test(object):
229 class AwkTest(Test):
240 msg = '{} missing test script: {}'.format(test_name, script)
243 # Check that all of our test cases are valid.
307 """Describes the status of a test.
309 Each test directory can contain a "test_config.py" file that describes
310 the configurations a test is not expected to pass for. Previously this
314 Application.mk was used to state that a test was only to be run for a
320 test should always be skipped regardless of configuration. Any change that
321 would put a test in that situation should be reverted immediately. These
322 also didn't make it clear if the test was actually broken (and thus should
340 A broken test is a known failing test that should be fixed.
342 Any test with a non-empty broken section requires a "bug" entry
346 These tests will still be built and run. If the test succeeds, it
357 An unsupported test is a test that do not make sense to run for a
455 class PythonBuildTest(Test):
456 """A test that is implemented by test.py.
458 A test.py test has a test.py file in its root directory. This module
463 abi: ABI to test as a string.
478 print('Running build test: {}'.format(self.name))
481 module = imp.load_source('test', 'test.py')
491 class ShellBuildTest(Test):
501 print('Running build test: {}'.format(self.name))
510 class NdkBuildTest(Test):
520 print('Running build test: {}'.format(self.name))
531 if os.path.isfile(os.path.join(test_dir, 'test.py')):
573 # The libc++ tests contain a DATA file that lists test names and their
578 raise RuntimeError('Could not find any test executables.')
583 class DeviceTest(Test):
624 print('Running device test: {}'.format(self.name))
652 message = 'test unsupported for {}'.format(config)