def Execute(name): # 1. Setup some path variables. sampleDir = utils.GetSampleDir() curDir = os.getcwd() testDir = os.path.join(curDir, name) guardDir = os.path.join(testDir, "lean-guard") acceptDir = os.path.join(guardDir, "accept") dropDir = os.path.join(guardDir, "drop") executable = os.path.join(guardDir, "build/bin/lean-guard") # 2. Setup test envrionment. utils.LeanGuardSetup(testDir, guardDir) # 3. Execute the test for each image. images = os.listdir(sampleDir) for image in images: fullPath = os.path.join(sampleDir, image) utils.RunLeanGuardTest(executable, fullPath, acceptDir, dropDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(guardDir, name + "-lean-guard-") # 5. Display the analysis information. utils.DisplayAnalysisData(guardDir)
def Execute(name): # 1. Setup some path variables. curDir = os.getcwd() testDir = os.path.join(curDir, name) acceptDir = utils.GetLeanAcceptDir() throfdbgDir = os.path.join(testDir, "throfdbg-lean-guard") codeDir = os.path.join(throfdbgDir, "throfdbg") # 2. Setup test envrionment. utils.ThrofdbgSetup(testDir, throfdbgDir) # 3. Execute the test. utils.RunThrofdbgTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "and-throfdbg") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. sampleDir = utils.GetSampleDir() curDir = os.getcwd() testDir = os.path.join(curDir, name) throfdbgDir = os.path.join(testDir, "throfdbg-standalone") codeDir = os.path.join(throfdbgDir, "throfdbg") # 2. Setup test envrionment. utils.ThrofdbgSetup(testDir, throfdbgDir) # 3. Execute the test. utils.RunThrofdbgTest(codeDir, sampleDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-throfdbg-standalone") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. curDir = os.getcwd() testDir = os.path.join(curDir, name) acceptDir = utils.GetLeanAcceptDir() rdjpgcomDir = os.path.join(testDir, "rdjpgcom-6b-lean-guard") codeDir = os.path.join(rdjpgcomDir, "jpeg-6b") # 2. Setup test envrionment. utils.RdjpgcomSetup(testDir, rdjpgcomDir) # 3. Execute the test. utils.RunRdjpgcomTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-and-rdjpgcom-6b") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. sampleDir = utils.GetSampleDir() curDir = os.getcwd() testDir = os.path.join(curDir, name) rdjpgcomDir = os.path.join(testDir, "rdjpgcom-turbo-standalone") codeDir = os.path.join(rdjpgcomDir, "libjpeg-turbo-2.0.4") # 2. Setup test envrionment. utils.DjpegTurboSetup(testDir, rdjpgcomDir) # 3. Execute the test. utils.RunRdjpgcomTest(codeDir, sampleDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-rdjpgcom-turbo-standalone") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. sampleDir = utils.GetSampleDir() curDir = os.getcwd() testDir = os.path.join(curDir, name) djpegDir = os.path.join(testDir, "djpeg-moz-standalone") codeDir = os.path.join(djpegDir, "mozjpeg-3.3.1") # 2. Setup test envrionment. utils.DjpegMozSetup(testDir, djpegDir) # 3. Execute the test. utils.RunDjpegTest(codeDir, sampleDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-djpg-mozilla-standalone") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. curDir = os.getcwd() testDir = os.path.join(curDir, name) acceptDir = utils.GetLeanAcceptDir() djpegDir = os.path.join(testDir, "djpeg-turbo") codeDir = os.path.join(djpegDir, "libjpeg-turbo-2.0.4") # 2. Setup test envrionment. utils.DjpegTurboSetup(testDir, djpegDir) # 3. Execute the test. utils.RunDjpegTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-and-djpg-turbo") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. configFileName = name + ".cfg" curDir = os.getcwd() testDir = os.path.join(curDir, name) acceptDir = utils.GetLeanAcceptDir() djpegDir = os.path.join(testDir, "djpeg-6b-lean-guard") codeDir = os.path.join(djpegDir, "jpeg-6b") # 2. Setup test envrionment. utils.Djpeg6bSetup(testDir, djpegDir) # 3. Execute the test. utils.RunDjpegTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-and-djpg-6b") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. configFileName = name + ".cfg" curDir = os.getcwd() configDir = os.path.join(curDir, "configs") testDir = os.path.join(curDir, name) configFile = os.path.join(configDir, configFileName) acceptDir = utils.GetAcceptDir(configFile) rdjpgcomDir = os.path.join(testDir, "rdjpgcom-turbo") codeDir = os.path.join(rdjpgcomDir, "libjpeg-turbo-2.0.4") # 2. Setup test envrionment. utils.DjpegTurboSetup(testDir, rdjpgcomDir) # 3. Execute the test. utils.RunRdjpgcomTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-rdjpgcom-turbo-and-guard") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. configFileName = name + ".cfg" curDir = os.getcwd() configDir = os.path.join(curDir, "configs") testDir = os.path.join(curDir, name) configFile = os.path.join(configDir, configFileName) acceptDir = utils.GetAcceptDir(configFile) djpegDir = os.path.join(testDir, "djpeg-moz") codeDir = os.path.join(djpegDir, "mozjpeg-3.3.1") # 2. Setup test envrionment. utils.DjpegMozSetup(testDir, djpegDir) # 3. Execute the test. utils.RunDjpegTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-djpg-mozilla-and-guard") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)
def Execute(name): # 1. Setup some path variables. configFileName = name + ".cfg" curDir = os.getcwd() configDir = os.path.join(curDir, "configs") testDir = os.path.join(curDir, name) configFile = os.path.join(configDir, configFileName) acceptDir = utils.GetAcceptDir(configFile) throfdbgDir = os.path.join(testDir, "throfdbg-guard") codeDir = os.path.join(throfdbgDir, "throfdbg") # 2. Setup test envrionment. utils.ThrofdbgSetup(testDir, throfdbgDir) # 3. Execute the test. utils.RunThrofdbgTest(codeDir, acceptDir) # 4. Generate the analysis information. utils.GenerateAnalysisData(codeDir, name + "-throfdbg-guard") # 5. Display the analysis information. utils.DisplayAnalysisData(codeDir)