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

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

209 def main(argv) :
210 
211  import getopt
212 
213  try:
214  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
215  except getopt.GetoptError as e:
216  print("unknown option", str(e))
217  sys.exit(2)
218 
219  np = 4
220  uploadDir = None
221  runTests = True
222  testList = None
223  dump = False
224  for opt, arg in opts :
225  if opt in ('-j', "--nproc" ):
226  np=int(arg)
227  if opt in ("--uploadDir", ):
228  uploadDir = arg
229  if opt in ('--noRun', ):
230  runTests = False
231  if opt in ('-d','--dump', ):
232  dump = True
233  if opt in ('-t','--tests', ):
234  testList = arg.split(",")
235 
236  tester = StandardTester(np)
237  if dump:
238  tester.dumpTest()
239  else:
240  if runTests:
241  tester.runTests(testList)
242  if uploadDir:
243  tester.upload(uploadDir)
244  return
245 
def main(argv)
Definition: addOnTests.py:209
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.