CMS 3D CMS Logo

Classes | Functions | Variables
addOnTests Namespace Reference

Classes

class  StandardTester
 
class  testit
 

Functions

def main (argv)
 

Variables

 scriptPath
 

Function Documentation

◆ main()

def addOnTests.main (   argv)

Definition at line 220 of file addOnTests.py.

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

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

Variable Documentation

◆ scriptPath

addOnTests.scriptPath

Definition at line 12 of file addOnTests.py.