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

257 def main(argv) :
258 
259  import getopt
260 
261  try:
262  opts, args = getopt.getopt(argv, "j", ["nproc=", 'uploadDir=', 'noRun'])
263  except getopt.GetoptError, e:
264  print "unknown option", str(e)
265  sys.exit(2)
266 
267 # check command line parameter
268 
269  np=4 # default: four threads
270 
271  uploadDir = None
272  runTests = True
273  for opt, arg in opts :
274  if opt in ('-j', "--nproc" ):
275  np=arg
276  if opt in ("--uploadDir", ):
277  uploadDir = arg
278  if opt in ('--noRun', ):
279  runTests = False
280 
281  tester = StandardTester(np)
282  if runTests:
283  tester.runTests()
284  if uploadDir:
285  tester.upload(uploadDir)
286 

Variable Documentation

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

Definition at line 10 of file addOnTests.py.