CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 238 of file addOnTests.py.

239 def main(argv) :
240 
241  import getopt
242 
243  try:
244  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
245  except getopt.GetoptError, e:
246  print "unknown option", str(e)
247  sys.exit(2)
248 
249  np = 4
250  uploadDir = None
251  runTests = True
252  testList = None
253  dump = False
254  for opt, arg in opts :
255  if opt in ('-j', "--nproc" ):
256  np=int(arg)
257  if opt in ("--uploadDir", ):
258  uploadDir = arg
259  if opt in ('--noRun', ):
260  runTests = False
261  if opt in ('-d','--dump', ):
262  dump = True
263  if opt in ('-t','--tests', ):
264  testList = arg.split(",")
265 
266  tester = StandardTester(np)
267  if dump:
268  tester.dumpTest()
269  else:
270  if runTests:
271  tester.runTests(testList)
272  if uploadDir:
273  tester.upload(uploadDir)
274  return

Variable Documentation

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

Definition at line 10 of file addOnTests.py.