summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqltest.test
Commit message (Collapse)AuthorAgeFilesLines
...
* | merge 49837Bjorn Munch2010-01-201-0/+9
|\ \
| * | Bug #49837 mysqltest exec cannot handle multi-line command correctlyBjorn Munch2010-01-201-0/+9
| | | | | | | | | | | | | | | | | | | | | Since the exec command line is passed on externally, it cannot take newlines Simply replace \n with space Now also added test case
* | | merge 48888Bjorn Munch2010-01-201-0/+11
|\ \ \
| * | | Bug #48888 mysqltest crashes on --replace_result if 'from' is longer than ↵Bjorn Munch2010-01-201-0/+11
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | ~1024 symbols valgrind pointed to a buffer allocated by my_realloc which looked fishy Replaced size with what was probably intended, added test case. Now also fixed line after review comment
* | | Bug #49878 delimiter under false 'if' makes mysqltest test fail with ↵Bjorn Munch2010-01-201-0/+31
|/ / | | | | | | | | | | | | | | 'Missing end of block' delimiter not executed so does not recognize end of block Always execute delimiter command, revert after false if() block.
* | Bug #49269 mysqltest crashes on 'reap' if query executed after 'send'Bjorn Munch2010-01-071-12/+0
| | | | | | | | | | | | Undid amendment allowing pending reap after switching connections Moved check for pending reap earlier; failed if running with ps-protocol
* | Bug #49269 mysqltest crashes on 'reap' if query executed after 'send'Bjorn Munch2010-01-061-0/+12
| | | | | | | | | | Small amendment: ignore pending reap when switching connection, add test
* | Bug #49761 mysqltest.test does not have any tests for send/reapBjorn Munch2010-01-061-0/+51
| | | | | | | | | | | | Added them NB the 6th case is adapted to Bug no. 49269, gives wrong output without it
* | Bug #48863 mysql test: enable and disable case insensitive compare modeBjorn Munch2010-01-061-0/+38
| | | | | | | | | | Implemented --lowercase_result which lower cases next result
* | Bug #48671 mysqltest fails on 'perl' in file sourced inside 'while'Bjorn Munch2009-11-111-0/+14
|/ | | | | | Actually, fails on 'perl' in any while Fixed essentially the same way as for append_file
* Bug #47218 mysqltest ignores "error" command inside if inside loopBjorn Munch2009-10-081-0/+3
| | | | | | This was affected by same problem as append_file etc. Added Q_ERROR to special handling, and added small test
* Bug #32296 mysqltest fails to parse "append_file" inside a "while", it works ↵Bjorn Munch2009-09-021-5/+21
| | | | | | | | | | | inside a "if" Bug #41913 mysqltest cannot source files from if inside while Some commands require additional processing which only works first time Keep content for write_file or append_file with the st_command struct Add tests for those cases to mysqltest.test
* Bug #39003 mtr's diff_files command failed in pushbuild without printing a ↵Bjorn Munch2009-08-191-12/+0
| | | | | | | | result diff diff was actually called but result never outputted before exiting Added extra code to dump output *unless* failure was expected
* cherry picking fix for Bug #39542 from 6.0-runtimeBjorn Munch2009-05-271-0/+50
|
* Bug #44922 mysqltest's query_get_value function can't work with queries ↵Bjorn Munch2009-05-251-0/+4
| | | | | | | | | containing ',' check_command_args() always looks for the first , (or whatever) Extended check_command_args() to let arguments be quoted Added test in mysqltest.test
* Merge 5.0 -> 5.1 of fix for Bug#42003 and Bug#43114 Matthias Leich2009-03-061-20/+33
|\
| * Merge of fix for Bug#42003 and Bug#43114 into more actual GCA treeMatthias Leich2009-03-051-9/+14
| |\ | | | | | | | | | modifications according to the reviews are included
| | * Last slice of fix for Bug#42003 tests missing the disconnect of connections ↵Matthias Leich2009-03-031-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | <> default + Fix for Bug#43114 wait_until_count_sessions too restrictive, random PB failures + Removal of a lot of other weaknesses found + modifications according to review
* | | Prepared BUG#42711 for push on 5.1Bernt M. Johnsen2009-03-021-1/+1
|\ \ \ | |/ /
| * | Prepared BUG#42711 for pushBernt M. Johnsen2009-03-021-1/+1
| | |
* | | merge 5.0 -> 5.1Patrick Crews2009-02-191-40/+68
|\ \ \ | |/ / | | | | | | | | | These are only 5.0's fixes being merged. 5.1 and 6.0 Unix-removals will occur in different patches.
| * | Bug#38831: 11 test cases fail on Windows due to missing commandsPatrick Crews2009-02-191-40/+68
| |/ | | | | | | | | | | | | Replaced Unix calls with mysql-test-run's built-in functions / SQL manipulation where possible. Replaced error codes with error names as well. Disabled two tests on Windows due to more complex Unix command usage See Bug#41307, Bug#41308
* | Bug#35701 please allow test language variables in connection andMagnus Svensson2009-01-151-0/+8
| | | | | | | | | | | | sync_slave_with_master - Additional patch for "disconnect $variable"
* | BUG#35701: please allow test language variables in connection and ↵Sven Sandberg2008-10-231-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sync_slave_with_master Problem: In the mysqltest language, it was not possible to set the current connection from a variable, and it was not possible to read the current connection. Fix: Allow setting the connection from a variable, like: connection $variable; and introduce the mysqltest language variable $CURRENT_CONNECTION, which holds the name of the current connection. client/mysqltest.cc: - Made select_connection use the common argument parser instead of its own home-rolled version. That allows variable expansion, for instance. - Made select_connection_name set the variable $CURRENT_CONNECTION, so that test scripts can use that. - Refactored a bit so that stuff that needs to be done when changing connection is located to one place. mysql-test/t/mysqltest.test: Added test case for $CURRENT_CONNECTION and "connection $variable"
* | MergeMagnus Svensson2008-08-081-0/+16
|\ \
| * \ auto-merge + post-merge fixiesTatiana A. Nurnberg2008-07-211-0/+14
| |\ \
| | * | Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls'Mattias Jonsson2008-07-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that relying on the output of the 'ls' command is not portable as its behavior is not the same between systems and it might even not be available at all in (Windows). So I added list_files that relies on the portable mysys library instead. (and also list_files_write_file and list_files_append_file, since the test was using '--exec ls' in that way.) client/mysqltest.c: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' To be able to replace the use of '--exec ls' I have added list_files, list_files_write_file and list_files_append_file. list_files <dirname> [<filename incl. wild-cards>] is equivalent to 'ls <dirname>/[<filename incl. wild-cards>]' list_files_write_file creates/overwrites a file with the content list_files_append_file creates/appends a file with the content list_files* return a sorted output. mysql-test/r/mysqltest.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' result file change, due to added test of the new list_files command. mysql-test/suite/parts/inc/partition_check_drop.inc: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Using the new list_files instead of 'ls'. Changed the use of local variables (ls_file, file_list) and server variable (@aux). mysql-test/suite/parts/inc/partition_layout.inc: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Using the new list_files instead of 'ls'. mysql-test/suite/parts/inc/partition_layout_check1.inc: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Using the new list_files instead of 'ls'. mysql-test/suite/parts/inc/partition_layout_check2.inc: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter1_1_2_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter1_1_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter1_2_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter2_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter3_innodb.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_alter3_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_basic_innodb.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_basic_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_basic_symlink_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_engine_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/suite/parts/r/partition_syntax_myisam.result: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Replaces '--exec ls' with list_files. Removal of the directory part of file listing. mysql-test/t/mysqltest.test: Bug#35736 Test 'parts.partition_basic_symlink_myisam' depends on output of 'ls' Adding test for the new mysqltest commands list_files, list_files_write_file and list_files_append_file.
| * | | Bug#23921: random failure of user_limits.testTatiana A. Nurnberg2008-07-151-0/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mysqltest disconnect/connect-combo could be so quick that connect would hit the server before it had processed the disconnect. Since that resulted in one more concurrent connection than we meant to have, global or per-user max-user-connections could be exceeded. This could lead to "random" failures in tests that set those limits. client/mysqltest.c: Retry max-connect-retries times if connect in connect_n_handle_errors() unexpectedly fails on connection-limit as this could be a race. Break out code that checks for expected --errors into its own function. mysql-test/r/mysqltest.result: show that we throw a warning if test expects a SQL-state from a command (diff_files, ...) that clearly can't produce one. mysql-test/t/disabled.def: re-enable user_limits mysql-test/t/mysqltest.test: show that we throw a warning if test expects a SQL-state from a command (diff_files, ...) that clearly can't produce one.
* | | MergeMagnus Svensson2008-08-041-2/+18
|\ \ \
| * | | Bug #38181 Please print more debug info when tests failMagnus Svensson2008-08-041-2/+18
| |/ /
* | | Bug #32307 mysqltest - does not detect illegal if syntaxMagnus Svensson2008-08-041-0/+20
|/ /
* | Bug #36041: mysql-test-run doesn't seem to string match unknown2008-04-291-0/+7
|/ | | | | | | | | | | | | | | | | | | | | 100% effectively on Windows The mysqltest docs state that the 'replace_result' command doesn't perform any escape processing. However the current implementation was processing backslash escapes in the from/to strings. This prevents replacing e.g. patch on windows (where backslash is used as a path separator). Fixed by removing the backslash escape processing from 'replace_result'. client/mysqltest.c: Bug #36041: remove the escape processing from --replace_result mysql-test/r/mysqltest.result: Bug #36041: test case mysql-test/t/mysqltest.test: Bug #36041: test case
* Bug#31004 mysqltest needs a --mkdir commandunknown2007-11-011-0/+22
| | | | | | | | | | | | | | - Add new mysqltest command "mkdir" and "rmdir" client/CMakeLists.txt: Build mysys/my_mkdir.c with mysqltest client/Makefile.am: Build mysys/my_mkdir.c with mysqltest client/mysqltest.c: Add new mysqltest commands "mkdir" and "rmdir" mysql-test/t/mysqltest.test: Add tests for "mkdir" and ""rmdir"
* Backport mysqltests "change_user" commandunknown2007-10-311-0/+19
|
* Update test case to allow the .reject file to be in either var/log or r/unknown2007-10-051-0/+3
|
* Improve error messagesunknown2007-08-131-2/+15
| | | | | | | | | | | | | | | | | Write test results to var/log Add test for "source" and variable expansion client/mysqltest.c: Improve error messages Write .reject file to the location specified by --logdir mysql-test/mysql-test-run.pl: Pass logdir to mysqltest, to get test results written to var/log mysql-test/r/mysqltest.result: Update test results mysql-test/t/mysqltest.test: Add test for "source" and variable expansion Update test after writing result in var/log
* Merge 192.168.0.7:mysql/mysql-5.0-maintunknown2007-08-081-1/+1
|\ | | | | | | | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint client/mysqltest.c: Auto merged mysql-test/t/mysqltest.test: Auto merged
| * Don't require a space between "if" and "(". This shouldunknown2007-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | also fix "while" and "connect" It's now possible to write "if(" client/mysqltest.c: Don't require a space between for example "if" and "(". This should also fix "while" and "connect" mysql-test/t/mysqltest.test: Remove space between if and ( to check it works
* | Merge 192.168.0.7:mysql/mysql-5.0-maintunknown2007-08-081-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint client/mysqltest.c: Auto merged mysql-test/t/mysqltest.test: Auto merged mysql-test/r/mysqltest.result: SCCS merged
| * Remove extra newline added to files created by write_file and append_fileunknown2007-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | client/mysqltest.c: - Remove the extra newline first in the file produced by write_file and append_file - Add check for too many arguments passed to 'check_command_args' mysql-test/r/mysqltest.result: Update test result mysql-test/t/mysqltest.test: Add test to check that no extra newline is created
* | Merge 192.168.0.7:mysql/mysql-5.0-maintunknown2007-08-071-16/+18
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint client/mysqltest.c: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/r/mysqltest.result: Auto merged mysql-test/r/sp.result: Auto merged mysql-test/t/mysqltest.test: Auto merged mysql-test/t/sp.test: Auto merged
| * Remove NOT_YET codeunknown2007-08-061-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update comments Add more tests for "let from query" client/mysqltest.c: Remove NOT_YET code Update comments mysql-test/r/mysqltest.result: Add more tests for "let from query" mysql-test/t/mysqltest.test: Add more tests for "let from query"
* | Bug#20037 mysqltest requires cygwin on windows(part 1, new mysqltest commands)unknown2007-08-071-0/+20
|/ | | | | | | | | | | | | | | | | | | | | | | | | - Update comments - Make "write_file" fail if file already exist - Remove temporary files created by test cases client/mysqltest.c: Improve function comments Make write_file fail if file already exist mysql-test/r/mysqltest.result: Update test result after adding new test and updating description of argumements to chmod mysql-test/t/bootstrap.test: Remove temporary file created by testcase mysql-test/t/mysql.test: Remove temporary file created by testcase mysql-test/t/mysqladmin.test: Remove temporary file created by testcase mysql-test/t/mysqltest.test: Remove temporary file created by testcase Add test to show that "write_file" fails if file already exist mysql-test/t/sp-destruct.test: Remove temporary file created by testcase
* WL#3935 Improve mysqltest report and exitcode for diffunknown2007-08-031-4/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move the code to generate test report to the test tool(in this case mysqltest) where the best control of what failed is - Simplify the code in mysql-test-run.pl - mysqltest will now find what diff to use in a best effort attempt using "diff -u", "diff -c" and finally dumping the two files verbatim in the report. client/mysqltest.c: - Add new option --tail-lines indicating how many lines of the result to output when generating report for a failure - Remove eval_result, noone knows what it should do and it's not used. - Add support for best effort execution of systems builtin "diff", try with "diff -u" and "diff -c" and if that fails dump the whole content of teh two files to report - Use one common function when comapring two files, used when test has completed and the result should be compared to the .result file as well as using it from myqltest's builtin diff_files command. - Output the last lines og the result so far in the report that mysqltest generates in case of a test failure. mysql-test/lib/mtr_report.pl: - Remove code for generating diff between .reject and .result file, that is handled by mysqltest(or the test tool) from now on. - Add better comments mysql-test/mysql-test-run.pl: - Remove the --udiff flag to mysql-test-run.pl, if the systems diff supports unified diff it will be used automatically - Remove the code for "mtr_show_failed_diff", the report from mysqltest will know include the diff so if mysqltest(or another test tool) fails, just display it's report what went wrong - Pass --tail-lines=20 to mysqltest to it will shos the last 20 lines from the result in the report in case of failure. mysql-test/r/mysqltest.result: Update result file now when the output from mysqltest has been sent to /dev/null mysql-test/t/mysqltest.test: - Improve tests for --diff_files - Remove temporary files in var/tmp generated in the fly - Send output from test for --diff_files to /deb/null since only the error code it returns are of interest and tyhe outpu may vary depending on what builtin diff is being used.
* Minor fixes for test failures and compiler warnings for Bug #29579.unknown2007-07-131-1/+1
| | | | | | | | | | | | | BitKeeper/deleted/.del-ssl_big.test: Delete: mysql-test/t/ssl_big.test extra/yassl/include/yassl_int.hpp: added comment extra/yassl/src/yassl_int.cpp: Changed init order to fix a compiler warning. mysql-test/r/mysqltest.result: There is no limit to connections anymore. mysql-test/t/mysqltest.test: There is no limit to connections anymore.
* Merge bk-internal:/home/bk/mysql-5.0-maintunknown2007-06-191-0/+4
|\ | | | | | | | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/mysql-5.0-maint mysql-test/mysql-test-run.pl: Auto merged mysql-test/t/mysqltest.test: Auto merged
| * Merge pilot.(none):/data/msvensson/mysql/wl3232/my41-wl3232unknown2007-06-191-0/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | into pilot.(none):/data/msvensson/mysql/wl3232/my50-wl3232 mysql-test/r/mysqltest.result: Auto merged mysql-test/t/mysqltest.test: Auto merged
| | * WL#3232 mysqltest, enable --source $variables/<remaining_path_to_file>unknown2007-06-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add test case for this already existing feature mysql-test/r/mysqltest.result: Update result file mysql-test/t/mysqltest.test: Add test case for this feature
* | | Merge trift2.:/MySQL/M50/mysql-5.0unknown2007-06-061-0/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into trift2.:/MySQL/M50/push-5.0 CMakeLists.txt: Auto merged mysql-test/mysql-test-run.pl: Auto merged mysql-test/t/ctype_cp932_binlog.test: Auto merged mysql-test/t/mysqltest.test: Auto merged
| * | Merge trift2.:/MySQL/M50/mysql-5.0unknown2007-06-041-9/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into trift2.:/MySQL/M50/push-5.0 mysql-test/mysql-test-run.pl: Auto merged mysql-test/t/mysqltest.test: Auto merged