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