Lines Matching refs:Dir
182 def runCleanupScript(Dir, PBuildLogFile):
183 ScriptPath = os.path.join(Dir, CleanupScript)
188 check_call("chmod +x %s" % ScriptPath, cwd = Dir,
192 check_call(ScriptPath, cwd = Dir, stderr=PBuildLogFile,
202 def runScanBuild(Dir, SBOutputDir, PBuildLogFile):
203 BuildScriptPath = os.path.join(Dir, BuildScript)
227 check_call(SBCommand, cwd = Dir, stderr=PBuildLogFile,
250 def runAnalyzePreprocessed(Dir, SBOutputDir, Mode):
251 if os.path.exists(os.path.join(Dir, BuildScript)):
262 PlistPath = os.path.join(Dir, SBOutputDir, "date")
266 for FullFileName in glob.glob(Dir + "/*"):
279 Command = CmdPrefix + OutputOption + os.path.join(Dir, FileName)
284 check_call(Command, cwd = Dir, stderr=LogFile,
299 def buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild):
327 runCleanupScript(Dir, PBuildLogFile)
330 runScanBuild(Dir, SBOutputDir, PBuildLogFile)
332 runAnalyzePreprocessed(Dir, SBOutputDir, ProjectBuildMode)
335 runCleanupScript(Dir, PBuildLogFile)
406 def runCmpResults(Dir):
409 RefDir = os.path.join(Dir, SBOutputDirReferencePrefix + SBOutputDirName)
410 NewDir = os.path.join(Dir, SBOutputDirName)
416 # Log folders are also located in the results dir, so ignore them.
488 def testProject(ID, ProjectBuildMode, IsReferenceBuild=False, Dir=None):
493 if Dir is None :
494 Dir = getProjectDir(ID)
496 print " Build directory: %s." % (Dir,)
500 SBOutputDir = os.path.join(Dir, RelOutputDir)
502 buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild)
507 runCmpResults(Dir)