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. 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. 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) 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)