~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_run_options.py

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-02-21 16:33:37 UTC
  • mfrom: (2187 drizzle-build)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110221163337-cq8dq6u3ga9suxt7
Merged with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    variables = {}
52
52
    variables = vars(args)
53
53
    variables['test_cases']= test_cases
 
54
    # This code should become a function once
 
55
    # enough thought has been given to it
 
56
    if variables['manualgdb']:
 
57
        variables['gdb']=True
 
58
    if variables['repeat'] <= 0:
 
59
        print "Setting --repeat=1.  You chose a silly value that I will ignore :P"
 
60
        variables['repeat'] = 1
54
61
    return variables
55
62
 
56
63
# Create the CLI option parser
182
189
  , help = "sort the testcases so that they are executed optimally for the given mode [%default]"
183
190
  )
184
191
 
185
 
 
 
192
test_control_group.add_option(
 
193
    "--repeat"
 
194
  , dest="repeat"
 
195
  , type='int'
 
196
  , action="store"
 
197
  , default=1
 
198
  , help = "Run each test case the specified number of times.  For a given sequence, the first test will be run n times, then the second, etc [%default]"
 
199
  )
186
200
 
187
201
parser.add_option_group(test_control_group)
188
202
# end test_control_group
291
305
  , help = "Turn off the use of --secure-file-priv=vardir for started servers"
292
306
  )
293
307
 
294
 
 
295
308
parser.add_option_group(environment_control_group)
296
309
# end environment control group
297
310
 
 
311
option_passing_group = optparse.OptionGroup(parser,
 
312
                          "Options to pass options on to the server")
 
313
 
 
314
option_passing_group.add_option(
 
315
    "--drizzled"
 
316
  , dest="drizzledoptions"
 
317
  , type='string'
 
318
  , action='append' 
 
319
  , default = []
 
320
  , help = "Pass additional options to the server.  Will be passed to all servers for all tests (mostly for --start-and-exit)"
 
321
  )
 
322
 
 
323
parser.add_option_group(option_passing_group)
 
324
# end option passing group
 
325
 
 
326
 
298
327
analysis_control_group = optparse.OptionGroup(parser, 
299
328
                            "Options for defining the tools we use for code analysis (valgrind, gprof, gcov, etc)")
300
329
 
326
355
  , help="Start the drizzled server(s) in gdb"
327
356
  )
328
357
 
 
358
debugger_control_group.add_option(
 
359
    "--manual-gdb"
 
360
  , dest="manualgdb"
 
361
  , action='store_true'
 
362
  , default=False
 
363
  , help="Allows you to start the drizzled server(s) in gdb manually (in another window, etc)"
 
364
  )
 
365
 
329
366
parser.add_option_group(debugger_control_group)
330
367
 
331
368