def RunTestCoverage(toolpath): """Run the tests and check that we get 100% coverage""" glob_list = control.GetEntryModules(False) all_set = set([ os.path.splitext(os.path.basename(item))[0] for item in glob_list if '_testing' not in item ]) extra_args = '' if toolpath: for path in toolpath: extra_args += ' --toolpath %s' % path test_util.run_test_coverage( 'tools/binman/binman', None, ['*test*', '*main.py', 'tools/patman/*', 'tools/dtoc/*'], args.build_dir, all_set, extra_args or None)
def RunTestCoverage(): """Run the tests and check that we get 100% coverage""" test_util.run_test_coverage('tools/dtoc/test_fdt.py', None, ['tools/patman/*.py', '*test_fdt.py'], options.build_dir)
def RunTestCoverage(): """Run the tests and check that we get 100% coverage""" sys.argv = [sys.argv[0]] test_util.run_test_coverage('tools/dtoc/dtoc', '/main.py', ['tools/patman/*.py', '*/fdt*', '*test*'], args.build_dir)