Current Path : /usr/opt/mysql57/mysql-test/suite/test_services/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/opt/mysql57/mysql-test/suite/test_services/t/test_services.test |
#--source include/have_daemon_example_plugin.inc --source include/not_embedded.inc call mtr.add_suppression("This is a warning from test plugin"); call mtr.add_suppression("This is an error from test plugin"); --echo ------ Run plugin ------------------------------------------------ --replace_result $TESTSERVICES TESTSERVICES eval INSTALL PLUGIN test_services SONAME '$TESTSERVICES'; --echo ------ Show variables of plugin to control test execution -------- SHOW VARIABLES LIKE 'test_service%'; --echo ------ Show status of plugin ------------------------------------- SHOW STATUS LIKE 'test_services_status'; let $test_status= `SELECT variable_value FROM information_schema.global_status WHERE variable_name LIKE 'test_services_status'`; --echo test status: $test_status let $run_snprintf_test=`SELECT @@global.test_services_with_snprintf= 1`; let $run_log_message_test=`SELECT @@global.test_services_with_log_message= 1`; --echo # --echo # Bug #GR VARS ARE ABLE TO SET TO 'DEFAULT' INSTEAD OF ERROR ER3093 --echo # WHEN GR IS RUNNING --echo # --echo # Should not work --error ER_WRONG_VALUE_FOR_VAR SET @@global.test_services_non_default_variable= DEFAULT; --echo ------ Stop plugin ----------------------------------------------- UNINSTALL PLUGIN test_services; --disable_warnings --echo ------ Service: my_snprintf -------------------------------------- if ($run_snprintf_test) { let $MYSQLD_DATADIR= `select @@datadir`; cat_file $MYSQLD_DATADIR/test_services.log; remove_file $MYSQLD_DATADIR/test_services.log; } --echo ------ Service: my_plugin_log_service ---------------------------- if ($run_log_message_test) { CREATE TABLE t1 (c1 varchar(30), c2 TEXT); --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR eval LOAD DATA LOCAL INFILE '$MYSQLTEST_VARDIR/log/mysqld.1.err' INTO TABLE t1 FIELDS TERMINATED BY ' ['; SELECT replace(c2,'\r','') FROM t1 WHERE c2 LIKE '%test_services %'; DROP TABLE IF EXISTS t1; }