00223 :
00224
00225 import getopt
00226
00227 try:
00228 opts, args = getopt.getopt(argv, "dj:t:", ["nproc=", 'uploadDir=', 'tests=','noRun','dump'])
00229 except getopt.GetoptError, e:
00230 print "unknown option", str(e)
00231 sys.exit(2)
00232
00233 np = 4
00234 uploadDir = None
00235 runTests = True
00236 testList = None
00237 dump = False
00238 for opt, arg in opts :
00239 if opt in ('-j', "--nproc" ):
00240 np=int(arg)
00241 if opt in ("--uploadDir", ):
00242 uploadDir = arg
00243 if opt in ('--noRun', ):
00244 runTests = False
00245 if opt in ('-d','--dump', ):
00246 dump = True
00247 if opt in ('-t','--tests', ):
00248 testList = arg.split(",")
00249
00250 tester = StandardTester(np)
00251 if dump:
00252 tester.dumpTest()
00253 else:
00254 if runTests:
00255 tester.runTests(testList)
00256 if uploadDir:
00257 tester.upload(uploadDir)
00258 return