From 8ce37febef0180abfa9a07186d92d48ce9f5328c Mon Sep 17 00:00:00 2001 From: "msvensson@shellback.(none)" <> Date: Fri, 8 Sep 2006 15:55:11 +0200 Subject: [PATCH] Fix problem running mysql-test-run.pl when running in a clone not compiled with ndb support --- mysql-test/mysql-test-run.pl | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 90f7c258c91..82753c1bd2e 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1333,7 +1333,8 @@ sub environment_setup () { # -------------------------------------------------------------------------- if ( $opt_source_dist ) { - $extra_ld_library_paths= "$glob_basedir/libmysql/.libs/"; + $extra_ld_library_paths= "$glob_basedir/libmysql/.libs/" . + ":$glob_basedir/libmysql_r/.libs/"; } else { @@ -1346,26 +1347,20 @@ sub environment_setup () { $extra_ld_library_paths .= ":" . ($lib_udf_example ? dirname($lib_udf_example) : ""); + # -------------------------------------------------------------------------- + # Add the path where libndbclient can be found + # -------------------------------------------------------------------------- + if ( $opt_ndbcluster_supported ) + { + $extra_ld_library_paths .= ":$glob_basedir/storage/ndb/src/.libs"; + } + $ENV{'LD_LIBRARY_PATH'}= "$extra_ld_library_paths" . ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : ""); $ENV{'DYLD_LIBRARY_PATH'}= "$extra_ld_library_paths" . ($ENV{'DYLD_LIBRARY_PATH'} ? ":$ENV{'DYLD_LIBRARY_PATH'}" : ""); - # -------------------------------------------------------------------------- - # Add the path where libndbclient can be found - # -------------------------------------------------------------------------- - $ENV{'LD_LIBRARY_PATH'}= - (mtr_path_exists("$glob_basedir/storage/ndb/src/.libs") ? "$glob_basedir/storage/ndb/src/.libs" : "") . - ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : ""); - - # -------------------------------------------------------------------------- - # Add the path where libmysqlclient can be found - # -------------------------------------------------------------------------- - $ENV{'LD_LIBRARY_PATH'}= - (mtr_path_exists("$glob_basedir/libmysql_r/.libs") ? "$glob_basedir/libmysql_r/.libs" : "") . - ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : ""); - # -------------------------------------------------------------------------- # Also command lines in .opt files may contain env vars