-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSATestBuild.patch
57 lines (49 loc) · 1.96 KB
/
SATestBuild.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Index: SATestBuild.py
===================================================================
--- SATestBuild.py
+++ SATestBuild.py
@@ -176,14 +176,12 @@ Checkers = ",".join([
"cplusplus.NewDeleteLeaks",
"core",
"cplusplus",
- "deadcode",
- "security",
"unix",
"osx",
"nullability"
])
-Verbose = 0
+Verbose = 1
###############################################################################
# Test harness logic.
@@ -274,14 +272,16 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
SBCwd = os.path.join(Dir, PatchedSourceDirName)
SBOptions = "--use-analyzer '%s' " % Clang
- SBOptions += "-plist-html -o '%s' " % SBOutputDir
+ SBOptions += "-plist -o '%s' " % SBOutputDir
SBOptions += "-enable-checker " + AllCheckers + " "
- SBOptions += "--keep-empty "
+ SBOptions += "-disable-checker deadcode "
+ SBOptions += "--keep-empty --keep-going "
AnalyzerConfig = [
("stable-report-filename", "true"),
("serialize-stats", "true"),
+ ("crosscheck-with-z3", "false")
]
SBOptions += "-analyzer-config '%s' " % (
",".join("%s=%s" % (key, value) for (key, value) in AnalyzerConfig))
@@ -589,7 +588,7 @@ def runCmpResults(Dir, Strictness=0):
PatchedSourceDirPath = os.path.join(Dir, PatchedSourceDirName)
Opts, Args = CmpRuns.generate_option_parser().parse_args(
- ["--rootA", "", "--rootB", PatchedSourceDirPath])
+ ["--rootA", "", "--rootB", PatchedSourceDirPath, "--show-stats"])
# Scan the results, delete empty plist files.
NumDiffs, ReportsInRef, ReportsInNew = \
CmpRuns.dumpScanBuildResultsDiff(RefDir, NewDir, Opts,
@@ -680,7 +679,6 @@ def testProject(ID, ProjectBuildMode, IsReferenceBuild=False, Strictness=0):
checkBuild(SBOutputDir)
if IsReferenceBuild:
- cleanupReferenceResults(SBOutputDir)
TestsPassed = True
else:
TestsPassed = runCmpResults(Dir, Strictness)