failures = [] successes = [] skipped = [] # CPPCHECK code validation if options.cppcheck_validation: for toolchain in toolchains: for target in targets: try: mcu = TARGET_MAP[target] # CMSIS and MBED libs analysis static_analysis_scan(mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, verbose=options.verbose, jobs=options.jobs) for lib_id in libraries: # Static check for library static_analysis_scan_lib(lib_id, mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, options=options.options, extra_verbose=options.extra_verbose_notify, verbose=options.verbose, jobs=options.jobs, clean=options.clean, macros=options.macros) pass except Exception, e: if options.verbose: import traceback traceback.print_exc(file=sys.stdout) sys.exit(1) print e else: # Build for toolchain in toolchains: for target in targets: tt_id = "%s::%s" % (toolchain, target) try: mcu = TARGET_MAP[target]
failures = [] successes = [] skipped = [] # CPPCHECK code validation if options.cppcheck_validation: for toolchain in toolchains: for target in targets: try: mcu = TARGET_MAP[target] # CMSIS and MBED libs analysis static_analysis_scan(mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, verbose=options.verbose, jobs=options.jobs) for lib_id in libraries: # Static check for library static_analysis_scan_lib(lib_id, mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, options=options.options, extra_verbose=options.extra_verbose_notify, verbose=options.verbose, jobs=options.jobs, clean=options.clean, macros=options.macros) pass except Exception, e: if options.verbose: import traceback traceback.print_exc(file=sys.stdout) sys.exit(1) print e else: # Build for toolchain in toolchains: for target in targets: tt_id = "%s::%s" % (toolchain, target) if toolchain not in TARGET_MAP[target].supported_toolchains: # Log this later