mirror of
https://github.com/MariaDB/server.git
synced 2025-07-20 10:24:14 +03:00
This allows one to run the test suite even if any of the following options are changed: - character-set-server - collation-server - join-cache-level - log-basename - max-allowed-packet - optimizer-switch - query-cache-size and query-cache-type - skip-name-resolve - table-definition-cache - table-open-cache - Some innodb options etc Changes: - Don't print out the value of system variables as one can't depend on them to being constants. - Don't set global variables to 'default' as the default may not be the same as the test was started with if there was an additional option file. Instead save original value and reset it at end of test. - Test that depends on the latin1 character set should include default_charset.inc or set the character set to latin1 - Test that depends on the original optimizer switch, should include default_optimizer_switch.inc - Test that depends on the value of a specific system variable should set it in the test (like optimizer_use_condition_selectivity) - Split subselect3.test into subselect3.test and subselect3.inc to make it easier to set and reset system variables. - Added .opt files for test that required specfic options that could be changed by external configuration files. - Fixed result files in rockdsb & tokudb that had not been updated for a while.
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
# This test should work in embedded server after we fix mysqltest
|
|
-- source include/not_embedded.inc
|
|
|
|
###################### mysql_comments.test #############################
|
|
# #
|
|
# Testing of comments handling by the command line client (mysql) #
|
|
# #
|
|
# Creation: #
|
|
# 2007-10-29 akopytov Implemented this test as a part of fixes for #
|
|
# bug #26215 and bug #11230 #
|
|
# #
|
|
########################################################################
|
|
|
|
set global sql_mode="";
|
|
|
|
#
|
|
# Bug #11230: Keeping comments when storing stored procedures
|
|
#
|
|
|
|
# See the content of mysql_comments.sql
|
|
# Set the test database to a known state before running the tests.
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
drop function if exists foofct;
|
|
drop procedure if exists empty;
|
|
drop procedure if exists foosp;
|
|
drop procedure if exists nicesp;
|
|
drop trigger if exists t1_empty;
|
|
drop trigger if exists t1_bi;
|
|
--enable_warnings
|
|
|
|
# Test without comments
|
|
--echo "Pass 1 : --disable-comments"
|
|
--replace_regex /[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]{2})*/--TIME--/
|
|
--exec $MYSQL --default-character-set=latin1 --disable-comments test 2>&1 < "./t/mysql_comments.sql"
|
|
|
|
# Test with comments
|
|
--echo "Pass 2 : --enable-comments"
|
|
--replace_regex /[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]{2})*/--TIME--/
|
|
--exec $MYSQL --default-character-set=latin1 --enable-comments test 2>&1 < "./t/mysql_comments.sql"
|
|
|
|
set global sql_mode=default;
|
|
--echo End of 5.0 tests
|