~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/test-run.pl

  • Committer: Monty Taylor
  • Date: 2008-08-02 06:01:27 UTC
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802060127-p0m02zfo9urpul5i
Remove test references to charset dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 
104
104
our $glob_basedir;
105
105
 
106
 
our $path_charsetsdir;
107
106
our $path_client_bindir;
108
 
our $path_share;
109
 
our $path_language;
110
107
our $path_timefile;
111
108
our $path_snapshot;
112
109
our $path_drizzletest_log;
636
633
  $path_client_bindir= mtr_path_exists("$glob_basedir/client",
637
634
                                       "$glob_basedir/bin");
638
635
 
639
 
  # Look for language files and charsetsdir, use same share
640
 
  $path_share=      mtr_path_exists("$glob_basedir/share/mysql",
641
 
                                    "$glob_basedir/drizzled/share",
642
 
                                    "$glob_basedir/share");
643
 
 
644
 
  $path_language=      mtr_path_exists("$path_share/english");
645
 
  $path_charsetsdir=   mtr_path_exists("$path_share/charsets");
646
 
 
647
 
 
648
636
  if (!$opt_extern)
649
637
  {
650
638
    $exe_drizzled=       mtr_exe_exists ("$glob_basedir/drizzled/drizzled",
1119
1107
  #
1120
1108
  # --datadir must exist, mysqld will chdir into it
1121
1109
  #
1122
 
  my $list= `$exe_drizzled --no-defaults --datadir=$tmpdir --language=$path_language --skip-grant-tables --verbose --help`;
 
1110
  my $list= `$exe_drizzled --no-defaults --datadir=$tmpdir --skip-grant-tables --verbose --help`;
1123
1111
 
1124
1112
  foreach my $line (split('\n', $list))
1125
1113
  {
1396
1384
  # Also command lines in .opt files may contain env vars
1397
1385
  # --------------------------------------------------------------------------
1398
1386
 
1399
 
  $ENV{'CHARSETSDIR'}=              $path_charsetsdir;
1400
1387
  $ENV{'UMASK'}=              "0660"; # The octal *string*
1401
1388
  $ENV{'UMASK_DIR'}=          "0770"; # The octal *string*
1402
1389
  
1502
1489
  my $cmdline_mysqlbinlog=
1503
1490
    mtr_native_path($exe_drizzlebinlog) .
1504
1491
      " --no-defaults --disable-force-if-open --debug-check";
1505
 
  if ( !$opt_extern && $mysql_version_id >= 50000 )
1506
 
  {
1507
 
    $cmdline_mysqlbinlog .=" --character-sets-dir=$path_charsetsdir";
1508
 
  }
1509
1492
 
1510
1493
  if ( $opt_debug )
1511
1494
  {
1520
1503
  my $cmdline_mysql=
1521
1504
    mtr_native_path($exe_drizzle) .
1522
1505
    " --no-defaults --debug-check --host=localhost  --user=root --password= " .
1523
 
    "--port=$master->[0]->{'port'} " .
1524
 
    "--character-sets-dir=$path_charsetsdir";
 
1506
    "--port=$master->[0]->{'port'} ";
1525
1507
 
1526
1508
  $ENV{'MYSQL'}= $cmdline_mysql;
1527
1509
 
2490
2472
  mtr_add_arg($args, "%s--no-defaults", $prefix);
2491
2473
 
2492
2474
  mtr_add_arg($args, "%s--basedir=%s", $prefix, $path_my_basedir);
2493
 
  mtr_add_arg($args, "%s--character-sets-dir=%s", $prefix, $path_charsetsdir);
2494
2475
 
2495
2476
  if ( $mysql_version_id >= 50036)
2496
2477
  {
2504
2485
  }
2505
2486
 
2506
2487
  mtr_add_arg($args, "%s--default-character-set=latin1", $prefix);
2507
 
  mtr_add_arg($args, "%s--language=%s", $prefix, $path_language);
2508
2488
  mtr_add_arg($args, "%s--tmpdir=$opt_tmpdir", $prefix);
2509
2489
 
2510
2490
  # Increase default connect_timeout to avoid intermittent
3089
3069
  mtr_add_arg($args, "--no-defaults");
3090
3070
  mtr_add_arg($args, "--silent");
3091
3071
  mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
3092
 
  mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
3093
3072
 
3094
3073
  mtr_add_arg($args, "--port=%d", $mysqld->{'port'});
3095
3074
  mtr_add_arg($args, "--database=test");
3168
3147
  mtr_add_arg($args, "--no-defaults");
3169
3148
  mtr_add_arg($args, "--silent");
3170
3149
  mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
3171
 
  mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
3172
3150
  mtr_add_arg($args, "--logdir=%s/log", $opt_vardir);
3173
3151
 
3174
3152
  # Log line number and time  for each line in .test file