예제 #1
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()
예제 #2
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)