CMS 3D CMS Logo

Classes | Functions | Variables
addOnTests Namespace Reference

Classes

class  StandardTester
 
class  testit
 

Functions

def main (argv)
 

Variables

 scriptPath
 

Function Documentation

def addOnTests.main (   argv)

Definition at line 249 of file addOnTests.py.

References createfilelist.int, and harvestTrackValidationPlots.str.

249 def main(argv) :
250 
251  import getopt
252 
253  try:
254  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
255  except getopt.GetoptError as e:
256  print "unknown option", str(e)
257  sys.exit(2)
258 
259  np = 4
260  uploadDir = None
261  runTests = True
262  testList = None
263  dump = False
264  for opt, arg in opts :
265  if opt in ('-j', "--nproc" ):
266  np=int(arg)
267  if opt in ("--uploadDir", ):
268  uploadDir = arg
269  if opt in ('--noRun', ):
270  runTests = False
271  if opt in ('-d','--dump', ):
272  dump = True
273  if opt in ('-t','--tests', ):
274  testList = arg.split(",")
275 
276  tester = StandardTester(np)
277  if dump:
278  tester.dumpTest()
279  else:
280  if runTests:
281  tester.runTests(testList)
282  if uploadDir:
283  tester.upload(uploadDir)
284  return
285 
def main(argv)
Definition: addOnTests.py:249

Variable Documentation

addOnTests.scriptPath

Definition at line 10 of file addOnTests.py.