summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2008-06-13 15:48:17 +0200
committerJoerg Bruehe <joerg@mysql.com>2008-06-13 15:48:17 +0200
commitf1267c96b4cfaec9c046a6cf729d6ed2993996a8 (patch)
treebca8b3707eb61d518a6984c99d0c897a5b0914e8 /mysql-test/mysql-test-run.pl
parent22ba98938484dd8733183408ab8514df76996d75 (diff)
parenta80c3dab482e5cc72c01610c46fd254965043e95 (diff)
downloadmariadb-git-f1267c96b4cfaec9c046a6cf729d6ed2993996a8.tar.gz
Merging the bug fixes for 34995 and 35543 (both of 5.0) up to 5.1,
also the 5.0.62 build tag.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl52
1 files changed, 37 insertions, 15 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 37b11c97990..fa41d25a034 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -112,6 +112,7 @@ our $glob_basedir;
our $path_charsetsdir;
our $path_client_bindir;
+our $path_client_libdir;
our $path_share;
our $path_language;
our $path_timefile;
@@ -657,6 +658,8 @@ sub command_line_setup () {
'vardir=s' => \$opt_vardir,
'benchdir=s' => \$glob_mysql_bench_dir,
'mem' => \$opt_mem,
+ 'client-bindir=s' => \$path_client_bindir,
+ 'client-libdir=s' => \$path_client_libdir,
# Misc
'report-features' => \$opt_report_features,
@@ -783,12 +786,20 @@ sub command_line_setup () {
#
# Look for the client binaries directory
- $path_client_bindir= mtr_path_exists("$glob_basedir/client_release",
- "$glob_basedir/client_debug",
- vs_config_dirs('client', ''),
- "$glob_basedir/client",
- "$glob_basedir/bin");
-
+ if ($path_client_bindir)
+ {
+ # --client-bindir=path set on command line, check that the path exists
+ $path_client_bindir= mtr_path_exists($path_client_bindir);
+ }
+ else
+ {
+ $path_client_bindir= mtr_path_exists("$glob_basedir/client_release",
+ "$glob_basedir/client_debug",
+ vs_config_dirs('client', ''),
+ "$glob_basedir/client",
+ "$glob_basedir/bin");
+ }
+
# Look for language files and charsetsdir, use same share
$path_share= mtr_path_exists("$glob_basedir/share/mysql",
"$glob_basedir/sql/share",
@@ -1837,19 +1848,25 @@ sub environment_setup () {
my @ld_library_paths;
- # --------------------------------------------------------------------------
- # Setup LD_LIBRARY_PATH so the libraries from this distro/clone
- # are used in favor of the system installed ones
- # --------------------------------------------------------------------------
- if ( $source_dist )
+ if ($path_client_libdir)
{
- push(@ld_library_paths, "$glob_basedir/libmysql/.libs/",
- "$glob_basedir/libmysql_r/.libs/",
- "$glob_basedir/zlib.libs/");
+ # Use the --client-libdir passed on commandline
+ push(@ld_library_paths, "$path_client_libdir");
}
else
{
- push(@ld_library_paths, "$glob_basedir/lib");
+ # Setup LD_LIBRARY_PATH so the libraries from this distro/clone
+ # are used in favor of the system installed ones
+ if ( $source_dist )
+ {
+ push(@ld_library_paths, "$glob_basedir/libmysql/.libs/",
+ "$glob_basedir/libmysql_r/.libs/",
+ "$glob_basedir/zlib.libs/");
+ }
+ else
+ {
+ push(@ld_library_paths, "$glob_basedir/lib");
+ }
}
# --------------------------------------------------------------------------
@@ -2091,6 +2108,9 @@ sub environment_setup () {
{
$cmdline_mysqlbinlog .=" --character-sets-dir=$path_charsetsdir";
}
+ # Always use the given tmpdir for the LOAD files created
+ # by mysqlbinlog
+ $cmdline_mysqlbinlog .=" --local-load=$opt_tmpdir";
if ( $opt_debug )
{
@@ -5357,6 +5377,8 @@ Misc options
warnings | log-warnings Pass --log-warnings to mysqld
sleep=SECONDS Passed to mysqltest, will be used as fixed sleep time
+ client-bindir=PATH Path to the directory where client binaries are located
+ client-libdir=PATH Path to the directory where client libraries are located
Deprecated options
with-openssl Deprecated option for ssl