示例#1
0
drt_options = ParseDrtOptions(usage, feature_list, cmakeOptionWrapper)
drt_options.initialize_options()
(options, args) = drt_options.parse_args()

# convert options to dictionary
config = options.__dict__

logging.basicConfig(
    level=logging.DEBUG, format="%(asctime)s %(levelname)s %(message)s", filename="/tmp/drt.log", filemode="w"
)

if config["update"]:
    update_tests()

li = []
List = TestsList(config)
List.constructList(feature_list, ignoredDirectories, supportedFileExtensions)
if len(args) == 0:
    li = List.createList()
else:
    for path in args:
        if os.path.isdir(path):
            for l in List.createList(path):
                li.append(l)
        else:
            path = List.changePathIfNeeded(path)
            li.append(path)

run = RunTests(config, li)
run.startDrt()
示例#2
0
    testsList = []
    for fname in dirList:
        if os.path.isdir(path + "/" + fname) == True:
            if fname not in dirOut:
                for li in createList(path + "/" + fname):
                    testsList.append(li)
        else:
            if fname.find(".html") != -1 and fname.find("-disabled") == -1:
                testsList.append(path + "/" + fname)
    return testsList


li = []
if len(tests) == 0:
    List = TestsList(conf)
    List.constructList(layoutPath)
    li = List.getList()
else:
    for t in tests:
        if os.path.isdir(t):
            for l in createList(t):
                li.append(l)
        else:
            li.append(t)

#print li
#print len(li)

if destResult != "":
    run = RunTests(conf, li, drtPath, layoutPath, platform, destResult)
else:
示例#3
0
文件: drt.py 项目: kas1e/Odyssey
drt_options.initialize_options()
(options, args) = drt_options.parse_args()

# convert options to dictionary
config = options.__dict__

logging.basicConfig(level=logging.DEBUG,
                    format='%(asctime)s %(levelname)s %(message)s',
                    filename='/tmp/drt.log',
                    filemode='w')

if config['update']:
    update_tests()

li = []
List = TestsList(config)
List.constructList(feature_list, ignoredDirectories, supportedFileExtensions)
if len(args) == 0:
    li = List.createList()
else:
    for path in args:
        if os.path.isdir(path):
            for l in List.createList(path):
                li.append(l)
        else:
            path = List.changePathIfNeeded(path)
            li.append(path)

run = RunTests(config, li)
run.startDrt()
示例#4
0
    dirOut = [".svn", "resources"]
    testsList = []
    for fname in dirList :
        if os.path.isdir(path + "/" + fname) == True :
            if fname not in dirOut :
                for li in createList(path + "/" + fname) :
                    testsList.append(li)
        else :
            if fname.find(".html") != -1 and fname.find("-disabled") == -1 :
                testsList.append(path + "/" + fname)
    return testsList

li = []
if len(tests) == 0 :
    List = TestsList(conf)
    List.constructList(layoutPath)
    li = List.getList()
else :
    for t in tests :
        if os.path.isdir(t) :
            for l in createList(t) :
                li.append(l)
        else :
            li.append(t)

#print li
#print len(li) 

if destResult != "" :
    run = RunTests(conf, li, drtPath, layoutPath, platform, destResult)
else :