CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 235 of file addOnTests.py.

236 def main(argv) :
237 
238  import getopt
239 
240  try:
241  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
242  except getopt.GetoptError, e:
243  print "unknown option", str(e)
244  sys.exit(2)
245 
246  np = 4
247  uploadDir = None
248  runTests = True
249  testList = None
250  dump = False
251  for opt, arg in opts :
252  if opt in ('-j', "--nproc" ):
253  np=int(arg)
254  if opt in ("--uploadDir", ):
255  uploadDir = arg
256  if opt in ('--noRun', ):
257  runTests = False
258  if opt in ('-d','--dump', ):
259  dump = True
260  if opt in ('-t','--tests', ):
261  testList = arg.split(",")
262 
263  tester = StandardTester(np)
264  if dump:
265  tester.dumpTest()
266  else:
267  if runTests:
268  tester.runTests(testList)
269  if uploadDir:
270  tester.upload(uploadDir)
271  return

Variable Documentation

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

Definition at line 10 of file addOnTests.py.