main.py revision 13540
113540Sandrea.mondelli@ucf.edu#!/usr/bin/env python2.7 212882Sspwilson2@wisc.edu''' 312882Sspwilson2@wisc.eduThe main source for testlib. Ties together the default test runners and 412882Sspwilson2@wisc.eduloaders. 512882Sspwilson2@wisc.edu 612882Sspwilson2@wisc.eduDiscovers and runs all tests from a given root directory. 712882Sspwilson2@wisc.edu''' 812882Sspwilson2@wisc.edufrom __future__ import print_function 912882Sspwilson2@wisc.edu 1012882Sspwilson2@wisc.eduimport sys 1112882Sspwilson2@wisc.eduimport os 1212882Sspwilson2@wisc.edu 1312882Sspwilson2@wisc.edubase_dir = os.path.dirname(os.path.abspath(__name__)) 1412882Sspwilson2@wisc.eduext_path = os.path.join(base_dir, os.pardir, 'ext') 1512882Sspwilson2@wisc.edu 1612882Sspwilson2@wisc.edusys.path.insert(0, base_dir) 1712882Sspwilson2@wisc.edusys.path.insert(0, ext_path) 1812882Sspwilson2@wisc.edu 1912882Sspwilson2@wisc.eduimport testlib.main as testlib 2012882Sspwilson2@wisc.eduimport testlib.config as config 2112882Sspwilson2@wisc.eduimport testlib.helper as helper 2212882Sspwilson2@wisc.edu 2312882Sspwilson2@wisc.educonfig.basedir = helper.absdirpath(__file__) 2412882Sspwilson2@wisc.edutestlib() 25