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

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

222 def main(argv) :
223 
224  import getopt
225 
226  try:
227  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
228  except getopt.GetoptError as e:
229  print("unknown option", str(e))
230  sys.exit(2)
231 
232  np = 4
233  uploadDir = None
234  runTests = True
235  testList = None
236  dump = False
237  for opt, arg in opts :
238  if opt in ('-j', "--nproc" ):
239  np=int(arg)
240  if opt in ("--uploadDir", ):
241  uploadDir = arg
242  if opt in ('--noRun', ):
243  runTests = False
244  if opt in ('-d','--dump', ):
245  dump = True
246  if opt in ('-t','--tests', ):
247  testList = arg.split(",")
248 
249  tester = StandardTester(np)
250  if dump:
251  tester.dumpTest()
252  else:
253  if runTests:
254  tester.runTests(testList)
255  if uploadDir:
256  tester.upload(uploadDir)
257  return
258 
def main(argv)
Definition: addOnTests.py:222
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
#define str(s)

Variable Documentation

addOnTests.scriptPath

Definition at line 12 of file addOnTests.py.