summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorkent@mysql.com <>2005-06-10 21:31:39 +0200
committerkent@mysql.com <>2005-06-10 21:31:39 +0200
commit00ddd2c7002d67d2ed75e181bca37d14605a0b58 (patch)
treecaaa744c7f063acf332eabdeeca3acd3c9722ee6 /mysql-test/mysql-test-run.pl
parenta822c1ffedb6f7590dbdb99623ecf87346c4e65c (diff)
parenta2073df2848f0c8a405aca2b5ba8712f37c77cc0 (diff)
downloadmariadb-git-00ddd2c7002d67d2ed75e181bca37d14605a0b58.tar.gz
Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-gca
into mysql.com:/Users/kent/mysql/bk/mysql-5.0-release
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl18
1 files changed, 15 insertions, 3 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 0394c7abc9e..5f321757492 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -204,7 +204,7 @@ our $opt_bench= 0;
our $opt_small_bench= 0;
our $opt_big_test= 0; # Send --big-test to mysqltest
-our $opt_extra_mysqld_opt; # FIXME not handled
+our @opt_extra_mysqld_opt;
our $opt_compress;
our $opt_current_test;
@@ -500,7 +500,7 @@ sub command_line_setup () {
'record' => \$opt_record,
# ???
- 'mysqld=s' => \$opt_extra_mysqld_opt,
+ 'mysqld=s' => \@opt_extra_mysqld_opt,
# Run test on running server
'extern' => \$opt_extern,
@@ -953,13 +953,25 @@ sub environment_setup () {
$ENV{'LC_COLLATE'}= "C";
$ENV{'USE_RUNNING_SERVER'}= $glob_use_running_server;
$ENV{'MYSQL_TEST_DIR'}= $glob_mysql_test_dir;
+ $ENV{'MYSQL_TEST_WINDIR'}= $glob_mysql_test_dir;
$ENV{'MASTER_MYSOCK'}= $master->[0]->{'path_mysock'};
+ $ENV{'MASTER_WINMYSOCK'}= $master->[0]->{'path_mysock'};
$ENV{'MASTER_MYSOCK1'}= $master->[1]->{'path_mysock'};
$ENV{'MASTER_MYPORT'}= $master->[0]->{'path_myport'};
$ENV{'MASTER_MYPORT1'}= $master->[1]->{'path_myport'};
$ENV{'SLAVE_MYPORT'}= $slave->[0]->{'path_myport'};
# $ENV{'MYSQL_TCP_PORT'}= '@MYSQL_TCP_PORT@'; # FIXME
$ENV{'MYSQL_TCP_PORT'}= 3306;
+
+ if ( $glob_cygwin_perl )
+ {
+ foreach my $key ('MYSQL_TEST_WINDIR','MASTER_MYSOCK')
+ {
+ $ENV{$key}= `cygpath -w $ENV{$key}`;
+ $ENV{$key} =~ s,\\,\\\\,g;
+ chomp($ENV{$key});
+ }
+ }
}
@@ -1850,7 +1862,7 @@ sub mysqld_arguments ($$$$$) {
}
}
- foreach my $arg ( @$extra_opt )
+ foreach my $arg ( @opt_extra_mysqld_opt, @$extra_opt )
{
mtr_add_arg($args, "%s%s", $prefix, $arg);
}