~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqltest.cc

  • Committer: Monty Taylor
  • Date: 2008-07-11 15:49:04 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 134.
  • Revision ID: monty@inaugust.com-20080711154904-nrtkef3bo1jvzrds
A crapton more warning cleanups (I turned on more warnings) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
4864
4864
{
4865
4865
  {"help", '?', "Display this help and exit.", 0, 0, 0, GET_NO_ARG, NO_ARG,
4866
4866
   0, 0, 0, 0, 0, 0},
4867
 
  {"basedir", 'b', "Basedir for tests.", (uchar**) &opt_basedir,
4868
 
   (uchar**) &opt_basedir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
4867
  {"basedir", 'b', "Basedir for tests.", (char**) &opt_basedir,
 
4868
   (char**) &opt_basedir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4869
4869
  {"character-sets-dir", OPT_CHARSETS_DIR,
4870
 
   "Directory where character sets are.", (uchar**) &opt_charsets_dir,
4871
 
   (uchar**) &opt_charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
4870
   "Directory where character sets are.", (char**) &opt_charsets_dir,
 
4871
   (char**) &opt_charsets_dir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4872
4872
  {"compress", 'C', "Use the compressed server/client protocol.",
4873
 
   (uchar**) &opt_compress, (uchar**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
 
4873
   (char**) &opt_compress, (char**) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
4874
4874
   0, 0, 0},
4875
 
  {"database", 'D', "Database to use.", (uchar**) &opt_db, (uchar**) &opt_db, 0,
 
4875
  {"database", 'D', "Database to use.", (char**) &opt_db, (char**) &opt_db, 0,
4876
4876
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4877
4877
#ifdef DBUG_OFF
4878
4878
  {"debug", '#', "This is a non-debug version. Catch this and exit",
4882
4882
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
4883
4883
#endif
4884
4884
  {"debug-check", OPT_DEBUG_CHECK, "Check memory and open file usage at exit.",
4885
 
   (uchar**) &debug_check_flag, (uchar**) &debug_check_flag, 0,
 
4885
   (char**) &debug_check_flag, (char**) &debug_check_flag, 0,
4886
4886
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4887
4887
  {"debug-info", OPT_DEBUG_INFO, "Print some debug info at exit.",
4888
 
   (uchar**) &debug_info_flag, (uchar**) &debug_info_flag,
 
4888
   (char**) &debug_info_flag, (char**) &debug_info_flag,
4889
4889
   0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4890
 
  {"host", 'h', "Connect to host.", (uchar**) &opt_host, (uchar**) &opt_host, 0,
 
4890
  {"host", 'h', "Connect to host.", (char**) &opt_host, (char**) &opt_host, 0,
4891
4891
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4892
 
  {"include", 'i', "Include SQL before each test case.", (uchar**) &opt_include,
4893
 
   (uchar**) &opt_include, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4894
 
  {"logdir", OPT_LOG_DIR, "Directory for log files", (uchar**) &opt_logdir,
4895
 
   (uchar**) &opt_logdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
4892
  {"include", 'i', "Include SQL before each test case.", (char**) &opt_include,
 
4893
   (char**) &opt_include, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
4894
  {"logdir", OPT_LOG_DIR, "Directory for log files", (char**) &opt_logdir,
 
4895
   (char**) &opt_logdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4896
4896
  {"mark-progress", OPT_MARK_PROGRESS,
4897
4897
   "Write linenumber and elapsed time to <testname>.progress ",
4898
 
   (uchar**) &opt_mark_progress, (uchar**) &opt_mark_progress, 0,
 
4898
   (char**) &opt_mark_progress, (char**) &opt_mark_progress, 0,
4899
4899
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4900
4900
  {"max-connect-retries", OPT_MAX_CONNECT_RETRIES,
4901
4901
   "Max number of connection attempts when connecting to server",
4902
 
   (uchar**) &opt_max_connect_retries, (uchar**) &opt_max_connect_retries, 0,
 
4902
   (char**) &opt_max_connect_retries, (char**) &opt_max_connect_retries, 0,
4903
4903
   GET_INT, REQUIRED_ARG, 500, 1, 10000, 0, 0, 0},
4904
4904
  {"password", 'p', "Password to use when connecting to server.",
4905
4905
   0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
4909
4909
   "/etc/services, "
4910
4910
#endif
4911
4911
   "built-in default (" STRINGIFY_ARG(MYSQL_PORT) ").",
4912
 
   (uchar**) &opt_port,
4913
 
   (uchar**) &opt_port, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4914
 
  {"quiet", 's', "Suppress all normal output.", (uchar**) &silent,
4915
 
   (uchar**) &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
 
4912
   (char**) &opt_port,
 
4913
   (char**) &opt_port, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
 
4914
  {"quiet", 's', "Suppress all normal output.", (char**) &silent,
 
4915
   (char**) &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4916
4916
  {"record", 'r', "Record output of test_file into result file.",
4917
4917
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
4918
4918
  {"result-file", 'R', "Read/Store result from/in this file.",
4919
 
   (uchar**) &result_file_name, (uchar**) &result_file_name, 0,
 
4919
   (char**) &result_file_name, (char**) &result_file_name, 0,
4920
4920
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4921
4921
  {"server-arg", 'A', "Send option value to embedded server as a parameter.",
4922
4922
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4923
4923
  {"server-file", 'F', "Read embedded server arguments from file.",
4924
4924
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4925
4925
  {"silent", 's', "Suppress all normal output. Synonym for --quiet.",
4926
 
   (uchar**) &silent, (uchar**) &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
 
4926
   (char**) &silent, (char**) &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4927
4927
  {"sleep", 'T', "Sleep always this many seconds on sleep commands.",
4928
 
   (uchar**) &opt_sleep, (uchar**) &opt_sleep, 0, GET_INT, REQUIRED_ARG, -1, -1, 0,
 
4928
   (char**) &opt_sleep, (char**) &opt_sleep, 0, GET_INT, REQUIRED_ARG, -1, -1, 0,
4929
4929
   0, 0, 0},
4930
4930
  {"tail-lines", OPT_TAIL_LINES,
4931
4931
   "Number of lines of the resul to include in a failure report",
4932
 
   (uchar**) &opt_tail_lines, (uchar**) &opt_tail_lines, 0,
 
4932
   (char**) &opt_tail_lines, (char**) &opt_tail_lines, 0,
4933
4933
   GET_INT, REQUIRED_ARG, 0, 0, 10000, 0, 0, 0},
4934
4934
  {"test-file", 'x', "Read test from/in this file (default stdin).",
4935
4935
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4937
4937
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4938
4938
  {"tmpdir", 't', "Temporary directory where sockets are put.",
4939
4939
   0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4940
 
  {"user", 'u', "User for login.", (uchar**) &opt_user, (uchar**) &opt_user, 0,
 
4940
  {"user", 'u', "User for login.", (char**) &opt_user, (char**) &opt_user, 0,
4941
4941
   GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4942
 
  {"verbose", 'v', "Write more.", (uchar**) &verbose, (uchar**) &verbose, 0,
 
4942
  {"verbose", 'v', "Write more.", (char**) &verbose, (char**) &verbose, 0,
4943
4943
   GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
4944
4944
  {"version", 'V', "Output version information and exit.",
4945
4945
   0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},