summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqltest.test
Commit message (Collapse)AuthorAgeFilesLines
* mysqltest: support pairs of delimiters in replace_regexSergei Golubchik2014-08-041-1/+7
|
* Allow multiple error codes inside a variable in --error commandElena Stepanova2012-07-161-0/+5
|
* mysql-5.5 mergeSergei Golubchik2012-01-161-0/+48
|\
| * Bug #13055685 NO WAY TO REPLACE NON-DETERMINISTIC FRAGMENTS IN OUTPUT OF ↵Bjorn Munch2011-11-081-0/+23
| | | | | | | | | | | | | | | | | | | | | | MTR'S ECHO Don't do this for echo, instead: 1) Enable replacements also for assignment from backquoted SQL 2) Allow replace_regex to take a variable for the *entire* argument list With this, the test can be amended, but only in its version in trunk
| * Bug #11754855 46528: NEED A WAY TO PASS A VARIABLE TO MTR COMMANDSunknown2011-10-191-0/+25
| | | | | | | | | | | | | | modified function do_get_error in mysqltest.cc to handle multiple variable passed added test case to mysqltest.test to verify handling to multiple errors passed
* | mysql-5.5.18 mergeSergei Golubchik2011-11-031-18/+106
|\ \ | |/
| * upmerge 12793118,12912120Bjorn Munch2011-09-151-0/+25
| |\
| | * Bug #12793118 MYSQLTEST: --ERROR AND --DISABLE_ABORT_ON_ERROR DO NOT WORK ↵Bjorn Munch2011-09-141-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | FOR SQL IN COMMANDS Call handle_error() instead of die() when evaluating these Must remember "current command" with link to errors to ignore Added test cases to mysqltest.test
| * | Bug #12956584 MYSQLTEST: --ENABLE_X OR --DISABLE_X APPLYING ONLY TO NEXT ↵Bjorn Munch2011-09-141-9/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | COMMAND/STMT Added a keyword ONCE to add to those commands Some internal tables to keep track of which properties are temporarily overriden Added tests in mysqltest.test Updates to other tests will be done later
| * | Bug #12793170 MYSQLTEST: PROVIDE ACCESS TO ERROR NAMES THROUGH NUMERIC CODES ↵Bjorn Munch2011-08-221-9/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | AND VICE VERSA Added a second internal variable $mysql_errname This is set the same way as $mysql_errno Can be used like "if ($mysql_errname == ER_NO_SUCH_TABLE)...."
* | | 5.5-mergeSergei Golubchik2011-07-021-40/+239
|\ \ \ | |/ /
| * | upmerge 58896,58900,59002Bjorn Munch2011-01-111-0/+6
| |\ \ | | |/
| | * Bug #58900 query_get_value crashes when result begins with dollar signBjorn Munch2011-01-111-0/+6
| | | | | | | | | | | | | | | | | | Generalized fix for recursive backtick Optional arg to eval_expr telling it not to interpret
| | * mergeGeorgi Kodinov2010-12-161-0/+2
| | |\
| | | * Manual-merge from mysql-5.1-bugteam.Ramil Kalimullin2010-11-221-0/+16
| | | |\
| * | | \ merge from 5.5 mainBjorn Munch2010-12-171-0/+2
| |\ \ \ \
| | * \ \ \ Manual merge from mysql-5.5-bugteam.Ramil Kalimullin2010-11-221-27/+197
| | |\ \ \ \
| | * \ \ \ \ mergeMattias Jonsson2010-11-171-0/+2
| | |\ \ \ \ \ | | | | |_|/ / | | | |/| | |
| | | * | | | post-push fix, backported --replace_result patchMattias Jonsson2010-11-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for --list_files in mysqltest. client/mysqltest.cc: Backported --replace_result for --list_files. mysql-test/r/mysqltest.result: updated test. mysql-test/t/mysqltest.test: added test for replace_result on list_files.
| * | | | | | upmerge 58511,58522,58608,58092Bjorn Munch2010-12-091-0/+1
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | |
| | * | | | | Bug #58092 Test "rpl_cross_version" has "copy_file" failingBjorn Munch2010-12-011-0/+1
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | I am not fixing the test failure Adds printing of my_errno when commands fail, could hopefully help
| * | | | | Bug #58695 mysqltest coredumps on "if($x == ){"Bjorn Munch2010-12-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add check that there is a RHS of the expression Added to mysqltest.test
| * | | | | Bug #58412 mysqltest: allow quoting of strings in let and in if comparisonBjorn Munch2010-11-261-1/+13
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Stripping quotes in let was a bad idea, will not fix Added code to strip quotes from rhs in comparisons
| * | | | upmerge 58257Bjorn Munch2010-11-181-0/+9
| |\ \ \ \ | | |/ / /
| | * | | Bug #58257 mysqltest: in if(), ! $var with space is always falseBjorn Munch2010-11-171-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Evaluation would start with the space and thus ignore the $ Added while() to skip past white space
| * | | | upmerge 58087Bjorn Munch2010-11-171-0/+7
| |\ \ \ \ | | |/ / /
| | * | | Bug #58087 mysqltest re-evaluates 'let' expressions infinitelyBjorn Munch2010-11-151-0/+7
| | | |/ | | |/| | | | | | | | | | | | | | | | | Results from query is sent for evaluation Break recursion by asking for ` to be ignored
| * | | Tests: many if/while expresissons simplified after 57276Bjorn Munch2010-11-171-3/+3
| | | |
| * | | Bug #57276 mysqltest: add support for simple compares in if/while conditionsBjorn Munch2010-11-101-24/+178
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Added more parsing in do_block() Limitation: left operand must be variable Also changed var_set_int from 57036 to var_check_int Added tests to mysqltest.test Some tests can now be simplified but will take this later Updated after comments, now white space around operator not needed
| * | upmerge 56654Bjorn Munch2010-10-191-1/+1
| |\ \ | | |/
| | * Bug #52828 Tests that use perl fail when perl is not in pathBjorn Munch2010-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | main.mysqltest skipped on Windows because a perl intentionally does exit(1) Use exit(2), as exit(1) on Windows is indistinguishable from failing to execute perl.
| * | upmerge 56125,56921Bjorn Munch2010-09-281-15/+17
| |\ \ | | |/
| * | Bug #57036 Add checks in mysqltest that variables treated as ints are in ↵Bjorn Munch2010-09-271-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | fact ints Adds boolean flag is_int and a separete function to check for int value Added tests to mysqltest.test
* | | merge.Sergei Golubchik2010-11-251-2/+22
|\ \ \ | |_|/ |/| | | | | | | | | | | checkpoint. does not compile.
| * | 5.1.51 mergeSergei Golubchik2010-10-191-3/+54
| |\ \
| * | | mysqltest now gives error messages with error code for my_delete, my_rename, ↵Michael Widenius2010-09-151-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | my_copy etc. Fixed crashing bug when doing ALTER TABLE RENAME with transactional tables. client/mysqltest.cc: Added errno to error message for system calls (delete, rename etc) Write error message for failures of system calls mysql-test/include/cleanup_fake_relay_log.inc: Disable warnings for remove_file mysql-test/include/diff_tables.inc: Disable warnings for remove_file mysql-test/include/maria_empty_logs.inc: Disable warnings for remove_file mysql-test/include/maria_make_snapshot.inc: Disable warnings for remove_file mysql-test/include/maria_make_snapshot_for_feeding_recovery.inc: Disable warnings for remove_file mysql-test/include/mysqlhotcopy.inc: Disable warnings for remove_file mysql-test/include/ndb_backup.inc: Disable warnings for remove_file mysql-test/include/ndb_backup_print.inc: Disable warnings for remove_file mysql-test/r/alter_table_trans.result: Test of crashing ALTER TABLE RENAME bug mysql-test/t/alter_table_trans.test: Test of crashing ALTER TABLE RENAME bug mysql-test/t/mysqltest.test: Disable warnings for remove_file and move_file mysys/my_copy.c: Fixed wrong error message sql/sql_table.cc: Fixed crashing bug when doing ALTER TABLE RENAME with transactional tables.
| * | | Merge MySQL 5.1.46 into MariaDB.unknown2010-04-281-3/+197
| |\ \ \ | | | | | | | | | | | | | | | Still two test failures to be solved: main.myisam and main.subselect.
| * | | | Fix multiple test suite failures in Buildbot due to races in the test cases ↵unknown2010-01-111-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or missing server features not properly checked mysql-test/r/func_misc.result: Move test that requires query cache from main.func_misc to main.query_cache. mysql-test/r/mysqltest.result: Fix test failure due to race. This test case creates > 300 connections in a tight loop, and depending on thread scheduling and load, even though each connection is immediately disconnected before connecting the next one, the server max connections may still be exceeded due to server not being able to free old connections as fast as new ones are made. mysql-test/r/query_cache.result: Move test that requires query cache from main.func_misc to main.query_cache. Move test that requires query cache from main.variables to main.query_cache. mysql-test/r/query_cache_notembedded.result: Move test that requires query cache from main.sp_notembedded to main.query_cache_notembedded. mysql-test/r/sp_notembedded.result: Move test that requires query cache from main.sp_notembedded to main.query_cache_notembedded. mysql-test/r/udf.result: Move test in main.udf that requires query cache to separate file. mysql-test/r/udf_query_cache.result: Move test in main.udf that requires query cache to separate file. mysql-test/r/variables.result: Move test that requires query cache from main.variables to main.query_cache. mysql-test/suite/funcs_1/datadict/processlist_val.inc: Fix race where result file may show state "cleaning up" in the small window between setting COMMAND to 'Sleep' and clearing STATE. mysql-test/suite/rpl/r/rpl_temporary.result: Fix race with suppression of warning message by fixing the test to not generate the warning message in the first place. Problem was a race between creating an anonymous account and resetting the slave. If the slave reset happens before replicating the account, the subsequest deletion of the account will fail to replicate correctly due to missing row. mysql-test/suite/rpl/t/rpl_temporary.test: Fix race with suppression of warning message by fixing the test to not generate the warning message in the first place. Problem was a race between creating an anonymous account and resetting the slave. If the slave reset happens before replicating the account, the subsequest deletion of the account will fail to replicate correctly due to missing row. mysql-test/t/func_misc.test: Move test that requires query cache from main.func_misc to main.query_cache. Move test that requires query cache from main.variables to main.query_cache. mysql-test/t/mysqltest.test: Fix test failure due to race. This test case creates > 300 connections in a tight loop, and depending on thread scheduling and load, even though each connection is immediately disconnected before connecting the next one, the server max connections may still be exceeded due to server not being able to free old connections as fast as new ones are made. mysql-test/t/query_cache.test: Move test that requires query cache to main.query_cache. mysql-test/t/query_cache_notembedded.test: Move test that requires query cache from main.sp_notembedded to main.query_cache_notembedded. mysql-test/t/sp_notembedded.test: Move test that requires query cache from main.sp_notembedded to main.query_cache_notembedded. mysql-test/t/udf.test: Move test in main.udf that requires query cache to separate file. mysql-test/t/udf_query_cache-master.opt: Move test in main.udf that requires query cache to separate file. mysql-test/t/udf_query_cache.test: Move test in main.udf that requires query cache to separate file. mysql-test/t/variables.test: Move test that requires query cache from main.variables to main.query_cache. tests/mysql_client_test.c: In tests that require query cache, skip the test if query cache not available. Do this dynamically rather than using HAVE_QUERY_CACHE, as there is no guarantee that the server we run against was compiled with same preprocessor #define as the mysql_client_test program (and since it is trivial to check dynamically).
* | | | | Bug #56921 It should be possible to log connection statements in mysqltestBjorn Munch2010-09-221-15/+17
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Added --enable-connect-log, somewhet similar to --enable-query-log If query log is disabled, disable connect log too Also some related cleanup in mysqltest.test: removing duplicate test loop
* | | | test fixes after 56753Bjorn Munch2010-09-211-2/+11
| | | |
* | | | Bug #56753 mtr silently ignores junk after backticksBjorn Munch2010-09-151-0/+17
| | | | | | | | | | | | | | | | | | | | When stepping backward to end of `` expression, check for illegal chars
* | | | Bug #55413 mysqltest gives parse error for lines matching "^let.*\\.*;$"Bjorn Munch2010-08-101-0/+10
| |_|/ |/| | | | | | | | | | | | | | Allow escaped quotes also in statements not starting with -- But will not support single unescaped ' or `
* | | Bug #55582 mtr root detection (and if-expression execution) brokenBjorn Munch2010-08-041-0/+11
| | | | | | | | | | | | | | | Follow-up patch: added test cases for -0 and while
* | | Bug #55582 mtr root detection (and if-expression execution) brokenBjorn Munch2010-08-031-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | if() treated any non-numeric string as false Fixed to treat those as true instead Added some test cases Fixed missing $ in variable name in include/mix2.inc
* | | Bug #43603 mysqltest command disable_abort_on_error does not affect all ↵Bjorn Munch2010-03-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | built-in commands After disable_abort_on_error, behaved as if --error was in effect Add condition before die, as after queries
* | | Bug #43588 mysqltest command disable_abort_on_error logs connect commandsBjorn Munch2010-03-171-1/+0
| | | | | | | | | | | | | | | | | | Only log connects after --error A few small test adjustments needed/possible
* | | followup test fix after 49761Bjorn Munch2010-03-031-1/+10
| | |
* | | Bug #51590 mysqltest: --disable_abort_on_error does not work inside while/ifBjorn Munch2010-03-021-1/+5
| |/ |/| | | | | | | | | abort_on_error flag for stmt was set at initial parse (Re)-set flag before execution instead, also added to test
* | Bug #50618 Please allow 'sleep $variable' in mtrBjorn Munch2010-02-091-0/+22
| | | | | | | | | | | | Made mtr's sleep function understand $variables A few fixes since previous patch, added tests
* | Bug #39774 mysql-test-run's remove_file can't use wildcards, this should be ↵Bjorn Munch2010-02-041-3/+21
| | | | | | | | | | | | | | | | documented Added remove_files_wildcard that allows to remove multiple files at once. This is a port of original patch to Windows.