diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-03 11:51:22 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-05-03 11:51:22 +0200 |
commit | dbe97bcc56b22da85753d853277f47c47ff42ec1 (patch) | |
tree | 547acf651cd33fe334ca53f3d04d5f27c2bc301d /mysql-test/t/bootstrap.test | |
parent | 0759568b886b8fa788a6936fadf8b7a4d85d779c (diff) | |
download | mariadb-git-dbe97bcc56b22da85753d853277f47c47ff42ec1.tar.gz |
clarify the test case
Diffstat (limited to 'mysql-test/t/bootstrap.test')
-rw-r--r-- | mysql-test/t/bootstrap.test | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/mysql-test/t/bootstrap.test b/mysql-test/t/bootstrap.test index d690c1c63d0..97376eb7412 100644 --- a/mysql-test/t/bootstrap.test +++ b/mysql-test/t/bootstrap.test @@ -64,18 +64,28 @@ SELECT 'bug' as '' FROM INFORMATION_SCHEMA.ENGINES WHERE engine='innodb' --source include/not_windows_embedded.inc --source include/have_example_plugin.inc # -# Check that --bootstrap can load/unload plugins +# Check that --bootstrap can install and uninstall 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 +--write_file $MYSQLTEST_VARDIR/tmp/install_plugin.sql +install soname 'ha_example'; +uninstall plugin unusable; +EOF --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; +--remove_file $MYSQLTEST_VARDIR/tmp/install_plugin.sql + +# +# Check that installed plugins are *not* automatically loaded in --bootstrap +# --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; +--remove_file $MYSQLTEST_VARDIR/tmp/bootstrap_plugins.sql +flush tables; +show create table t1; +drop table t1; +--replace_result .dll .so +select * from mysql.plugin; +truncate table mysql.plugin; |