~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_run_options.py

merge 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
    if variables['manualgdb']:
 
55
        variables['gdb']=True
54
56
    return variables
55
57
 
56
58
# Create the CLI option parser
291
293
  , help = "Turn off the use of --secure-file-priv=vardir for started servers"
292
294
  )
293
295
 
294
 
 
295
296
parser.add_option_group(environment_control_group)
296
297
# end environment control group
297
298
 
 
299
option_passing_group = optparse.OptionGroup(parser,
 
300
                          "Options to pass options on to the server")
 
301
 
 
302
option_passing_group.add_option(
 
303
    "--drizzled"
 
304
  , dest="drizzledoptions"
 
305
  , type='string'
 
306
  , action='append' 
 
307
  , default = []
 
308
  , help = "Pass additional options to the server.  Will be passed to all servers for all tests (mostly for --start-and-exit)"
 
309
  )
 
310
 
 
311
parser.add_option_group(option_passing_group)
 
312
# end option passing group
 
313
 
 
314
 
298
315
analysis_control_group = optparse.OptionGroup(parser, 
299
316
                            "Options for defining the tools we use for code analysis (valgrind, gprof, gcov, etc)")
300
317
 
326
343
  , help="Start the drizzled server(s) in gdb"
327
344
  )
328
345
 
 
346
debugger_control_group.add_option(
 
347
    "--manual-gdb"
 
348
  , dest="manualgdb"
 
349
  , action='store_true'
 
350
  , default=False
 
351
  , help="Allows you to start the drizzled server(s) in gdb manually (in another window, etc)"
 
352
  )
 
353
 
329
354
parser.add_option_group(debugger_control_group)
330
355
 
331
356