• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/tools/harness/

Lines Matching refs:options

52         usage='Usage: %prog [options] SOURCEDIR RESULTDIR',
55 g = optparse.OptionGroup(p, 'Basic options')
73 g = optparse.OptionGroup(p, 'Debugging options')
82 options, args = p.parse_args()
84 debug.current_level = options.debuglevel
86 if options.listall:
92 options.sourcedir, options.resultsdir = args
95 if options.buildbase is None:
96 options.buildbase = os.path.join(options.sourcedir, 'builds')
99 if not os.path.isdir(os.path.join(options.sourcedir, 'hake')):
100 p.error('invalid source directory %s' % options.sourcedir)
101 if not (os.path.isdir(options.resultsdir)
102 and os.access(options.resultsdir, os.W_OK)):
103 p.error('invalid results directory %s' % options.resultsdir)
105 if options.xml and not have_junit_xml:
114 if options.existingbuild:
115 if options.buildspecs:
118 options.builds = [builds.existingbuild(options, options.existingbuild)]
119 options.buildbase = options.existingbuild
121 options.builds = []
122 if not options.buildspecs:
123 options.buildspecs = ['test']
124 for spec in options.buildspecs:
128 options.builds.extend(
129 [b for b in matches if b not in options.builds])
130 options.builds = [b(options) for b in options.builds]
133 if options.machinespecs is None:
135 options.machines = []
136 for spec in options.machinespecs:
140 options.machines.extend(
141 [m for m in matches if m not in options.machines])
142 options.machines = [MachineFactory.createMachineByName(m, options) for m in options.machines]
145 if options.testspecs:
146 options.tests = []
147 for spec in options.testspecs:
151 options.tests.extend(
152 [t for t in matches if t not in options.tests])
155 options.tests = [t(options) for t in options.tests]
158 debug.verbose('Builds: ' + ', '.join([b.name for b in options.builds]))
159 debug.verbose('Machines: ' + ', '.join([m.getName() for m in options.machines]))
160 debug.verbose('Tests: ' + ', '.join([t.name for t in options.tests]))
162 return options
166 def __init__(self, options):
168 self._options = options
370 options = parse_args()
371 scalebench = Scalebench(options)