mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Modified and added tests following review of WL#4738.
- Added tests for innodb and semisync plugin - Modified existing tests to include variable values in I_S tables - Updated the all_vars test to include optional checkes for INNODB and semisync plugin if loaded
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# Creation Date: 2008-03-16 #
|
||||
# Author: Salman Rawala #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "log_slow_queries" #
|
||||
# Description: Test Cases of Dynamic System Variable "log_slow_queries" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
@ -21,6 +21,10 @@
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-options.html#option_mysqld_event-scheduler #
|
||||
# #
|
||||
# #
|
||||
# 2010-01-20 OBN - Added check for variable value matching I_S tables after #
|
||||
# variable value change #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
@ -116,8 +120,14 @@ WHERE VARIABLE_NAME='log_slow_queries';
|
||||
|
||||
SET @@global.log_slow_queries = 0;
|
||||
SELECT @@global.log_slow_queries;
|
||||
SELECT IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_slow_queries';
|
||||
SET @@global.log_slow_queries = 1;
|
||||
SELECT @@global.log_slow_queries;
|
||||
SELECT IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_slow_queries';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_004_07----------------------#'
|
||||
###################################################################
|
||||
@ -126,8 +136,14 @@ SELECT @@global.log_slow_queries;
|
||||
|
||||
SET @@global.log_slow_queries = TRUE;
|
||||
SELECT @@global.log_slow_queries;
|
||||
SELECT IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_slow_queries';
|
||||
SET @@global.log_slow_queries = FALSE;
|
||||
SELECT @@global.log_slow_queries;
|
||||
SELECT IF(@@global.log_slow_queries, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_slow_queries';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_004_08----------------------#'
|
||||
##############################################################################
|
||||
|
Reference in New Issue
Block a user