Lines Matching refs:options
218 def run(self, options):
224 if options.dryrun is True:
265 def log(self, logger, options):
284 if not options.quiet:
356 def run(self, logger, options):
372 pretest.run(options)
374 pretest.log(logger, options)
377 test.run(options)
381 test.log(logger, options)
384 posttest.run(options)
385 posttest.log(logger, options)
454 def run(self, logger, options):
469 pretest.run(options)
471 pretest.log(logger, options)
478 test.run(options)
482 test.log(logger, options)
485 posttest.run(options)
486 posttest.log(logger, options)
492 def __init__(self, options):
497 self.outputdir = os.path.join(options.outputdir, self.timestamp)
498 self.logger = self.setup_logging(options)
520 def addtest(self, pathname, options):
528 setattr(test, prop, getattr(options, prop))
533 def addtestgroup(self, dirname, filenames, options):
542 setattr(testgroup, prop, getattr(options, prop))
554 def read(self, logger, options):
564 if not len(config.read(options.runfile)):
565 fail("Coulnd't read config file %s" % options.runfile)
573 if 'tests' in config.options(section):
598 def write(self, options):
608 defaults = dict([(prop, getattr(options, prop)) for prop, _ in
620 with open(options.template, 'w') as f:
623 fail('Could not open \'%s\' for writing.' % options.template)
625 def complete_outputdirs(self, options):
655 def setup_logging(self, options):
665 if options.dryrun is True:
671 if options.cmd != 'wrconfig':
694 def run(self, options):
703 self.tests[test].run(self.logger, options)
705 self.testgroups[testgroup].run(self.logger, options)
766 def find_tests(testrun, options):
773 for p in sorted(options.pathnames):
776 if options.do_groups:
777 testrun.addtestgroup(dirname, filenames, options)
780 testrun.addtest(os.path.join(dirname, f), options)
782 testrun.addtest(p, options)
845 (options, pathnames) = parser.parse_args()
847 if not options.runfile and not options.template:
848 options.cmd = 'runtests'
850 if options.runfile and len(pathnames):
853 options.pathnames = [os.path.abspath(path) for path in pathnames]
855 return options
859 options = parse_args()
860 testrun = TestRun(options)
862 if options.cmd == 'runtests':
863 find_tests(testrun, options)
864 elif options.cmd == 'rdconfig':
865 testrun.read(testrun.logger, options)
866 elif options.cmd == 'wrconfig':
867 find_tests(testrun, options)
868 testrun.write(options)
873 testrun.complete_outputdirs(options)
874 testrun.run(options)