Blame SOURCES/mysql-sharedir.patch

268c27
diff --git a/mysql-test/CMakeLists.txt b/mysql-test/CMakeLists.txt
268c27
index f77bd022..a3a3bd9f 100644
268c27
--- a/mysql-test/CMakeLists.txt
268c27
+++ b/mysql-test/CMakeLists.txt
268c27
@@ -57,6 +57,9 @@ IF(INSTALL_MYSQLTESTDIR)
a1be07
 ENDIF()
a1be07
 
f722ff
 
268c27
+# Expand some paths in the perl script correctly
268c27
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql-test-run.pl ${CMAKE_CURRENT_SOURCE_DIR}/mysql-test-run.pl @ONLY)
268c27
+
a1be07
 IF(NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
a1be07
   # Enable running mtr from build directory
268c27
   FIND_PROGRAM(PERL_EXECUTABLE perl
268c27
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
268c27
index b82611fd..7fc5987e 100755
268c27
--- a/mysql-test/mysql-test-run.pl
268c27
+++ b/mysql-test/mysql-test-run.pl
268c27
@@ -1656,7 +1656,7 @@ sub command_line_setup {
a1be07
   my $path_share = $path_language;
a1be07
 
a1be07
   @share_locations =
a1be07
-    ("share/mysql-" . $mysql_base_version, "share/mysql", "share");
a1be07
+    ("@INSTALL_MYSQLSHAREDIR@", "share/mysql-" . $mysql_base_version, "share/mysql", "share");
268c27
 
a1be07
   $path_charsetsdir = my_find_dir($basedir, \@share_locations, "charsets");
a1be07