Added support to run Goanna static tool analysis when building tests (not mbed-SDK)

pull/207/head
Przemek Wirkus 2014-03-10 17:14:26 +00:00
parent 2a236aca01
commit 03bb264af9
1 changed files with 8 additions and 1 deletions

View File

@ -293,6 +293,12 @@ if __name__ == '__main__':
metavar="FILE",
help='Points to file with MUTs specification (overwrites settings.py and private_settings.py)')
parser.add_option('-g', '--goanna-for-tests',
dest='goanna_for_tests',
metavar=False,
action="store_true",
help='Run Goanna static analyse tool for tests')
parser.add_option('-s', '--suppress-summary',
dest='suppress_summary',
default=False,
@ -360,8 +366,9 @@ if __name__ == '__main__':
'test_id': test_id,
}
build_project_options = ["analyze"] if opts.goanna_for_tests else None
path = build_project(test.source_dir, join(build_dir, test_id),
T, toolchain, test.dependencies,
T, toolchain, test.dependencies, options=build_project_options,
clean=clean, verbose=opts.verbose)
test_result_cache = join(dirname(path), "test_result.json")