Commit 0a2f2fbc authored by Oxez's avatar Oxez
Browse files

added app option

parent fc6e15ab
Loading
Loading
Loading
Loading
+24 −8
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ output as Truth
import sys
import os

if not os.environ['ISISROOT']:
    print("The $ISISROOT variable is not set")
    return

if sys.argv[1].contains("_unit_"):
    unitTestExecutable = sys.argv[1]

    unitTestName = unitTestExecutable.split("_test_")[1] + ".truth"
@@ -17,3 +22,14 @@ del unitTestPath[-1]
    unitTestPath = "/".join(unitTestPath)

    os.system(unitTestExecutable + ">&" + unitTestPath + "/" unitTestName)

else:
    builddir = os.environ['ISISROOT']
    apptest = sys.arg[1]
    makefilePath = ""
    with open(builddir + "/objects/CTestTestfile.cmake") as testFile
        for line in testFile:
            if apptest in line:
                makefilePath = line.split("-P")[1][3:]
                break
    print(makefilePath)