00257 :
00258
00259 import getopt
00260
00261 try:
00262 opts, args = getopt.getopt(argv, "j:", ["nproc=", 'uploadDir=', 'noRun'])
00263 except getopt.GetoptError, e:
00264 print "unknown option", str(e)
00265 sys.exit(2)
00266
00267
00268
00269 np=4
00270
00271 uploadDir = None
00272 runTests = True
00273 for opt, arg in opts :
00274 if opt in ('-j', "--nproc" ):
00275 np=int(arg)
00276 if opt in ("--uploadDir", ):
00277 uploadDir = arg
00278 if opt in ('--noRun', ):
00279 runTests = False
00280
00281 tester = StandardTester(np)
00282 if runTests:
00283 tester.runTests()
00284 if uploadDir:
00285 tester.upload(uploadDir)
00286