Commit 4baab59e authored by Tor Didriksen's avatar Tor Didriksen

Bug#14737559 BZR JOIN PLUGIN TREES INTO INTERNAL/PLUGIN

Part three:
Fix some search paths.
parent 9934bc54
...@@ -104,7 +104,10 @@ ENDIF() ...@@ -104,7 +104,10 @@ ENDIF()
# just use if(INSTALL_PLUGINTESTDIR). # just use if(INSTALL_PLUGINTESTDIR).
# The plugin must set its own install path for tests # The plugin must set its own install path for tests
# #
FILE(GLOB plugin_tests ${CMAKE_SOURCE_DIR}/plugin/*/tests) FILE(GLOB plugin_tests
${CMAKE_SOURCE_DIR}/plugin/*/tests
${CMAKE_SOURCE_DIR}/internal/plugin/*/tests
)
# #
# STANDALONE layout # STANDALONE layout
......
...@@ -39,6 +39,7 @@ MACRO(PLUGIN_APPEND_COLLECTIONS plugin) ...@@ -39,6 +39,7 @@ MACRO(PLUGIN_APPEND_COLLECTIONS plugin)
GET_FILENAME_COMPONENT(fname ${cfile} NAME) GET_FILENAME_COMPONENT(fname ${cfile} NAME)
FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}") FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")
FILE(APPEND ${fcopied} "${fname}\n") FILE(APPEND ${fcopied} "${fname}\n")
MESSAGE(STATUS "Appended ${cfile}")
ENDFOREACH() ENDFOREACH()
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
......
...@@ -295,6 +295,7 @@ sub collect_one_suite($) ...@@ -295,6 +295,7 @@ sub collect_one_suite($)
"storage/*/mtr", "storage/*/mtr",
# Look in plugin specific suite dir # Look in plugin specific suite dir
"plugin/$suite/tests", "plugin/$suite/tests",
"internal/plugin/$suite/tests",
], ],
[$suite, "mtr"], ($suite =~ /^i_/)); [$suite, "mtr"], ($suite =~ /^i_/));
return unless $suitedir; return unless $suitedir;
......
...@@ -459,6 +459,7 @@ sub main { ...@@ -459,6 +459,7 @@ sub main {
# Also read from any plugin local or suite specific plugin.defs # Also read from any plugin local or suite specific plugin.defs
for (glob "$basedir/plugin/*/tests/mtr/plugin.defs". for (glob "$basedir/plugin/*/tests/mtr/plugin.defs".
" $basedir/internal/plugin/*/tests/mtr/plugin.defs".
" suite/*/plugin.defs") { " suite/*/plugin.defs") {
read_plugin_defs($_); read_plugin_defs($_);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment