Current Path : /home/usr.opt/mysql57/mysql-test/suite/x/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 : /home/usr.opt/mysql57/mysql-test/suite/x/t/performance_schema_threads.test |
## Tests detecting presence of xplugin objects in PERFORMANCE_SCHEMA. ## Preamble --source ../include/have_performance_schema_threads.inc --source ../include/xplugin_preamble.inc # Tests --write_file $MYSQL_TMP_DIR/verify_process_data_in_thread_table.tmp -->login %ARG_USER% %ARG_PASS% %ARG_DB% mysql41 -->macro Verify_column_in_thread_table %COLUMN% %EXPECTED_VALUE% -->echo Verify [Current process needs to have %EXPECTED_VALUE% in %COLUMN% column] -->quiet -->stmtsql SELECT %COLUMN% FROM performance_schema.threads WHERE processlist_id = connection_id();; -->noquiet -->recvtovar %VALUE% -->assert_eq %EXPECTED_VALUE% %VALUE% -->endmacro -->callmacro Verify_column_in_thread_table PROCESSLIST_USER %ARG_USER% -->callmacro Verify_column_in_thread_table PROCESSLIST_HOST %ARG_HOST% -->callmacro Verify_column_in_thread_table PROCESSLIST_DB %ARG_DB% -->callmacro Verify_column_in_thread_table PROCESSLIST_DB %ARG_DB% -->callmacro Verify_column_in_thread_table CONNECTION_TYPE TCP/IP -->callmacro Verify_column_in_thread_table CONNECTION_TYPE TCP/IP -->callmacro Verify_column_in_thread_table PROCESSLIST_COMMAND Query EOF CREATE USER 'user_on_localhost'@localhost; CREATE USER 'user_on_127_0_0_1'@127.0.0.1; GRANT SELECT ON *.* TO 'user_on_localhost'@localhost; GRANT SELECT ON *.* TO 'user_on_127_0_0_1'@127.0.0.1; --source ../include/performance_schema_assert_empty_worker_threads.inc exec $MYSQLXTEST --file=$MYSQL_TMP_DIR/verify_process_data_in_thread_table.tmp --no-auth -v%ARG_USER%=root -v%ARG_PASS%= -v%ARG_HOST%=localhost -v%ARG_DB%=performance_schema 2>&1; exec $MYSQLXTEST --file=$MYSQL_TMP_DIR/verify_process_data_in_thread_table.tmp --no-auth -v%ARG_USER%=user_on_127_0_0_1 -v%ARG_PASS%= -v%ARG_HOST%=localhost -v%ARG_DB%=mysql 2>&1; exec $MYSQLXTEST --file=$MYSQL_TMP_DIR/verify_process_data_in_thread_table.tmp --no-auth -v%ARG_USER%=user_on_localhost -v%ARG_PASS%= -v%ARG_HOST%=localhost -v%ARG_DB%=sys 2>&1; --source ../include/performance_schema_assert_empty_worker_threads.inc ## Cleanup --remove_file $MYSQL_TMP_DIR/verify_process_data_in_thread_table.tmp ## Postamble DROP USER 'user_on_localhost'@localhost; DROP USER 'user_on_127_0_0_1'@127.0.0.1; UNINSTALL PLUGIN mysqlx;