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