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

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

Variable Documentation

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

Definition at line 10 of file addOnTests.py.