mirror of
https://github.com/MariaDB/server.git
synced 2025-09-03 20:43:11 +03:00
test case for install plugin on boostrap
This commit is contained in:
@@ -60,3 +60,22 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
|
|||||||
and SUPPORT='YES';
|
and SUPPORT='YES';
|
||||||
|
|
||||||
--echo End of 5.5 tests
|
--echo End of 5.5 tests
|
||||||
|
|
||||||
|
--source include/not_windows_embedded.inc
|
||||||
|
--source include/have_example_plugin.inc
|
||||||
|
#
|
||||||
|
# Check that --bootstrap can load/unload plugins
|
||||||
|
#
|
||||||
|
--disable_query_log
|
||||||
|
let $PLUGIN_DIR=`select @@plugin_dir`;
|
||||||
|
eval SELECT "install plugin example soname '$HA_EXAMPLE_SO';" INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/install_plugin.sql';
|
||||||
|
--enable_query_log
|
||||||
|
--exec $MYSQLD_BOOTSTRAP_CMD --plugin-dir=$PLUGIN_DIR < $MYSQLTEST_VARDIR/tmp/install_plugin.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1
|
||||||
|
remove_file $MYSQLTEST_VARDIR/tmp/install_plugin.sql;
|
||||||
|
--write_file $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql
|
||||||
|
use test;
|
||||||
|
create table t1(a int) engine=example;
|
||||||
|
drop table t1;
|
||||||
|
EOF
|
||||||
|
--exec $MYSQLD_BOOTSTRAP_CMD --plugin-dir=$PLUGIN_DIR < $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1
|
||||||
|
remove_file $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql;
|
||||||
|
Reference in New Issue
Block a user