Lines Matching +full:discard +full:- +full:paths

12    - ProjectMap file
13 - Historical Performance Data
14 - Project Dir1
15 - ReferenceOutput
16 - Project Dir2
17 - ReferenceOutput
22 - Copy over a copy of the Repository Directory. (TODO: Prefer to ensure that
24 - Build all projects, until error. Produce logs to report errors.
25 - Compare results.
33 The compiler for scan-build and scan-build are in the PATH.
57 #------------------------------------------------------------------------------
59 #------------------------------------------------------------------------------
73 return int(capture(['sysctl', '-n', 'hw.ncpu']))
81 def which(command, paths = None): argument
82 """which(command, [paths]) - Look up the given command in the paths string
85 if paths is None:
86 paths = os.environ.get('PATH','')
93 if not paths:
94 paths = os.defpath
103 # Search the paths...
104 for path in paths.split(os.pathsep):
128 sys.exit(-1)
140 #------------------------------------------------------------------------------
142 #------------------------------------------------------------------------------
148 sys.exit(-1)
161 # This is a file containing commands for scan-build.
167 # Summary file - contains the summary of the failures. Ex: This info can be be
174 # The scan-build result directory.
194 # Currently, consists of all the non-experimental checkers, plus a few alpha
200 #------------------------------------------------------------------------------
202 #------------------------------------------------------------------------------
204 # Run pre-processing script if any.
231 sys.exit(-1)
243 exit(-1)
264 check_call("patch -p1 < '%s'" % (PatchfilePath),
271 sys.exit(-1)
273 # Build the project with scan-build by reading in the commands and
274 # prefixing them with the scan-build options.
279 sys.exit(-1)
285 # Run scan-build from within the patched source directory.
288 SBOptions = "--use-analyzer '%s' " % Clang
289 SBOptions += "-plist-html -o '%s' " % SBOutputDir
290 SBOptions += "-enable-checker " + AllCheckers + " "
291 SBOptions += "--keep-empty "
292 # Always use ccc-analyze to ensure that we can locate the failures
294 SBOptions += "--override-compiler "
297 SBPrefix = "scan-build " + SBOptions + " "
302 # If using 'make', auto imply a -jX argument
306 "-j" not in Command:
307 Command += " -j%d" % Jobs
315 print "Error: scan-build failed. See ",PBuildLogFile.name,\
339 Cmd = "xcrun --sdk " + SDKName + " --show-sdk-path"
349 CmdPrefix = Clang + " -cc1 "
355 CmdPrefix += "-isysroot " + SDKPath + " "
357 CmdPrefix += "-analyze -analyzer-output=plist -w "
358 CmdPrefix += "-analyzer-checker=" + Checkers +" -fcxx-exceptions -fblocks "
361 CmdPrefix += "-std=c++11 "
379 OutputOption = "-o '%s.plist' " % os.path.join(PlistPath, FileName)
423 RmCommand = "rm -r '%s'" % SBOutputDir
445 # Make the absolute paths relative in the reference results.
455 Paths = [SourceFile[len(PathPrefix)+1:]\
458 Data['files'] = Paths
465 ((time.time()-TBegin), BuildLogPath)
479 # Given the scan-build output directory, checks if the build failed
489 print "Number of bug reports (non-empty plist files) produced: %d" %\
512 SummaryLog.write("\n-- Error #%d -----------\n" % (Idx,));
522 sys.exit(-1)
524 # Auxiliary object to discard stdout.
529 # Compare the warnings produced by scan-build.
531 # 0 - success if there are no crashes or analyzer failure.
532 # 1 - success if there are no difference in the number of reported bugs.
533 # 2 - success if all the bug reports are identical.
554 # There might be more then one folder underneath - one per each scan-build
575 # Discard everything coming out of stdout (CmpRun produces a lot of them).
587 sys.exit(-1)
590 sys.exit(-1)
592 print "Diagnostic comparison complete (time: %.2f)." % (time.time()-TBegin)
625 CommitCommand = "svn commit -m \"[analyzer tests] Remove " \
628 CommitCommand = "svn commit -m \"[analyzer tests] Add new " \
635 sys.exit(-1)
638 print " \n\n--- Building project %s" % (ID,)
661 (ID, (time.time()-TBegin))
700 Parser.add_argument('--strictness', dest='strictness', type=int, default=0,
704 Parser.add_argument('-r', dest='regenerate', action='store_true', default=False,
706 Parser.add_argument('-rs', dest='update_reference', action='store_true',