~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_run_options.py

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

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
61
54
    return variables
62
55
 
63
56
# Create the CLI option parser
189
182
  , help = "sort the testcases so that they are executed optimally for the given mode [%default]"
190
183
  )
191
184
 
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
 
  )
 
185
 
200
186
 
201
187
parser.add_option_group(test_control_group)
202
188
# end test_control_group
305
291
  , help = "Turn off the use of --secure-file-priv=vardir for started servers"
306
292
  )
307
293
 
 
294
 
308
295
parser.add_option_group(environment_control_group)
309
296
# end environment control group
310
297
 
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
 
 
327
298
analysis_control_group = optparse.OptionGroup(parser, 
328
299
                            "Options for defining the tools we use for code analysis (valgrind, gprof, gcov, etc)")
329
300
 
355
326
  , help="Start the drizzled server(s) in gdb"
356
327
  )
357
328
 
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
 
 
366
329
parser.add_option_group(debugger_control_group)
367
330
 
368
331