CMS 3D CMS Logo

Classes | Functions | Variables

addOnTests Namespace Reference

Classes

class  StandardTester
class  testit

Functions

def main

Variables

tuple scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )

Function Documentation

def addOnTests::main (   argv)

Definition at line 210 of file addOnTests.py.

00211                :
00212 
00213     import getopt
00214     
00215     try:
00216         opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
00217     except getopt.GetoptError, e:
00218         print "unknown option", str(e)
00219         sys.exit(2)
00220         
00221     np        = 4
00222     uploadDir = None
00223     runTests  = True
00224     testList  = None
00225     dump      = False
00226     for opt, arg in opts :
00227         if opt in ('-j', "--nproc" ):
00228             np=int(arg)
00229         if opt in ("--uploadDir", ):
00230             uploadDir = arg
00231         if opt in ('--noRun', ):
00232             runTests = False
00233         if opt in ('-d','--dump', ):
00234             dump = True
00235         if opt in ('-t','--tests', ):
00236             testList = arg.split(",")
00237 
00238     tester = StandardTester(np)
00239     if dump:
00240         tester.dumpTest()
00241     else:
00242         if runTests:
00243             tester.runTests(testList)
00244         if uploadDir:
00245             tester.upload(uploadDir)
00246     return
    

Variable Documentation

tuple addOnTests::scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )

Definition at line 10 of file addOnTests.py.