mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	This excludes commit040069f4babecause it is specific to innodb_sync_debug, which had been removed in commitff5d306e29.
		
			
				
	
	
		
			65 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
	
		
			2.6 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
# This test should work in embedded server after we fix mysqltest
 | 
						|
-- source include/not_embedded.inc
 | 
						|
 | 
						|
# Run test with default character set
 | 
						|
--source include/default_charset.inc
 | 
						|
SET @save_character_set_client=    @@global.character_set_client;
 | 
						|
SET @save_collation_connection=    @@global.collation_connection;
 | 
						|
SET @@global.character_set_server= @@character_set_server;
 | 
						|
SET @@global.collation_server=     @@collation_server;
 | 
						|
SET @@global.character_set_client= @@character_set_server;
 | 
						|
SET @@global.collation_connection= @@collation_server;
 | 
						|
 | 
						|
SET @old_general_log= @@global.general_log;
 | 
						|
SET @old_slow_query_log= @@global.slow_query_log;
 | 
						|
 | 
						|
call mtr.add_suppression(" Error reading file './client_test_db/test_frm_bug.frm'");
 | 
						|
call mtr.add_suppression(" IP address .* could not be resolved");
 | 
						|
 | 
						|
# We run with different binaries for normal and --embedded-server
 | 
						|
#
 | 
						|
# If this test fails with "command "$MYSQL_CLIENT_TEST" failed",
 | 
						|
# you should either run mysql_client_test separartely against a running
 | 
						|
# server or run mysql-test-run --debug mysql_client_test and check
 | 
						|
# var/log/mysql_client_test.trace
 | 
						|
 | 
						|
--write_line "$MYSQL_CLIENT_TEST" $MYSQLTEST_VARDIR/log/mysql_client_test.out.log
 | 
						|
--exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
 | 
						|
 | 
						|
# End of 4.1 tests
 | 
						|
echo ok;
 | 
						|
 | 
						|
--echo
 | 
						|
--echo # cat MYSQL_TMP_DIR/test_wl4435.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
--cat_file $MYSQL_TMP_DIR/test_wl4435.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
--echo # cat MYSQL_TMP_DIR/test_mdev26145.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
--cat_file $MYSQL_TMP_DIR/test_mdev26145.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
--echo
 | 
						|
 | 
						|
--echo
 | 
						|
--echo # cat MYSQL_TMP_DIR/test_explain_meta.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
 | 
						|
# For MAX_INDEXES=128,  max_len for possible_keys column is twice as large vs MAX_INDEXES=64
 | 
						|
--replace_result 24576 12288
 | 
						|
 | 
						|
--cat_file $MYSQL_TMP_DIR/test_explain_meta.out.log
 | 
						|
--echo # ------------------------------------
 | 
						|
--echo
 | 
						|
 | 
						|
SET @@global.general_log= @old_general_log;
 | 
						|
SET @@global.slow_query_log= @old_slow_query_log;
 | 
						|
SET @@global.character_set_server= @save_character_set_server;
 | 
						|
SET @@global.collation_server= @save_collation_server;
 | 
						|
SET @@global.character_set_client= @save_character_set_client;
 | 
						|
SET @@global.collation_connection= @save_collation_connection;
 | 
						|
 | 
						|
# Search for "real ip" in Aborted message
 | 
						|
# This is indicator for abort of the proxied connections.
 | 
						|
let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err;
 | 
						|
let SEARCH_PATTERN= Aborted connection.*'u' host: '192.0.2.1' real ip: '(localhost|::1)';
 | 
						|
source include/search_pattern_in_file.inc;
 |