diff options
| author | unknown <kent@c-634072d5.010-2112-6f72651.cust.bredbandsbolaget.se> | 2006-11-11 14:46:06 +0100 |
|---|---|---|
| committer | unknown <kent@c-634072d5.010-2112-6f72651.cust.bredbandsbolaget.se> | 2006-11-11 14:46:06 +0100 |
| commit | 82190b9ddce99ebffb18183af0357a026f6f0cb9 (patch) | |
| tree | b67008a0c5f425c923a2cb9a9c00a48cc06e4b47 | |
| parent | d4be3654abc9a940d5c93194ad14422e84ea03ef (diff) | |
| parent | 31481f02fdb85f67bff245e74714438d4fa1bf95 (diff) | |
| download | mariadb-git-82190b9ddce99ebffb18183af0357a026f6f0cb9.tar.gz | |
Merge mysql.com:/Users/kent/mysql/bk/mysql-5.0
into mysql.com:/Users/kent/mysql/bk/mysql-5.1
mysql-test/mysql-test-run.pl:
Auto merged
| -rwxr-xr-x | mysql-test/mysql-test-run.pl | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 563c47e9081..f941b07e91b 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -643,7 +643,7 @@ sub command_line_setup () { $glob_hostname= mtr_short_hostname(); - # 'basedir' is always above "mysql-test" directory ... + # Find the absolute path to the test directory $glob_mysql_test_dir= cwd(); if ( $glob_cygwin_perl ) { @@ -651,12 +651,20 @@ sub command_line_setup () { $glob_mysql_test_dir= `cygpath -m "$glob_mysql_test_dir"`; chomp($glob_mysql_test_dir); } - # ... direct parent for "tar.gz" installations, ... - $glob_basedir= dirname($glob_mysql_test_dir); - # ... or one more level up, for RPM installations. - if ( ! -d "$glob_basedir/bin" ) + + # In most cases, the base directory we find everything relative to, + # is the parent directory of the "mysql-test" directory. For source + # distributions, TAR binary distributions and some other packages. + $glob_basedir= dirname($glob_mysql_test_dir); + + # In the RPM case, binaries and libraries are installed in the + # default system locations, instead of having our own private base + # directory. And we install "/usr/share/mysql-test". Moving up one + # more directory relative to "mysql-test" gives us a usable base + # directory for RPM installs. + if ( ! $opt_source_dist and ! -d "$glob_basedir/bin" ) { - $glob_basedir= dirname($glob_basedir); + $glob_basedir= dirname($glob_basedir); } # Expect mysql-bench to be located adjacent to the source tree, by default |
