~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/test-run.pl

  • Committer: Monty Taylor
  • Date: 2008-09-13 20:24:20 UTC
  • mfrom: (383.1.35 drizzle)
  • Revision ID: monty@inaugust.com-20080913202420-lkj76ewbabl8ljvp
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
our $glob_basedir;
106
106
 
107
 
our $path_charsetsdir;
108
107
our $path_client_bindir;
109
 
our $path_share;
110
108
our $path_timefile;
111
109
our $path_snapshot;
112
110
our $path_drizzletest_log;
636
634
  $path_client_bindir= mtr_path_exists("$glob_basedir/client",
637
635
                                       "$glob_basedir/bin");
638
636
 
639
 
  # Look for 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_charsetsdir=   mtr_path_exists("$path_share/charsets");
645
 
 
646
 
 
647
 
 
648
637
  if (!$opt_extern)
649
638
  {
650
639
    $exe_drizzled=       mtr_exe_exists ("$glob_basedir/drizzled/drizzled",
1396
1385
  # Also command lines in .opt files may contain env vars
1397
1386
  # --------------------------------------------------------------------------
1398
1387
 
1399
 
  $ENV{'CHARSETSDIR'}=              $path_charsetsdir;
 
1388
  $ENV{'CHARSETSDIR'}=              "";
1400
1389
  $ENV{'UMASK'}=              "0660"; # The octal *string*
1401
1390
  $ENV{'UMASK_DIR'}=          "0770"; # The octal *string*
1402
1391
  
1503
1492
  my $cmdline_mysqlbinlog=
1504
1493
    mtr_native_path($exe_drizzlebinlog) .
1505
1494
      " --no-defaults --disable-force-if-open --debug-check";
1506
 
  if ( !$opt_extern && $mysql_version_id >= 50000 )
1507
 
  {
1508
 
    $cmdline_mysqlbinlog .=" --character-sets-dir=$path_charsetsdir";
1509
 
  }
1510
1495
 
1511
1496
  if ( $opt_debug )
1512
1497
  {
1521
1506
  my $cmdline_mysql=
1522
1507
    mtr_native_path($exe_drizzle) .
1523
1508
    " --no-defaults --debug-check --host=localhost  --user=root --password= " .
1524
 
    "--port=$master->[0]->{'port'} " .
1525
 
    "--character-sets-dir=$path_charsetsdir";
 
1509
    "--port=$master->[0]->{'port'} ";
1526
1510
 
1527
1511
  $ENV{'MYSQL'}= $cmdline_mysql;
1528
1512
 
2491
2475
  mtr_add_arg($args, "%s--no-defaults", $prefix);
2492
2476
 
2493
2477
  mtr_add_arg($args, "%s--basedir=%s", $prefix, $path_my_basedir);
2494
 
  mtr_add_arg($args, "%s--character-sets-dir=%s", $prefix, $path_charsetsdir);
2495
2478
 
2496
2479
  if ( $mysql_version_id >= 50036)
2497
2480
  {
2504
2487
    mtr_add_arg($args, "%s--log-bin-trust-function-creators", $prefix);
2505
2488
  }
2506
2489
 
2507
 
  mtr_add_arg($args, "%s--default-character-set=latin1", $prefix);
 
2490
  mtr_add_arg($args, "%s--default-character-set=utf8", $prefix);
2508
2491
  mtr_add_arg($args, "%s--tmpdir=$opt_tmpdir", $prefix);
2509
2492
 
2510
2493
  # Increase default connect_timeout to avoid intermittent
3089
3072
  mtr_add_arg($args, "--no-defaults");
3090
3073
  mtr_add_arg($args, "--silent");
3091
3074
  mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
3092
 
  mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
3093
3075
 
3094
3076
  mtr_add_arg($args, "--port=%d", $mysqld->{'port'});
3095
3077
  mtr_add_arg($args, "--database=test");
3168
3150
  mtr_add_arg($args, "--no-defaults");
3169
3151
  mtr_add_arg($args, "--silent");
3170
3152
  mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
3171
 
  mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
3172
3153
  mtr_add_arg($args, "--logdir=%s/log", $opt_vardir);
3173
3154
 
3174
3155
  # Log line number and time  for each line in .test file