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