CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
addOnTests Namespace Reference

Classes

class  StandardTester
 
class  testit
 

Functions

def main
 

Variables

tuple scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )
 

Function Documentation

def addOnTests.main (   argv)

Definition at line 220 of file addOnTests.py.

References print(), and str.

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

Variable Documentation

tuple addOnTests.scriptPath = os.path.dirname( os.path.abspath(sys.argv[0]) )

Definition at line 12 of file addOnTests.py.