Lines Matching full:test
17 '''This script will run one specific test.'''
47 '''This function is called before a test is executed (setup).
50 state: Test suite state collection, instance of TestState.
54 will launch the target test binary on the device and attach an
60 test could not be killed.
62 assert state.test
71 # query our test case for the remote target app it needs
74 target_name = state.test.get_bundle_target()
79 target_name = state.test.bundle_target[state.bundle_type]
84 # test case doesn't require a remote process to debug
87 # find the pid of our remote test process
99 '''This function is called after a test is executed (cleanup).
102 state: Test suite state collection, instance of TestState.
107 assert state.test
111 target_name = state.test.get_bundle_target()
116 target_name = state.test.bundle_target[state.bundle_type]
129 '''Execute a single test suite.
132 state: test suite state collection, instance of TestState.
135 True: if the test case ran successfully and passed.
136 False: if the test case failed or suffered an error.
143 assert state.test
145 test_failures = state.test.run(state.lldb, state.pid, state.lldb_module)
149 for test, err in test_failures:
150 log.error('test %s:%s failed: %r' % (state.name, test, err))
161 test session if a test becomes un-responsive.
172 '''This is a callback function that will fire if a test takes longer
202 '''Execute a test suite.
209 state.test.setup(state.android)
216 log.info('Test passed')
219 state.test.post_run()
220 state.test.teardown(state.android)
224 '''Inspect a test case module and return the test case class.
227 module: A loaded test case module.
231 log.debug("loading test suites from %r", module)
235 log.info("Found test class %r", name)
243 ''' Get the directory that contains a test with a given name.
246 A string that is the directory containing the test.
249 TestSuiteException: If a test with this name does not exist.
259 'unable to find test: {0}'.format(test_name))
263 '''Test runner entry point.'''
318 # load a test case module
323 # inspect the test module and locate our test case class
326 # if our test inherits from TestBaseRemote, check we have a valid device
331 # create an instance of our test case
340 # instantiate a test target bundle
343 # execute the test case
357 test=test_inst,
385 log.critical('Internal test suite error', exc_info=1)
386 print('Internal test suite error', file=sys.stderr)
391 log.warn("test ignored")