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

References createfilelist.int, and harvestTrackValidationPlots.str.

267 def main(argv) :
268 
269  import getopt
270 
271  try:
272  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
273  except getopt.GetoptError as e:
274  print "unknown option", str(e)
275  sys.exit(2)
276 
277  np = 4
278  uploadDir = None
279  runTests = True
280  testList = None
281  dump = False
282  for opt, arg in opts :
283  if opt in ('-j', "--nproc" ):
284  np=int(arg)
285  if opt in ("--uploadDir", ):
286  uploadDir = arg
287  if opt in ('--noRun', ):
288  runTests = False
289  if opt in ('-d','--dump', ):
290  dump = True
291  if opt in ('-t','--tests', ):
292  testList = arg.split(",")
293 
294  tester = StandardTester(np)
295  if dump:
296  tester.dumpTest()
297  else:
298  if runTests:
299  tester.runTests(testList)
300  if uploadDir:
301  tester.upload(uploadDir)
302  return
303 
def main(argv)
Definition: addOnTests.py:267

Variable Documentation

addOnTests.scriptPath

Definition at line 10 of file addOnTests.py.