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

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

Variable Documentation

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

Definition at line 10 of file addOnTests.py.