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

References createfilelist.int, edm.print(), and str.

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

Variable Documentation

addOnTests.scriptPath

Definition at line 11 of file addOnTests.py.