Skip to content

Commit 0759568

Browse files
committed
test case for install plugin on boostrap
1 parent fd97739 commit 0759568

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

mysql-test/t/bootstrap.test

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,22 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb'
6060
and SUPPORT='YES';
6161

6262
--echo End of 5.5 tests
63+
64+
--source include/not_windows_embedded.inc
65+
--source include/have_example_plugin.inc
66+
#
67+
# Check that --bootstrap can load/unload plugins
68+
#
69+
--disable_query_log
70+
let $PLUGIN_DIR=`select @@plugin_dir`;
71+
eval SELECT "install plugin example soname '$HA_EXAMPLE_SO';" INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/install_plugin.sql';
72+
--enable_query_log
73+
--exec $MYSQLD_BOOTSTRAP_CMD --plugin-dir=$PLUGIN_DIR < $MYSQLTEST_VARDIR/tmp/install_plugin.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1
74+
remove_file $MYSQLTEST_VARDIR/tmp/install_plugin.sql;
75+
--write_file $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql
76+
use test;
77+
create table t1(a int) engine=example;
78+
drop table t1;
79+
EOF
80+
--exec $MYSQLD_BOOTSTRAP_CMD --plugin-dir=$PLUGIN_DIR < $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1
81+
remove_file $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql;

0 commit comments

Comments
 (0)