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

223 def main(argv) :
224 
225  import getopt
226 
227  try:
228  opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
229  except getopt.GetoptError, e:
230  print "unknown option", str(e)
231  sys.exit(2)
232 
233  np = 4
234  uploadDir = None
235  runTests = True
236  testList = None
237  dump = False
238  for opt, arg in opts :
239  if opt in ('-j', "--nproc" ):
240  np=int(arg)
241  if opt in ("--uploadDir", ):
242  uploadDir = arg
243  if opt in ('--noRun', ):
244  runTests = False
245  if opt in ('-d','--dump', ):
246  dump = True
247  if opt in ('-t','--tests', ):
248  testList = arg.split(",")
249 
250  tester = StandardTester(np)
251  if dump:
252  tester.dumpTest()
253  else:
254  if runTests:
255  tester.runTests(testList)
256  if uploadDir:
257  tester.upload(uploadDir)
258  return

Variable Documentation

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

Definition at line 10 of file addOnTests.py.