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

References createfilelist.int, and harvestTrackValidationPlots.str.

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

Variable Documentation

addOnTests.scriptPath

Definition at line 10 of file addOnTests.py.