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

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

Variable Documentation

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

Definition at line 10 of file addOnTests.py.