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 222 of file addOnTests.py.

00223                :
00224 
00225     import getopt
00226     
00227     try:
00228         opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
00229     except getopt.GetoptError, e:
00230         print "unknown option", str(e)
00231         sys.exit(2)
00232         
00233     np        = 4
00234     uploadDir = None
00235     runTests  = True
00236     testList  = None
00237     dump      = False
00238     for opt, arg in opts :
00239         if opt in ('-j', "--nproc" ):
00240             np=int(arg)
00241         if opt in ("--uploadDir", ):
00242             uploadDir = arg
00243         if opt in ('--noRun', ):
00244             runTests = False
00245         if opt in ('-d','--dump', ):
00246             dump = True
00247         if opt in ('-t','--tests', ):
00248             testList = arg.split(",")
00249 
00250     tester = StandardTester(np)
00251     if dump:
00252         tester.dumpTest()
00253     else:
00254         if runTests:
00255             tester.runTests(testList)
00256         if uploadDir:
00257             tester.upload(uploadDir)
00258     return
    

Variable Documentation

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

Definition at line 10 of file addOnTests.py.