|
|
80384c |
diff -up mysql-5.5.31/mysql-test/lib/My/ConfigFactory.pm.p22 mysql-5.5.31/mysql-test/lib/My/ConfigFactory.pm
|
|
|
80384c |
--- mysql-5.5.31/mysql-test/lib/My/ConfigFactory.pm.p22 2013-04-24 20:15:14.085623163 +0200
|
|
|
80384c |
+++ mysql-5.5.31/mysql-test/lib/My/ConfigFactory.pm 2013-04-24 20:15:37.456630939 +0200
|
|
|
80384c |
@@ -36,7 +36,7 @@ my @pre_rules=
|
|
|
80384c |
);
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
-my @share_locations= ("share/mysql", "sql/share", "share");
|
|
|
80384c |
+my @share_locations= ("@INSTALL_MYSQLSHAREDIR@", "sql/share", "share");
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
sub get_basedir {
|
|
|
80384c |
diff -up mysql-5.5.31/mysql-test/mysql-test-run.pl.p22 mysql-5.5.31/mysql-test/mysql-test-run.pl
|
|
|
80384c |
--- mysql-5.5.31/mysql-test/mysql-test-run.pl.p22 2013-03-25 14:14:58.000000000 +0100
|
|
|
80384c |
+++ mysql-5.5.31/mysql-test/mysql-test-run.pl 2013-04-24 20:18:28.538687866 +0200
|
|
|
80384c |
@@ -1238,11 +1238,11 @@ sub command_line_setup {
|
|
|
80384c |
}
|
|
|
80384c |
|
|
|
80384c |
# Look for language files and charsetsdir, use same share
|
|
|
80384c |
- $path_language= mtr_path_exists("$bindir/share/mysql",
|
|
|
80384c |
+ $path_language= mtr_path_exists("$bindir/@INSTALL_MYSQLSHAREDIR@",
|
|
|
80384c |
"$bindir/sql/share",
|
|
|
80384c |
"$bindir/share");
|
|
|
80384c |
my $path_share= $path_language;
|
|
|
80384c |
- $path_charsetsdir = mtr_path_exists("$basedir/share/mysql/charsets",
|
|
|
80384c |
+ $path_charsetsdir = mtr_path_exists("$basedir/@INSTALL_MYSQLSHAREDIR@/charsets",
|
|
|
80384c |
"$basedir/sql/share/charsets",
|
|
|
80384c |
"$basedir/share/charsets");
|
|
|
80384c |
|
|
|
80384c |
@@ -3324,7 +3324,7 @@ sub mysql_install_db {
|
|
|
80384c |
}
|
|
|
80384c |
|
|
|
80384c |
my $path_sql= my_find_file($install_basedir,
|
|
|
80384c |
- ["mysql", "sql/share", "share/mysql",
|
|
|
80384c |
+ ["mysql", "sql/share", "@INSTALL_MYSQLSHAREDIR@",
|
|
|
80384c |
"share", "scripts"],
|
|
|
80384c |
"mysql_system_tables.sql",
|
|
|
80384c |
NOT_REQUIRED);
|
|
|
80384c |
diff -up mysql-5.6.23/mysql-test/CMakeLists.txt.sharedir mysql-5.6.23/mysql-test/CMakeLists.txt
|
|
|
80384c |
--- mysql-5.6.23/mysql-test/CMakeLists.txt.sharedir 2015-01-19 14:48:31.000000000 +0100
|
|
|
80384c |
+++ mysql-5.6.23/mysql-test/CMakeLists.txt 2015-02-23 13:11:58.358488693 +0100
|
|
|
80384c |
@@ -33,6 +33,10 @@ ENDIF()
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
|
|
|
80384c |
+# Expand some paths in the perl scripts correctly
|
|
|
80384c |
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/lib/My/ConfigFactory.pm ${CMAKE_CURRENT_SOURCE_DIR}/lib/My/ConfigFactory.pm @ONLY)
|
|
|
80384c |
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql-test-run.pl ${CMAKE_CURRENT_SOURCE_DIR}/mysql-test-run.pl @ONLY)
|
|
|
80384c |
+
|
|
|
80384c |
IF(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
|
80384c |
# Enable running mtr from build directory
|
|
|
80384c |
CONFIGURE_FILE(
|