You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5006 lines
137 KiB

Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Always test ssl and compress - Updated after review client/mysqltest.c: Updated after review. Fix "connect" command to take SSL and/or COMPRESS as options instead of enable/disable_ssl and enable/disable_compress Commented do_connect, added test cases etc. Fix safe_get_param to make it possible to call it once for every argument without having any checks inbetween. Make a copy for query->first_argument since safe_get_param will modify query string. Now connect works inside a while loop as well. mysql-test/mysql-test-run.pl: Updated after review mysql-test/r/connect.result: Enable test that was previolsy disabled because of "no error handling" in connect mysql-test/r/mysqltest.result: Added tests for "connect" mysql-test/t/compress.test: Updated after review, use the option argument to connect mysql-test/t/connect.test: Enable test that was previolsy disabled because of "no error handling" in connect Now it's possible to use "--error" before connect, so let's use it. mysql-test/t/information_schema.test: Connection user4 was already used mysql-test/t/myisam.test: Disconnect con1 so the name can be reused mysql-test/t/mysqltest.test: Added tests for "connect" mysql-test/t/openssl_1.test: Updated after review, use the option argument to connect mysql-test/t/sp-security.test: Disconnect user1 connection so the name can be reused mysql-test/t/ssl.test: Updated after review, use the option argument to connect mysql-test/t/ssl_compress.test: Updated after review, use the option argument to connect sql/mysqld.cc: Updated after review, Compression variable is always available sql/sql_show.cc: Updated after review, Compression variable is always available sql/structs.h: Updated after review, Compression variable is always available
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Partial fix for BUG#14106: IM: im_life_cycle and im_utils tests fail on FreeBSD. The patch contains of the following: - make Instance Manager, running in the daemon mode, dump the pid of angel-process in the special file; - default value of angel-pid-file-name is 'mysqlmanager.angel.pid'; - if ordinary (IM) pid-file-name is specified in the configuration, angel-pid-file-name is updated according to the following rule: extension of the basename of pid-file-name is replaced by '.angel.pid. For example: - pid-file-name: /tmp/im.pid => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/im.txt => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/5.0/im => angel-pid-file-name: /tmp/5.0/im.angel.pid - add support for configuration option to customize angel pid file name; - fix test suite to use angel pid to kill Instance Manager by all means if something went wrong. Background ---------- The problem is that on some OSes (FreeBSD for one) Instance Manager does not get SIGTERM, so can not shutdown gracefully. Test suite wasn't able to cope with it, so this leads to the mess in test results. The problem should be split into two: - fix signal handling; - fix test suite. This patch fixes test suite so that it will be able to kill uncooperative Instance Manager. In order to achieve this, test suite needs to know PID of IM Angel process. mysql-test/lib/mtr_process.pl: Added a function to send a signal to a process. mysql-test/mysql-test-run.pl: Changed procedure of stopping Instance Manager. 1. Try to stop IM normally (by sending SIGTERM); 2. If one of IM-related processes is still alive, kill them all by SIGKILL and complain in the log. server-tools/instance-manager/manager.cc: Made create_pid_file() available for the whole project. server-tools/instance-manager/manager.h: Made create_pid_file() available for the whole project. server-tools/instance-manager/mysqlmanager.cc: Dump PID of angel process into file. server-tools/instance-manager/options.cc: Added an option to allow to customize angel pid file name. server-tools/instance-manager/options.h: Added an option to allow to customize angel pid file name.
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Remove compiler warnings (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #) BitKeeper/etc/ignore: added mysql-test/r/*.warnings BUILD/SETUP.sh: Don't build with BDB as default client/client_priv.h: Added OPT_DEBUG_INFO client/mysqlbinlog.cc: Fixed compiler warning client/mysqldump.c: Removed compiler warnings Added option --debug-info to detect memory leaks Fixed memory leak Don't backup cluster replication tables (if used with 5.1) cmd-line-utils/readline/bind.c: Fixed compiler warning cmd-line-utils/readline/chardefs.h: Fixed compiler warning cmd-line-utils/readline/complete.c: Fixed compiler warning cmd-line-utils/readline/display.c: Fixed compiler warning cmd-line-utils/readline/histexpand.c: Fixed compiler warning cmd-line-utils/readline/input.c: Fixed compiler warning cmd-line-utils/readline/isearch.c: Fixed compiler warning cmd-line-utils/readline/kill.c: Fixed compiler warning cmd-line-utils/readline/macro.c: Fixed compiler warning cmd-line-utils/readline/misc.c: Fixed compiler warning cmd-line-utils/readline/nls.c: Fixed compiler warning cmd-line-utils/readline/readline.c: Fixed compiler warning cmd-line-utils/readline/rltty.c: Fixed compiler warning cmd-line-utils/readline/search.c: Fixed compiler warning cmd-line-utils/readline/terminal.c: Fixed compiler warning cmd-line-utils/readline/text.c: Fixed compiler warning cmd-line-utils/readline/tilde.c: Fixed compiler warning cmd-line-utils/readline/undo.c: Fixed compiler warning cmd-line-utils/readline/util.c: Fixed compiler warning cmd-line-utils/readline/vi_mode.c: Fixed compiler warning dbug/dbug_analyze.c: Fixed compiler warning extra/yassl/src/ssl.cpp: Fixed compiler warning extra/yassl/testsuite/testsuite.cpp: Fixed compiler warning heap/_check.c: Fixed compiler warning heap/hp_delete.c: Fixed compiler warning heap/hp_hash.c: Fixed compiler warning heap/hp_open.c: Fixed compiler warning heap/hp_rkey.c: Fixed compiler warning heap/hp_rrnd.c: Fixed compiler warning heap/hp_write.c: Fixed compiler warning libmysql/libmysql.c: Fixed compiler warning libmysqld/libmysqld.c: Fixed compiler warning myisam/mi_close.c: Fixed compiler warning myisam/mi_delete.c: Fixed compiler warning myisam/mi_dynrec.c: Fixed compiler warning myisam/mi_keycache.c: Fixed compiler warning myisam/mi_page.c: Fixed compiler warning myisam/mi_statrec.c: Fixed compiler warning myisam/mi_test2.c: Fixed compiler warning myisam/mi_write.c: Fixed compiler warning myisam/myisampack.c: Fixed compiler warning myisammrg/myrg_extra.c: Fixed compiler warning mysql-test/mysql-test-run.pl: Remove .reject, .progress, .log and .warnings flag at start cluster -> mysql database (for 5.1) mysql-test/include/federated.inc: Remove mysqltest warnings mysql-test/include/sp-vars.inc: Remove mysqltest warnings mysql-test/mysql-test-run.sh: Fix so that 'make test' works again Remove .reject, .progress .log and .warnings files at startup mysql-test/r/ctype_cp1250_ch.result: Drop used tables at startup mysql-test/t/create.test: Remove mysqltest warnings mysql-test/t/csv.test: Remove mysqltest warnings mysql-test/t/ctype_collate.test: Remove mysqltest warnings mysql-test/t/ctype_cp1250_ch.test: Drop used tables at startup mysql-test/t/ctype_ucs.test: Remove mysqltest warnings mysql-test/t/func_sapdb.test: Remove mysqltest warnings mysql-test/t/func_str.test: Remove mysqltest warnings mysql-test/t/grant.test: Remove mysqltest warnings mysql-test/t/greedy_optimizer.test: Remove mysqltest warnings mysql-test/t/group_min_max.test: Remove mysqltest warnings mysql-test/t/innodb.test: Remove mysqltest warnings mysql-test/t/join.test: Remove mysqltest warnings mysql-test/t/limit.test: Remove mysqltest warnings mysql-test/t/null.test: Remove mysqltest warnings mysql-test/t/select.test: Remove mysqltest warnings mysql-test/t/sp-prelocking.test: Remove mysqltest warnings mysql-test/t/strict.test: Remove mysqltest warnings mysql-test/t/subselect.test: Remove mysqltest warnings mysql-test/t/type_newdecimal.test: Remove mysqltest warnings mysql-test/t/view_grant.test: Remove mysqltest warnings mysys/default.c: Fixed compiler warning mysys/hash.c: Fixed compiler warning mysys/list.c: Fixed compiler warning mysys/mf_iocache.c: Fixed compiler warning mysys/mf_keycache.c: Fixed compiler warning mysys/mf_keycaches.c: Fixed compiler warning mysys/my_alloc.c: Fixed compiler warning mysys/my_dup.c: Fixed compiler warning mysys/my_fopen.c: Fixed compiler warning mysys/my_fstream.c: Fixed compiler warning mysys/my_getwd.c: Fixed compiler warning mysys/my_handler.c: Fixed compiler warning Added missing enums in switch mysys/my_lib.c: Fixed compiler warning mysys/my_lread.c: Fixed compiler warning mysys/my_lwrite.c: Fixed compiler warning mysys/my_malloc.c: Fixed compiler warning mysys/my_pread.c: Fixed compiler warning mysys/my_read.c: Fixed compiler warning mysys/my_realloc.c: Fixed compiler warning mysys/my_seek.c: Fixed compiler warning mysys/my_write.c: Fixed compiler warning mysys/safemalloc.c: Fixed compiler warning mysys/thr_lock.c: Fixed compiler warning mysys/tree.c: Fixed compiler warning mysys/typelib.c: Fixed compiler warning ndb/include/logger/LogHandler.hpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/include/ndb_global.h.in: Added LINT_SET_PTR macro to be able to remove some compiler warnings ndb/include/util/InputStream.hpp: Fixed compiler warning ndb/include/util/OutputStream.hpp: Fixed compiler warning ndb/include/util/SimpleProperties.hpp: Fixed compiler warning ndb/src/common/debugger/EventLogger.cpp: remove if on 'signal' as this is a function pointer and is always true ndb/src/common/debugger/signaldata/BackupSignalData.cpp: Add missing enums ndb/src/common/logger/LogHandler.cpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/src/common/portlib/NdbMutex.c: Fixed compiler warning ndb/src/common/portlib/NdbThread.c: Fixed compiler warning ndb/src/common/transporter/Transporter.cpp: Swapped arguments to remove compiler warnings ndb/src/cw/cpcd/CPCD.hpp: Fixed compiler warning ndb/src/kernel/blocks/backup/Backup.cpp: Fixed compiler warning ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: Fixed compiler warning ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Added missing enums ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.hpp: Fixed compiler warning ndb/src/kernel/error/ndbd_exit_codes.c: Fixed compiler warning ndb/src/kernel/vm/TransporterCallback.cpp: Fixed compiler warning ndb/src/mgmapi/mgmapi.cpp: Fixed compiler warning ndb/src/mgmclient/CommandInterpreter.cpp: Fixed compiler warning ndb/src/mgmsrv/MgmtSrvr.cpp: Fixed compiler warning ndb/src/mgmsrv/Services.cpp: Fixed compiler warning ndb/src/ndbapi/ClusterMgr.cpp: Fixed compiler warning ndb/src/ndbapi/DictCache.cpp: Fixed compiler warning ndb/src/ndbapi/Ndb.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationDefine.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationExec.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationInt.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationSearch.cpp: Fixed compiler warning ndb/src/ndbapi/NdbTransaction.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbif.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbinit.cpp: Fixed compiler warning ndb/src/ndbapi/ndb_cluster_connection.cpp: Fixed compiler warning ndb/tools/drop_index.cpp: Fixed compiler warning ndb/tools/drop_tab.cpp: Fixed compiler warning ndb/tools/ndb_config.cpp: Fixed compiler warning regex/regexec.c: Fixed compiler warning server-tools/instance-manager/mysql_connection.cc: Fixed compiler warning sql/Makefile.am: Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse sql/filesort.cc: Fixed compiler warning sql/ha_archive.cc: Fixed compiler warning sql/ha_federated.cc: Fixed compiler warning sql/ha_federated.h: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/handler.cc: Fixed compiler warning sql/item_cmpfunc.cc: Fixed compiler warning sql/item_subselect.cc: Fixed compiler warning sql/item_timefunc.cc: Fixed compiler warning sql/log_event.cc: Fixed compiler warning sql/mysqld.cc: Fixed compiler warning sql/net_serv.cc: Fixed compiler warning sql/opt_range.cc: Fixed compiler warning Formated DBUG statements to be as rest of code sql/slave.cc: Fixed compiler warning sql/sql_acl.cc: Fixed compiler warning sql/sql_cache.cc: Fixed compiler warning Fixed bug in query cache when used with DBUG traceing sql/sql_class.cc: Fixed compiler warning sql/sql_class.h: Fixed compiler warning sql/sql_delete.cc: Fixed compiler warning sql/sql_parse.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_prepare.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_repl.cc: Fixed compiler warning sql/sql_select.cc: Fixed compiler warning sql/sql_update.cc: Fixed compiler warning sql/sql_view.cc: Fixed compiler warning sql/strfunc.cc: Fixed compiler warning sql-common/client.c: Fixed compiler warning sql-common/my_time.c: Fixed compiler warning sql/table.cc: Fixed compiler warning sql/tztime.cc: Fixed compiler warning sql/unireg.cc: Fixed compiler warning strings/decimal.c: Fixed compiler warning tests/mysql_client_test.c: Fixed compiler warning vio/viosocket.c: Fixed compiler warning vio/viossl.c: Fixed compiler warning vio/viosslfactories.c: Fixed compiler warning
19 years ago
Remove compiler warnings (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #) BitKeeper/etc/ignore: added mysql-test/r/*.warnings BUILD/SETUP.sh: Don't build with BDB as default client/client_priv.h: Added OPT_DEBUG_INFO client/mysqlbinlog.cc: Fixed compiler warning client/mysqldump.c: Removed compiler warnings Added option --debug-info to detect memory leaks Fixed memory leak Don't backup cluster replication tables (if used with 5.1) cmd-line-utils/readline/bind.c: Fixed compiler warning cmd-line-utils/readline/chardefs.h: Fixed compiler warning cmd-line-utils/readline/complete.c: Fixed compiler warning cmd-line-utils/readline/display.c: Fixed compiler warning cmd-line-utils/readline/histexpand.c: Fixed compiler warning cmd-line-utils/readline/input.c: Fixed compiler warning cmd-line-utils/readline/isearch.c: Fixed compiler warning cmd-line-utils/readline/kill.c: Fixed compiler warning cmd-line-utils/readline/macro.c: Fixed compiler warning cmd-line-utils/readline/misc.c: Fixed compiler warning cmd-line-utils/readline/nls.c: Fixed compiler warning cmd-line-utils/readline/readline.c: Fixed compiler warning cmd-line-utils/readline/rltty.c: Fixed compiler warning cmd-line-utils/readline/search.c: Fixed compiler warning cmd-line-utils/readline/terminal.c: Fixed compiler warning cmd-line-utils/readline/text.c: Fixed compiler warning cmd-line-utils/readline/tilde.c: Fixed compiler warning cmd-line-utils/readline/undo.c: Fixed compiler warning cmd-line-utils/readline/util.c: Fixed compiler warning cmd-line-utils/readline/vi_mode.c: Fixed compiler warning dbug/dbug_analyze.c: Fixed compiler warning extra/yassl/src/ssl.cpp: Fixed compiler warning extra/yassl/testsuite/testsuite.cpp: Fixed compiler warning heap/_check.c: Fixed compiler warning heap/hp_delete.c: Fixed compiler warning heap/hp_hash.c: Fixed compiler warning heap/hp_open.c: Fixed compiler warning heap/hp_rkey.c: Fixed compiler warning heap/hp_rrnd.c: Fixed compiler warning heap/hp_write.c: Fixed compiler warning libmysql/libmysql.c: Fixed compiler warning libmysqld/libmysqld.c: Fixed compiler warning myisam/mi_close.c: Fixed compiler warning myisam/mi_delete.c: Fixed compiler warning myisam/mi_dynrec.c: Fixed compiler warning myisam/mi_keycache.c: Fixed compiler warning myisam/mi_page.c: Fixed compiler warning myisam/mi_statrec.c: Fixed compiler warning myisam/mi_test2.c: Fixed compiler warning myisam/mi_write.c: Fixed compiler warning myisam/myisampack.c: Fixed compiler warning myisammrg/myrg_extra.c: Fixed compiler warning mysql-test/mysql-test-run.pl: Remove .reject, .progress, .log and .warnings flag at start cluster -> mysql database (for 5.1) mysql-test/include/federated.inc: Remove mysqltest warnings mysql-test/include/sp-vars.inc: Remove mysqltest warnings mysql-test/mysql-test-run.sh: Fix so that 'make test' works again Remove .reject, .progress .log and .warnings files at startup mysql-test/r/ctype_cp1250_ch.result: Drop used tables at startup mysql-test/t/create.test: Remove mysqltest warnings mysql-test/t/csv.test: Remove mysqltest warnings mysql-test/t/ctype_collate.test: Remove mysqltest warnings mysql-test/t/ctype_cp1250_ch.test: Drop used tables at startup mysql-test/t/ctype_ucs.test: Remove mysqltest warnings mysql-test/t/func_sapdb.test: Remove mysqltest warnings mysql-test/t/func_str.test: Remove mysqltest warnings mysql-test/t/grant.test: Remove mysqltest warnings mysql-test/t/greedy_optimizer.test: Remove mysqltest warnings mysql-test/t/group_min_max.test: Remove mysqltest warnings mysql-test/t/innodb.test: Remove mysqltest warnings mysql-test/t/join.test: Remove mysqltest warnings mysql-test/t/limit.test: Remove mysqltest warnings mysql-test/t/null.test: Remove mysqltest warnings mysql-test/t/select.test: Remove mysqltest warnings mysql-test/t/sp-prelocking.test: Remove mysqltest warnings mysql-test/t/strict.test: Remove mysqltest warnings mysql-test/t/subselect.test: Remove mysqltest warnings mysql-test/t/type_newdecimal.test: Remove mysqltest warnings mysql-test/t/view_grant.test: Remove mysqltest warnings mysys/default.c: Fixed compiler warning mysys/hash.c: Fixed compiler warning mysys/list.c: Fixed compiler warning mysys/mf_iocache.c: Fixed compiler warning mysys/mf_keycache.c: Fixed compiler warning mysys/mf_keycaches.c: Fixed compiler warning mysys/my_alloc.c: Fixed compiler warning mysys/my_dup.c: Fixed compiler warning mysys/my_fopen.c: Fixed compiler warning mysys/my_fstream.c: Fixed compiler warning mysys/my_getwd.c: Fixed compiler warning mysys/my_handler.c: Fixed compiler warning Added missing enums in switch mysys/my_lib.c: Fixed compiler warning mysys/my_lread.c: Fixed compiler warning mysys/my_lwrite.c: Fixed compiler warning mysys/my_malloc.c: Fixed compiler warning mysys/my_pread.c: Fixed compiler warning mysys/my_read.c: Fixed compiler warning mysys/my_realloc.c: Fixed compiler warning mysys/my_seek.c: Fixed compiler warning mysys/my_write.c: Fixed compiler warning mysys/safemalloc.c: Fixed compiler warning mysys/thr_lock.c: Fixed compiler warning mysys/tree.c: Fixed compiler warning mysys/typelib.c: Fixed compiler warning ndb/include/logger/LogHandler.hpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/include/ndb_global.h.in: Added LINT_SET_PTR macro to be able to remove some compiler warnings ndb/include/util/InputStream.hpp: Fixed compiler warning ndb/include/util/OutputStream.hpp: Fixed compiler warning ndb/include/util/SimpleProperties.hpp: Fixed compiler warning ndb/src/common/debugger/EventLogger.cpp: remove if on 'signal' as this is a function pointer and is always true ndb/src/common/debugger/signaldata/BackupSignalData.cpp: Add missing enums ndb/src/common/logger/LogHandler.cpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/src/common/portlib/NdbMutex.c: Fixed compiler warning ndb/src/common/portlib/NdbThread.c: Fixed compiler warning ndb/src/common/transporter/Transporter.cpp: Swapped arguments to remove compiler warnings ndb/src/cw/cpcd/CPCD.hpp: Fixed compiler warning ndb/src/kernel/blocks/backup/Backup.cpp: Fixed compiler warning ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: Fixed compiler warning ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Added missing enums ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.hpp: Fixed compiler warning ndb/src/kernel/error/ndbd_exit_codes.c: Fixed compiler warning ndb/src/kernel/vm/TransporterCallback.cpp: Fixed compiler warning ndb/src/mgmapi/mgmapi.cpp: Fixed compiler warning ndb/src/mgmclient/CommandInterpreter.cpp: Fixed compiler warning ndb/src/mgmsrv/MgmtSrvr.cpp: Fixed compiler warning ndb/src/mgmsrv/Services.cpp: Fixed compiler warning ndb/src/ndbapi/ClusterMgr.cpp: Fixed compiler warning ndb/src/ndbapi/DictCache.cpp: Fixed compiler warning ndb/src/ndbapi/Ndb.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationDefine.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationExec.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationInt.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationSearch.cpp: Fixed compiler warning ndb/src/ndbapi/NdbTransaction.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbif.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbinit.cpp: Fixed compiler warning ndb/src/ndbapi/ndb_cluster_connection.cpp: Fixed compiler warning ndb/tools/drop_index.cpp: Fixed compiler warning ndb/tools/drop_tab.cpp: Fixed compiler warning ndb/tools/ndb_config.cpp: Fixed compiler warning regex/regexec.c: Fixed compiler warning server-tools/instance-manager/mysql_connection.cc: Fixed compiler warning sql/Makefile.am: Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse sql/filesort.cc: Fixed compiler warning sql/ha_archive.cc: Fixed compiler warning sql/ha_federated.cc: Fixed compiler warning sql/ha_federated.h: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/handler.cc: Fixed compiler warning sql/item_cmpfunc.cc: Fixed compiler warning sql/item_subselect.cc: Fixed compiler warning sql/item_timefunc.cc: Fixed compiler warning sql/log_event.cc: Fixed compiler warning sql/mysqld.cc: Fixed compiler warning sql/net_serv.cc: Fixed compiler warning sql/opt_range.cc: Fixed compiler warning Formated DBUG statements to be as rest of code sql/slave.cc: Fixed compiler warning sql/sql_acl.cc: Fixed compiler warning sql/sql_cache.cc: Fixed compiler warning Fixed bug in query cache when used with DBUG traceing sql/sql_class.cc: Fixed compiler warning sql/sql_class.h: Fixed compiler warning sql/sql_delete.cc: Fixed compiler warning sql/sql_parse.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_prepare.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_repl.cc: Fixed compiler warning sql/sql_select.cc: Fixed compiler warning sql/sql_update.cc: Fixed compiler warning sql/sql_view.cc: Fixed compiler warning sql/strfunc.cc: Fixed compiler warning sql-common/client.c: Fixed compiler warning sql-common/my_time.c: Fixed compiler warning sql/table.cc: Fixed compiler warning sql/tztime.cc: Fixed compiler warning sql/unireg.cc: Fixed compiler warning strings/decimal.c: Fixed compiler warning tests/mysql_client_test.c: Fixed compiler warning vio/viosocket.c: Fixed compiler warning vio/viossl.c: Fixed compiler warning vio/viosslfactories.c: Fixed compiler warning
19 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Remove compiler warnings (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #) BitKeeper/etc/ignore: added mysql-test/r/*.warnings BUILD/SETUP.sh: Don't build with BDB as default client/client_priv.h: Added OPT_DEBUG_INFO client/mysqlbinlog.cc: Fixed compiler warning client/mysqldump.c: Removed compiler warnings Added option --debug-info to detect memory leaks Fixed memory leak Don't backup cluster replication tables (if used with 5.1) cmd-line-utils/readline/bind.c: Fixed compiler warning cmd-line-utils/readline/chardefs.h: Fixed compiler warning cmd-line-utils/readline/complete.c: Fixed compiler warning cmd-line-utils/readline/display.c: Fixed compiler warning cmd-line-utils/readline/histexpand.c: Fixed compiler warning cmd-line-utils/readline/input.c: Fixed compiler warning cmd-line-utils/readline/isearch.c: Fixed compiler warning cmd-line-utils/readline/kill.c: Fixed compiler warning cmd-line-utils/readline/macro.c: Fixed compiler warning cmd-line-utils/readline/misc.c: Fixed compiler warning cmd-line-utils/readline/nls.c: Fixed compiler warning cmd-line-utils/readline/readline.c: Fixed compiler warning cmd-line-utils/readline/rltty.c: Fixed compiler warning cmd-line-utils/readline/search.c: Fixed compiler warning cmd-line-utils/readline/terminal.c: Fixed compiler warning cmd-line-utils/readline/text.c: Fixed compiler warning cmd-line-utils/readline/tilde.c: Fixed compiler warning cmd-line-utils/readline/undo.c: Fixed compiler warning cmd-line-utils/readline/util.c: Fixed compiler warning cmd-line-utils/readline/vi_mode.c: Fixed compiler warning dbug/dbug_analyze.c: Fixed compiler warning extra/yassl/src/ssl.cpp: Fixed compiler warning extra/yassl/testsuite/testsuite.cpp: Fixed compiler warning heap/_check.c: Fixed compiler warning heap/hp_delete.c: Fixed compiler warning heap/hp_hash.c: Fixed compiler warning heap/hp_open.c: Fixed compiler warning heap/hp_rkey.c: Fixed compiler warning heap/hp_rrnd.c: Fixed compiler warning heap/hp_write.c: Fixed compiler warning libmysql/libmysql.c: Fixed compiler warning libmysqld/libmysqld.c: Fixed compiler warning myisam/mi_close.c: Fixed compiler warning myisam/mi_delete.c: Fixed compiler warning myisam/mi_dynrec.c: Fixed compiler warning myisam/mi_keycache.c: Fixed compiler warning myisam/mi_page.c: Fixed compiler warning myisam/mi_statrec.c: Fixed compiler warning myisam/mi_test2.c: Fixed compiler warning myisam/mi_write.c: Fixed compiler warning myisam/myisampack.c: Fixed compiler warning myisammrg/myrg_extra.c: Fixed compiler warning mysql-test/mysql-test-run.pl: Remove .reject, .progress, .log and .warnings flag at start cluster -> mysql database (for 5.1) mysql-test/include/federated.inc: Remove mysqltest warnings mysql-test/include/sp-vars.inc: Remove mysqltest warnings mysql-test/mysql-test-run.sh: Fix so that 'make test' works again Remove .reject, .progress .log and .warnings files at startup mysql-test/r/ctype_cp1250_ch.result: Drop used tables at startup mysql-test/t/create.test: Remove mysqltest warnings mysql-test/t/csv.test: Remove mysqltest warnings mysql-test/t/ctype_collate.test: Remove mysqltest warnings mysql-test/t/ctype_cp1250_ch.test: Drop used tables at startup mysql-test/t/ctype_ucs.test: Remove mysqltest warnings mysql-test/t/func_sapdb.test: Remove mysqltest warnings mysql-test/t/func_str.test: Remove mysqltest warnings mysql-test/t/grant.test: Remove mysqltest warnings mysql-test/t/greedy_optimizer.test: Remove mysqltest warnings mysql-test/t/group_min_max.test: Remove mysqltest warnings mysql-test/t/innodb.test: Remove mysqltest warnings mysql-test/t/join.test: Remove mysqltest warnings mysql-test/t/limit.test: Remove mysqltest warnings mysql-test/t/null.test: Remove mysqltest warnings mysql-test/t/select.test: Remove mysqltest warnings mysql-test/t/sp-prelocking.test: Remove mysqltest warnings mysql-test/t/strict.test: Remove mysqltest warnings mysql-test/t/subselect.test: Remove mysqltest warnings mysql-test/t/type_newdecimal.test: Remove mysqltest warnings mysql-test/t/view_grant.test: Remove mysqltest warnings mysys/default.c: Fixed compiler warning mysys/hash.c: Fixed compiler warning mysys/list.c: Fixed compiler warning mysys/mf_iocache.c: Fixed compiler warning mysys/mf_keycache.c: Fixed compiler warning mysys/mf_keycaches.c: Fixed compiler warning mysys/my_alloc.c: Fixed compiler warning mysys/my_dup.c: Fixed compiler warning mysys/my_fopen.c: Fixed compiler warning mysys/my_fstream.c: Fixed compiler warning mysys/my_getwd.c: Fixed compiler warning mysys/my_handler.c: Fixed compiler warning Added missing enums in switch mysys/my_lib.c: Fixed compiler warning mysys/my_lread.c: Fixed compiler warning mysys/my_lwrite.c: Fixed compiler warning mysys/my_malloc.c: Fixed compiler warning mysys/my_pread.c: Fixed compiler warning mysys/my_read.c: Fixed compiler warning mysys/my_realloc.c: Fixed compiler warning mysys/my_seek.c: Fixed compiler warning mysys/my_write.c: Fixed compiler warning mysys/safemalloc.c: Fixed compiler warning mysys/thr_lock.c: Fixed compiler warning mysys/tree.c: Fixed compiler warning mysys/typelib.c: Fixed compiler warning ndb/include/logger/LogHandler.hpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/include/ndb_global.h.in: Added LINT_SET_PTR macro to be able to remove some compiler warnings ndb/include/util/InputStream.hpp: Fixed compiler warning ndb/include/util/OutputStream.hpp: Fixed compiler warning ndb/include/util/SimpleProperties.hpp: Fixed compiler warning ndb/src/common/debugger/EventLogger.cpp: remove if on 'signal' as this is a function pointer and is always true ndb/src/common/debugger/signaldata/BackupSignalData.cpp: Add missing enums ndb/src/common/logger/LogHandler.cpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/src/common/portlib/NdbMutex.c: Fixed compiler warning ndb/src/common/portlib/NdbThread.c: Fixed compiler warning ndb/src/common/transporter/Transporter.cpp: Swapped arguments to remove compiler warnings ndb/src/cw/cpcd/CPCD.hpp: Fixed compiler warning ndb/src/kernel/blocks/backup/Backup.cpp: Fixed compiler warning ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: Fixed compiler warning ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Added missing enums ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.hpp: Fixed compiler warning ndb/src/kernel/error/ndbd_exit_codes.c: Fixed compiler warning ndb/src/kernel/vm/TransporterCallback.cpp: Fixed compiler warning ndb/src/mgmapi/mgmapi.cpp: Fixed compiler warning ndb/src/mgmclient/CommandInterpreter.cpp: Fixed compiler warning ndb/src/mgmsrv/MgmtSrvr.cpp: Fixed compiler warning ndb/src/mgmsrv/Services.cpp: Fixed compiler warning ndb/src/ndbapi/ClusterMgr.cpp: Fixed compiler warning ndb/src/ndbapi/DictCache.cpp: Fixed compiler warning ndb/src/ndbapi/Ndb.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationDefine.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationExec.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationInt.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationSearch.cpp: Fixed compiler warning ndb/src/ndbapi/NdbTransaction.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbif.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbinit.cpp: Fixed compiler warning ndb/src/ndbapi/ndb_cluster_connection.cpp: Fixed compiler warning ndb/tools/drop_index.cpp: Fixed compiler warning ndb/tools/drop_tab.cpp: Fixed compiler warning ndb/tools/ndb_config.cpp: Fixed compiler warning regex/regexec.c: Fixed compiler warning server-tools/instance-manager/mysql_connection.cc: Fixed compiler warning sql/Makefile.am: Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse sql/filesort.cc: Fixed compiler warning sql/ha_archive.cc: Fixed compiler warning sql/ha_federated.cc: Fixed compiler warning sql/ha_federated.h: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/handler.cc: Fixed compiler warning sql/item_cmpfunc.cc: Fixed compiler warning sql/item_subselect.cc: Fixed compiler warning sql/item_timefunc.cc: Fixed compiler warning sql/log_event.cc: Fixed compiler warning sql/mysqld.cc: Fixed compiler warning sql/net_serv.cc: Fixed compiler warning sql/opt_range.cc: Fixed compiler warning Formated DBUG statements to be as rest of code sql/slave.cc: Fixed compiler warning sql/sql_acl.cc: Fixed compiler warning sql/sql_cache.cc: Fixed compiler warning Fixed bug in query cache when used with DBUG traceing sql/sql_class.cc: Fixed compiler warning sql/sql_class.h: Fixed compiler warning sql/sql_delete.cc: Fixed compiler warning sql/sql_parse.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_prepare.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_repl.cc: Fixed compiler warning sql/sql_select.cc: Fixed compiler warning sql/sql_update.cc: Fixed compiler warning sql/sql_view.cc: Fixed compiler warning sql/strfunc.cc: Fixed compiler warning sql-common/client.c: Fixed compiler warning sql-common/my_time.c: Fixed compiler warning sql/table.cc: Fixed compiler warning sql/tztime.cc: Fixed compiler warning sql/unireg.cc: Fixed compiler warning strings/decimal.c: Fixed compiler warning tests/mysql_client_test.c: Fixed compiler warning vio/viosocket.c: Fixed compiler warning vio/viossl.c: Fixed compiler warning vio/viosslfactories.c: Fixed compiler warning
19 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Preliminary patch for the following bugs: - BUG#15934: Instance manager fails to work; - BUG#18020: IM connect problem; - BUG#18027: IM: Server_ID differs; - BUG#18033: IM: Server_ID not reported; - BUG#21331: Instance Manager: Connect problems in tests; The only test suite has been changed (server codebase has not been modified). BitKeeper/deleted/.del-im_check_os.inc: Rename: mysql-test/include/im_check_os.inc -> BitKeeper/deleted/.del-im_check_os.inc mysql-test/include/im_check_env.inc: Include only this file from all IM-tests. mysql-test/lib/mtr_io.pl: Update mtr_get_pid_from_file() to workaround race, described in BUG#21884. mysql-test/lib/mtr_process.pl: Refactor im_start()/im_stop() so that they will be more reliable. There are the following user-visible changes: - if one of these functions fails, the test suite is aborted; - mtr_im_stop() now determines whether the component is alive or not not only by checking PID, but also by trying to connect to the component; - after starting IM, the test suite waits for it to start accepting client connections and to start all its guarded mysqld instances; - a lot of debug-logs have been added in order to simplify investigation of future failures. mysql-test/mysql-test-run.pl: 1. Get rid of kill_and_cleanup(); 2. Move im_start()/im_stop() to mtr_process.pl; 3. Change default IM port to 9311 so that it does not interfere with default slave port; mysql-test/r/im_daemon_life_cycle.result: Updated result file. mysql-test/r/im_life_cycle.result: Updated result file. mysql-test/r/im_options_set.result: Updated result file. mysql-test/r/im_options_unset.result: Updated result file. mysql-test/r/im_utils.result: Updated result file. mysql-test/t/im_daemon_life_cycle.imtest: Updated IM-test. mysql-test/t/im_life_cycle.imtest: Updated IM-test. mysql-test/t/im_options_set.imtest: Updated IM-test. mysql-test/t/im_options_unset.imtest: Updated IM-test. mysql-test/t/im_utils.imtest: Updated IM-test.
20 years ago
Partial fix for BUG#14106: IM: im_life_cycle and im_utils tests fail on FreeBSD. The patch contains of the following: - make Instance Manager, running in the daemon mode, dump the pid of angel-process in the special file; - default value of angel-pid-file-name is 'mysqlmanager.angel.pid'; - if ordinary (IM) pid-file-name is specified in the configuration, angel-pid-file-name is updated according to the following rule: extension of the basename of pid-file-name is replaced by '.angel.pid. For example: - pid-file-name: /tmp/im.pid => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/im.txt => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/5.0/im => angel-pid-file-name: /tmp/5.0/im.angel.pid - add support for configuration option to customize angel pid file name; - fix test suite to use angel pid to kill Instance Manager by all means if something went wrong. Background ---------- The problem is that on some OSes (FreeBSD for one) Instance Manager does not get SIGTERM, so can not shutdown gracefully. Test suite wasn't able to cope with it, so this leads to the mess in test results. The problem should be split into two: - fix signal handling; - fix test suite. This patch fixes test suite so that it will be able to kill uncooperative Instance Manager. In order to achieve this, test suite needs to know PID of IM Angel process. mysql-test/lib/mtr_process.pl: Added a function to send a signal to a process. mysql-test/mysql-test-run.pl: Changed procedure of stopping Instance Manager. 1. Try to stop IM normally (by sending SIGTERM); 2. If one of IM-related processes is still alive, kill them all by SIGKILL and complain in the log. server-tools/instance-manager/manager.cc: Made create_pid_file() available for the whole project. server-tools/instance-manager/manager.h: Made create_pid_file() available for the whole project. server-tools/instance-manager/mysqlmanager.cc: Dump PID of angel process into file. server-tools/instance-manager/options.cc: Added an option to allow to customize angel pid file name. server-tools/instance-manager/options.h: Added an option to allow to customize angel pid file name.
20 years ago
Partial fix for BUG#14106: IM: im_life_cycle and im_utils tests fail on FreeBSD. The patch contains of the following: - make Instance Manager, running in the daemon mode, dump the pid of angel-process in the special file; - default value of angel-pid-file-name is 'mysqlmanager.angel.pid'; - if ordinary (IM) pid-file-name is specified in the configuration, angel-pid-file-name is updated according to the following rule: extension of the basename of pid-file-name is replaced by '.angel.pid. For example: - pid-file-name: /tmp/im.pid => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/im.txt => angel-pid-file-name: /tmp/im.angel.pid - pid-file-name: /tmp/5.0/im => angel-pid-file-name: /tmp/5.0/im.angel.pid - add support for configuration option to customize angel pid file name; - fix test suite to use angel pid to kill Instance Manager by all means if something went wrong. Background ---------- The problem is that on some OSes (FreeBSD for one) Instance Manager does not get SIGTERM, so can not shutdown gracefully. Test suite wasn't able to cope with it, so this leads to the mess in test results. The problem should be split into two: - fix signal handling; - fix test suite. This patch fixes test suite so that it will be able to kill uncooperative Instance Manager. In order to achieve this, test suite needs to know PID of IM Angel process. mysql-test/lib/mtr_process.pl: Added a function to send a signal to a process. mysql-test/mysql-test-run.pl: Changed procedure of stopping Instance Manager. 1. Try to stop IM normally (by sending SIGTERM); 2. If one of IM-related processes is still alive, kill them all by SIGKILL and complain in the log. server-tools/instance-manager/manager.cc: Made create_pid_file() available for the whole project. server-tools/instance-manager/manager.h: Made create_pid_file() available for the whole project. server-tools/instance-manager/mysqlmanager.cc: Dump PID of angel process into file. server-tools/instance-manager/options.cc: Added an option to allow to customize angel pid file name. server-tools/instance-manager/options.h: Added an option to allow to customize angel pid file name.
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Remove compiler warnings (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #) BitKeeper/etc/ignore: added mysql-test/r/*.warnings BUILD/SETUP.sh: Don't build with BDB as default client/client_priv.h: Added OPT_DEBUG_INFO client/mysqlbinlog.cc: Fixed compiler warning client/mysqldump.c: Removed compiler warnings Added option --debug-info to detect memory leaks Fixed memory leak Don't backup cluster replication tables (if used with 5.1) cmd-line-utils/readline/bind.c: Fixed compiler warning cmd-line-utils/readline/chardefs.h: Fixed compiler warning cmd-line-utils/readline/complete.c: Fixed compiler warning cmd-line-utils/readline/display.c: Fixed compiler warning cmd-line-utils/readline/histexpand.c: Fixed compiler warning cmd-line-utils/readline/input.c: Fixed compiler warning cmd-line-utils/readline/isearch.c: Fixed compiler warning cmd-line-utils/readline/kill.c: Fixed compiler warning cmd-line-utils/readline/macro.c: Fixed compiler warning cmd-line-utils/readline/misc.c: Fixed compiler warning cmd-line-utils/readline/nls.c: Fixed compiler warning cmd-line-utils/readline/readline.c: Fixed compiler warning cmd-line-utils/readline/rltty.c: Fixed compiler warning cmd-line-utils/readline/search.c: Fixed compiler warning cmd-line-utils/readline/terminal.c: Fixed compiler warning cmd-line-utils/readline/text.c: Fixed compiler warning cmd-line-utils/readline/tilde.c: Fixed compiler warning cmd-line-utils/readline/undo.c: Fixed compiler warning cmd-line-utils/readline/util.c: Fixed compiler warning cmd-line-utils/readline/vi_mode.c: Fixed compiler warning dbug/dbug_analyze.c: Fixed compiler warning extra/yassl/src/ssl.cpp: Fixed compiler warning extra/yassl/testsuite/testsuite.cpp: Fixed compiler warning heap/_check.c: Fixed compiler warning heap/hp_delete.c: Fixed compiler warning heap/hp_hash.c: Fixed compiler warning heap/hp_open.c: Fixed compiler warning heap/hp_rkey.c: Fixed compiler warning heap/hp_rrnd.c: Fixed compiler warning heap/hp_write.c: Fixed compiler warning libmysql/libmysql.c: Fixed compiler warning libmysqld/libmysqld.c: Fixed compiler warning myisam/mi_close.c: Fixed compiler warning myisam/mi_delete.c: Fixed compiler warning myisam/mi_dynrec.c: Fixed compiler warning myisam/mi_keycache.c: Fixed compiler warning myisam/mi_page.c: Fixed compiler warning myisam/mi_statrec.c: Fixed compiler warning myisam/mi_test2.c: Fixed compiler warning myisam/mi_write.c: Fixed compiler warning myisam/myisampack.c: Fixed compiler warning myisammrg/myrg_extra.c: Fixed compiler warning mysql-test/mysql-test-run.pl: Remove .reject, .progress, .log and .warnings flag at start cluster -> mysql database (for 5.1) mysql-test/include/federated.inc: Remove mysqltest warnings mysql-test/include/sp-vars.inc: Remove mysqltest warnings mysql-test/mysql-test-run.sh: Fix so that 'make test' works again Remove .reject, .progress .log and .warnings files at startup mysql-test/r/ctype_cp1250_ch.result: Drop used tables at startup mysql-test/t/create.test: Remove mysqltest warnings mysql-test/t/csv.test: Remove mysqltest warnings mysql-test/t/ctype_collate.test: Remove mysqltest warnings mysql-test/t/ctype_cp1250_ch.test: Drop used tables at startup mysql-test/t/ctype_ucs.test: Remove mysqltest warnings mysql-test/t/func_sapdb.test: Remove mysqltest warnings mysql-test/t/func_str.test: Remove mysqltest warnings mysql-test/t/grant.test: Remove mysqltest warnings mysql-test/t/greedy_optimizer.test: Remove mysqltest warnings mysql-test/t/group_min_max.test: Remove mysqltest warnings mysql-test/t/innodb.test: Remove mysqltest warnings mysql-test/t/join.test: Remove mysqltest warnings mysql-test/t/limit.test: Remove mysqltest warnings mysql-test/t/null.test: Remove mysqltest warnings mysql-test/t/select.test: Remove mysqltest warnings mysql-test/t/sp-prelocking.test: Remove mysqltest warnings mysql-test/t/strict.test: Remove mysqltest warnings mysql-test/t/subselect.test: Remove mysqltest warnings mysql-test/t/type_newdecimal.test: Remove mysqltest warnings mysql-test/t/view_grant.test: Remove mysqltest warnings mysys/default.c: Fixed compiler warning mysys/hash.c: Fixed compiler warning mysys/list.c: Fixed compiler warning mysys/mf_iocache.c: Fixed compiler warning mysys/mf_keycache.c: Fixed compiler warning mysys/mf_keycaches.c: Fixed compiler warning mysys/my_alloc.c: Fixed compiler warning mysys/my_dup.c: Fixed compiler warning mysys/my_fopen.c: Fixed compiler warning mysys/my_fstream.c: Fixed compiler warning mysys/my_getwd.c: Fixed compiler warning mysys/my_handler.c: Fixed compiler warning Added missing enums in switch mysys/my_lib.c: Fixed compiler warning mysys/my_lread.c: Fixed compiler warning mysys/my_lwrite.c: Fixed compiler warning mysys/my_malloc.c: Fixed compiler warning mysys/my_pread.c: Fixed compiler warning mysys/my_read.c: Fixed compiler warning mysys/my_realloc.c: Fixed compiler warning mysys/my_seek.c: Fixed compiler warning mysys/my_write.c: Fixed compiler warning mysys/safemalloc.c: Fixed compiler warning mysys/thr_lock.c: Fixed compiler warning mysys/tree.c: Fixed compiler warning mysys/typelib.c: Fixed compiler warning ndb/include/logger/LogHandler.hpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/include/ndb_global.h.in: Added LINT_SET_PTR macro to be able to remove some compiler warnings ndb/include/util/InputStream.hpp: Fixed compiler warning ndb/include/util/OutputStream.hpp: Fixed compiler warning ndb/include/util/SimpleProperties.hpp: Fixed compiler warning ndb/src/common/debugger/EventLogger.cpp: remove if on 'signal' as this is a function pointer and is always true ndb/src/common/debugger/signaldata/BackupSignalData.cpp: Add missing enums ndb/src/common/logger/LogHandler.cpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/src/common/portlib/NdbMutex.c: Fixed compiler warning ndb/src/common/portlib/NdbThread.c: Fixed compiler warning ndb/src/common/transporter/Transporter.cpp: Swapped arguments to remove compiler warnings ndb/src/cw/cpcd/CPCD.hpp: Fixed compiler warning ndb/src/kernel/blocks/backup/Backup.cpp: Fixed compiler warning ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: Fixed compiler warning ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Added missing enums ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.hpp: Fixed compiler warning ndb/src/kernel/error/ndbd_exit_codes.c: Fixed compiler warning ndb/src/kernel/vm/TransporterCallback.cpp: Fixed compiler warning ndb/src/mgmapi/mgmapi.cpp: Fixed compiler warning ndb/src/mgmclient/CommandInterpreter.cpp: Fixed compiler warning ndb/src/mgmsrv/MgmtSrvr.cpp: Fixed compiler warning ndb/src/mgmsrv/Services.cpp: Fixed compiler warning ndb/src/ndbapi/ClusterMgr.cpp: Fixed compiler warning ndb/src/ndbapi/DictCache.cpp: Fixed compiler warning ndb/src/ndbapi/Ndb.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationDefine.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationExec.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationInt.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationSearch.cpp: Fixed compiler warning ndb/src/ndbapi/NdbTransaction.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbif.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbinit.cpp: Fixed compiler warning ndb/src/ndbapi/ndb_cluster_connection.cpp: Fixed compiler warning ndb/tools/drop_index.cpp: Fixed compiler warning ndb/tools/drop_tab.cpp: Fixed compiler warning ndb/tools/ndb_config.cpp: Fixed compiler warning regex/regexec.c: Fixed compiler warning server-tools/instance-manager/mysql_connection.cc: Fixed compiler warning sql/Makefile.am: Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse sql/filesort.cc: Fixed compiler warning sql/ha_archive.cc: Fixed compiler warning sql/ha_federated.cc: Fixed compiler warning sql/ha_federated.h: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/handler.cc: Fixed compiler warning sql/item_cmpfunc.cc: Fixed compiler warning sql/item_subselect.cc: Fixed compiler warning sql/item_timefunc.cc: Fixed compiler warning sql/log_event.cc: Fixed compiler warning sql/mysqld.cc: Fixed compiler warning sql/net_serv.cc: Fixed compiler warning sql/opt_range.cc: Fixed compiler warning Formated DBUG statements to be as rest of code sql/slave.cc: Fixed compiler warning sql/sql_acl.cc: Fixed compiler warning sql/sql_cache.cc: Fixed compiler warning Fixed bug in query cache when used with DBUG traceing sql/sql_class.cc: Fixed compiler warning sql/sql_class.h: Fixed compiler warning sql/sql_delete.cc: Fixed compiler warning sql/sql_parse.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_prepare.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_repl.cc: Fixed compiler warning sql/sql_select.cc: Fixed compiler warning sql/sql_update.cc: Fixed compiler warning sql/sql_view.cc: Fixed compiler warning sql/strfunc.cc: Fixed compiler warning sql-common/client.c: Fixed compiler warning sql-common/my_time.c: Fixed compiler warning sql/table.cc: Fixed compiler warning sql/tztime.cc: Fixed compiler warning sql/unireg.cc: Fixed compiler warning strings/decimal.c: Fixed compiler warning tests/mysql_client_test.c: Fixed compiler warning vio/viosocket.c: Fixed compiler warning vio/viossl.c: Fixed compiler warning vio/viosslfactories.c: Fixed compiler warning
19 years ago
Remove compiler warnings (Mostly in DBUG_PRINT() and unused arguments) Fixed bug in query cache when used with traceing (--with-debug) Fixed memory leak in mysqldump Removed warnings from mysqltest scripts (replaced -- with #) BitKeeper/etc/ignore: added mysql-test/r/*.warnings BUILD/SETUP.sh: Don't build with BDB as default client/client_priv.h: Added OPT_DEBUG_INFO client/mysqlbinlog.cc: Fixed compiler warning client/mysqldump.c: Removed compiler warnings Added option --debug-info to detect memory leaks Fixed memory leak Don't backup cluster replication tables (if used with 5.1) cmd-line-utils/readline/bind.c: Fixed compiler warning cmd-line-utils/readline/chardefs.h: Fixed compiler warning cmd-line-utils/readline/complete.c: Fixed compiler warning cmd-line-utils/readline/display.c: Fixed compiler warning cmd-line-utils/readline/histexpand.c: Fixed compiler warning cmd-line-utils/readline/input.c: Fixed compiler warning cmd-line-utils/readline/isearch.c: Fixed compiler warning cmd-line-utils/readline/kill.c: Fixed compiler warning cmd-line-utils/readline/macro.c: Fixed compiler warning cmd-line-utils/readline/misc.c: Fixed compiler warning cmd-line-utils/readline/nls.c: Fixed compiler warning cmd-line-utils/readline/readline.c: Fixed compiler warning cmd-line-utils/readline/rltty.c: Fixed compiler warning cmd-line-utils/readline/search.c: Fixed compiler warning cmd-line-utils/readline/terminal.c: Fixed compiler warning cmd-line-utils/readline/text.c: Fixed compiler warning cmd-line-utils/readline/tilde.c: Fixed compiler warning cmd-line-utils/readline/undo.c: Fixed compiler warning cmd-line-utils/readline/util.c: Fixed compiler warning cmd-line-utils/readline/vi_mode.c: Fixed compiler warning dbug/dbug_analyze.c: Fixed compiler warning extra/yassl/src/ssl.cpp: Fixed compiler warning extra/yassl/testsuite/testsuite.cpp: Fixed compiler warning heap/_check.c: Fixed compiler warning heap/hp_delete.c: Fixed compiler warning heap/hp_hash.c: Fixed compiler warning heap/hp_open.c: Fixed compiler warning heap/hp_rkey.c: Fixed compiler warning heap/hp_rrnd.c: Fixed compiler warning heap/hp_write.c: Fixed compiler warning libmysql/libmysql.c: Fixed compiler warning libmysqld/libmysqld.c: Fixed compiler warning myisam/mi_close.c: Fixed compiler warning myisam/mi_delete.c: Fixed compiler warning myisam/mi_dynrec.c: Fixed compiler warning myisam/mi_keycache.c: Fixed compiler warning myisam/mi_page.c: Fixed compiler warning myisam/mi_statrec.c: Fixed compiler warning myisam/mi_test2.c: Fixed compiler warning myisam/mi_write.c: Fixed compiler warning myisam/myisampack.c: Fixed compiler warning myisammrg/myrg_extra.c: Fixed compiler warning mysql-test/mysql-test-run.pl: Remove .reject, .progress, .log and .warnings flag at start cluster -> mysql database (for 5.1) mysql-test/include/federated.inc: Remove mysqltest warnings mysql-test/include/sp-vars.inc: Remove mysqltest warnings mysql-test/mysql-test-run.sh: Fix so that 'make test' works again Remove .reject, .progress .log and .warnings files at startup mysql-test/r/ctype_cp1250_ch.result: Drop used tables at startup mysql-test/t/create.test: Remove mysqltest warnings mysql-test/t/csv.test: Remove mysqltest warnings mysql-test/t/ctype_collate.test: Remove mysqltest warnings mysql-test/t/ctype_cp1250_ch.test: Drop used tables at startup mysql-test/t/ctype_ucs.test: Remove mysqltest warnings mysql-test/t/func_sapdb.test: Remove mysqltest warnings mysql-test/t/func_str.test: Remove mysqltest warnings mysql-test/t/grant.test: Remove mysqltest warnings mysql-test/t/greedy_optimizer.test: Remove mysqltest warnings mysql-test/t/group_min_max.test: Remove mysqltest warnings mysql-test/t/innodb.test: Remove mysqltest warnings mysql-test/t/join.test: Remove mysqltest warnings mysql-test/t/limit.test: Remove mysqltest warnings mysql-test/t/null.test: Remove mysqltest warnings mysql-test/t/select.test: Remove mysqltest warnings mysql-test/t/sp-prelocking.test: Remove mysqltest warnings mysql-test/t/strict.test: Remove mysqltest warnings mysql-test/t/subselect.test: Remove mysqltest warnings mysql-test/t/type_newdecimal.test: Remove mysqltest warnings mysql-test/t/view_grant.test: Remove mysqltest warnings mysys/default.c: Fixed compiler warning mysys/hash.c: Fixed compiler warning mysys/list.c: Fixed compiler warning mysys/mf_iocache.c: Fixed compiler warning mysys/mf_keycache.c: Fixed compiler warning mysys/mf_keycaches.c: Fixed compiler warning mysys/my_alloc.c: Fixed compiler warning mysys/my_dup.c: Fixed compiler warning mysys/my_fopen.c: Fixed compiler warning mysys/my_fstream.c: Fixed compiler warning mysys/my_getwd.c: Fixed compiler warning mysys/my_handler.c: Fixed compiler warning Added missing enums in switch mysys/my_lib.c: Fixed compiler warning mysys/my_lread.c: Fixed compiler warning mysys/my_lwrite.c: Fixed compiler warning mysys/my_malloc.c: Fixed compiler warning mysys/my_pread.c: Fixed compiler warning mysys/my_read.c: Fixed compiler warning mysys/my_realloc.c: Fixed compiler warning mysys/my_seek.c: Fixed compiler warning mysys/my_write.c: Fixed compiler warning mysys/safemalloc.c: Fixed compiler warning mysys/thr_lock.c: Fixed compiler warning mysys/tree.c: Fixed compiler warning mysys/typelib.c: Fixed compiler warning ndb/include/logger/LogHandler.hpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/include/ndb_global.h.in: Added LINT_SET_PTR macro to be able to remove some compiler warnings ndb/include/util/InputStream.hpp: Fixed compiler warning ndb/include/util/OutputStream.hpp: Fixed compiler warning ndb/include/util/SimpleProperties.hpp: Fixed compiler warning ndb/src/common/debugger/EventLogger.cpp: remove if on 'signal' as this is a function pointer and is always true ndb/src/common/debugger/signaldata/BackupSignalData.cpp: Add missing enums ndb/src/common/logger/LogHandler.cpp: Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings) ndb/src/common/portlib/NdbMutex.c: Fixed compiler warning ndb/src/common/portlib/NdbThread.c: Fixed compiler warning ndb/src/common/transporter/Transporter.cpp: Swapped arguments to remove compiler warnings ndb/src/cw/cpcd/CPCD.hpp: Fixed compiler warning ndb/src/kernel/blocks/backup/Backup.cpp: Fixed compiler warning ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed compiler warning ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp: Fixed compiler warning ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp: Added missing enums ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.cpp: Fixed compiler warning ndb/src/kernel/error/ErrorReporter.hpp: Fixed compiler warning ndb/src/kernel/error/ndbd_exit_codes.c: Fixed compiler warning ndb/src/kernel/vm/TransporterCallback.cpp: Fixed compiler warning ndb/src/mgmapi/mgmapi.cpp: Fixed compiler warning ndb/src/mgmclient/CommandInterpreter.cpp: Fixed compiler warning ndb/src/mgmsrv/MgmtSrvr.cpp: Fixed compiler warning ndb/src/mgmsrv/Services.cpp: Fixed compiler warning ndb/src/ndbapi/ClusterMgr.cpp: Fixed compiler warning ndb/src/ndbapi/DictCache.cpp: Fixed compiler warning ndb/src/ndbapi/Ndb.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationDefine.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationExec.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationInt.cpp: Fixed compiler warning ndb/src/ndbapi/NdbOperationSearch.cpp: Fixed compiler warning ndb/src/ndbapi/NdbTransaction.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbif.cpp: Fixed compiler warning ndb/src/ndbapi/Ndbinit.cpp: Fixed compiler warning ndb/src/ndbapi/ndb_cluster_connection.cpp: Fixed compiler warning ndb/tools/drop_index.cpp: Fixed compiler warning ndb/tools/drop_tab.cpp: Fixed compiler warning ndb/tools/ndb_config.cpp: Fixed compiler warning regex/regexec.c: Fixed compiler warning server-tools/instance-manager/mysql_connection.cc: Fixed compiler warning sql/Makefile.am: Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse sql/filesort.cc: Fixed compiler warning sql/ha_archive.cc: Fixed compiler warning sql/ha_federated.cc: Fixed compiler warning sql/ha_federated.h: Fixed compiler warning sql/ha_innodb.cc: Fixed compiler warning sql/ha_myisam.cc: Fixed compiler warning sql/ha_myisammrg.cc: Fixed compiler warning sql/ha_ndbcluster.cc: Fixed compiler warning sql/handler.cc: Fixed compiler warning sql/item_cmpfunc.cc: Fixed compiler warning sql/item_subselect.cc: Fixed compiler warning sql/item_timefunc.cc: Fixed compiler warning sql/log_event.cc: Fixed compiler warning sql/mysqld.cc: Fixed compiler warning sql/net_serv.cc: Fixed compiler warning sql/opt_range.cc: Fixed compiler warning Formated DBUG statements to be as rest of code sql/slave.cc: Fixed compiler warning sql/sql_acl.cc: Fixed compiler warning sql/sql_cache.cc: Fixed compiler warning Fixed bug in query cache when used with DBUG traceing sql/sql_class.cc: Fixed compiler warning sql/sql_class.h: Fixed compiler warning sql/sql_delete.cc: Fixed compiler warning sql/sql_parse.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_prepare.cc: Fixed compiler warning Hack to fix my_sprintf() strings with %b sql/sql_repl.cc: Fixed compiler warning sql/sql_select.cc: Fixed compiler warning sql/sql_update.cc: Fixed compiler warning sql/sql_view.cc: Fixed compiler warning sql/strfunc.cc: Fixed compiler warning sql-common/client.c: Fixed compiler warning sql-common/my_time.c: Fixed compiler warning sql/table.cc: Fixed compiler warning sql/tztime.cc: Fixed compiler warning sql/unireg.cc: Fixed compiler warning strings/decimal.c: Fixed compiler warning tests/mysql_client_test.c: Fixed compiler warning vio/viosocket.c: Fixed compiler warning vio/viossl.c: Fixed compiler warning vio/viosslfactories.c: Fixed compiler warning
19 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_io.pl: Remove starting/ending space reading server options from file mysql-test/lib/mtr_report.pl: Added option to disable test cases using <testcase>.disabled file If --timer, only try to open file with time data if it exists mysql-test/lib/mtr_process.pl: Find out if port is still in use, using simple TCP connect Use non blocking waitpid() to catch terminations early Make a special case spawning the 'mysqltest' application Redo the fork() if it returns EAGAIN Make sure to record if master or slave terminated Improved debugging output Improved code that remove PID files to avoid race Abort if we can't stop all mysqld servers using our ports Many improvements in killing mysqld servers Let sleep_until_file_created() catch if server died early mysql-test/mysql-test-run.pl: Let --start-and-exit actually start a server Added that test case names can be specified on the comman line Added embedded server support Added environment variables UMASK, UMASK_DIR Added missing MASTER_MYSOCK1, MASTER_MYPORT1, USE_RUNNING_SERVER Added missing CHARSETSDIR, MYSQL_FIX_SYSTEM_TABLES, MYSQL_CLIENT_TEST Pass on return value from sleep_until_file_created(), to fail test Fail test if early termination of mysqld servers Create intial databases for the second master, and two additional slaves
21 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
BUG#11316 mysqltest, problems when assigning value with '#' to $variable - Fixed problem, only detect comment if the # is on start of line AND starting line of the current command. - Wrote tests for most of the mysqltest commands, added stricter checking of correct syntax. client/mysqltest.c: Updated mysql test to do stricter checking of syntax. For example when the number of arguments to a command is known, everything else is "junk" => die. Better checking of argument types. Added better debug printouts. Added improved printouts when wrong syntax is detected. Fix two bugs where mysqltest could not detect end of comamnd properly, as described in bug#11316 Fix segfault when performing too many source commands. Fix segfault when doing too many while loop levels. Add printout of line number in die Remove lineno and \n in all strings passed to die function. Decrese BLOCK_STACK_DEPTH from 32 to 16, does any test use more than 1 level? mysql-test/mysql-test-run.pl: export MYSQL_TEST environment variable, used from msyqltest.test mysql-test/mysql-test-run.sh: export MYSQL_TEST environment variable, used from msyqltest.test mysql-test/r/mysqltest.result: Updated test results mysql-test/r/rpl_flush_log_loop.result: Updated test result. Approved by lars mysql-test/t/innodb-deadlock.test: Correct wrong syntax Superfluos ; mysql-test/t/innodb-lock.test: Correct wrong syntax Superfluos ; mysql-test/t/mysqltest.test: Add several new tests for mysqltest. Foxus on detecting wrong syntax in test files. Use exec with expected error to execute test scripts that will kill mysqltest Change some negative test that were previously commented out to use the above method. mysql-test/t/ndb_autodiscover2.test: Correct wrong syntax Superfluos ; mysql-test/t/rpl_change_master.test: Correct wrong syntax Superfluos ; mysql-test/t/rpl_deadlock.test: Correct wrong syntax Superfluos ; mysql-test/t/rpl_drop_temp.test: Correct wrong syntax Superfluos ; mysql-test/t/rpl_flush_log_loop.test: Fix after detecting wrong syntax, missing ; Discussed with lars. mysql-test/t/rpl_insert_id.test: Missing ; mysql-test/t/rpl_rotate_logs.test: Correct wrong syntax Superfluos ; mysql-test/t/rpl_until.test: Missing delimiter mysql-test/include/mysqltest_while.inc: New file to test too many while levels
21 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
Make it possible to run mysql-test-run.pl with default test suite in different vardir. mysql-test/include/have_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/include/test_outfile.inc: Use MYSQLTEST_VARDIR mysql-test/mysql-test-run.pl: Create variable $MYSQLTEST_VARDIR that points to the vardir Don't create a symlink from var/ to the physical vardir if it's somewhere else Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp" mysql-test/mysql-test-run.sh: Export MYSQLTEST_VARDIR, always pointing at mysql-test/var mysql-test/r/backup.result: Use MYSQLTEST_VARDIR mysql-test/r/blackhole.result: Use "../std_data_ln" to find std_data files mysql-test/r/loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqlbinlog.result: Use "../std_data_ln" to find std_data files mysql-test/r/mysqltest.result: Use MYSQLTEST_VARDIR mysql-test/r/outfile.result: Use MYSQLTEST_VARDIR mysql-test/r/query_cache.result: Add missing drop function mysql-test/r/rpl000001.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl000004.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_innodb.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_m.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddata_rule_s.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_loaddatalocal.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_log.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_misc_functions.result: Use MYSQLTEST_VARDIR mysql-test/r/rpl_replicate_do.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_rewrite_db.result: Use "../std_data_ln" to find std_data files mysql-test/r/rpl_timezone.result: Use "../std_data_ln" to find std_data files mysql-test/r/symlink.result: Use MYSQLTEST_VARDIR mysql-test/r/trigger.result: Use "../std_data_ln" to find std_data files mysql-test/r/view.result: Use "../std_data_ln" to find std_data files mysql-test/r/warnings.result: Use "../std_data_ln" to find std_data files mysql-test/t/backup-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/backup.test: Use MYSQLTEST_VARDIR mysql-test/t/blackhole.test: Use "../std_data_ln" to find std_data files mysql-test/t/ctype_ucs_binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/im_daemon_life_cycle-im.opt: Use MYSQLTEST_VARDIR mysql-test/t/im_options_set.imtest: Use MYSQLTEST_VARDIR mysql-test/t/im_options_unset.imtest: Use MYSQLTEST_VARDIR mysql-test/t/loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/myisam.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqlbinlog.test: Use "../std_data_ln" to find std_data files mysql-test/t/mysqlbinlog2.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqldump.test: Use MYSQLTEST_VARDIR mysql-test/t/mysqltest.test: Use MYSQLTEST_VARDIR mysql-test/t/ndb_autodiscover.test: Use MYSQLTEST_VARDIR mysql-test/t/outfile.test: Use MYSQLTEST_VARDIR mysql-test/t/query_cache.test: Add missing drop function mysql-test/t/repair.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000001.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000004.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl000009.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl000015-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl000017-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_EE_error.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_charset.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_drop_db.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-master.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.opt: Use MYSQLTEST_VARDIR mysql-test/t/rpl_flush_log_loop-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_innodb.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_m.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddata_rule_s.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_loaddatalocal.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_log.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_misc_functions-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_misc_functions.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_replicate_do.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rewrite_db.test: Use "../std_data_ln" to find std_data files mysql-test/t/rpl_rotate_logs-slave.sh: Use MYSQLTEST_VARDIR mysql-test/t/rpl_rotate_logs.test: Use MYSQLTEST_VARDIR mysql-test/t/rpl_timezone.test: Use MYSQLTEST_VARDIR mysql-test/t/show_check.test: Use MYSQLTEST_VARDIR mysql-test/t/sp-destruct.test: Use MYSQLTEST_VARDIR mysql-test/t/symlink.test: Use MYSQLTEST_VARDIR mysql-test/t/temp_table-master.opt: Use MYSQLTEST_VARDIR mysql-test/t/trigger-compat.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger-grant.test: Use MYSQLTEST_VARDIR mysql-test/t/trigger.test: Use "../std_data_ln" to find std_data files mysql-test/t/type_varchar.test: Use MYSQLTEST_VARDIR mysql-test/t/user_var-binlog.test: Use MYSQLTEST_VARDIR mysql-test/t/view.test: Use "../std_data_ln" to find std_data files mysql-test/t/warnings.test: Use "../std_data_ln" to find std_data files mysql-test/include/sourced.inc: New BitKeeper file ``mysql-test/include/sourced.inc'' mysql-test/include/sourced1.inc: New BitKeeper file ``mysql-test/include/sourced1.inc''
20 years ago
Add new option "check-testcases" to mysql-test-run.pl Cleanup the sideeffects from most of the testcases with sideeffects. mysql-test/mysql-test-run.pl: Add option "check-testcases" to mysql-test-run.pl Will execute "include/check-testcase.test" once before each tescase and record the output into "var/tmp/check-testcase.result" After the teastcase it will run again and this time compare the output with previously recorded file. mysql-test/r/analyze.result: Drop table t1 at end of test mysql-test/r/create_select_tmp.result: Drop table t1 at end of test mysql-test/r/ctype_cp932.result: Drop table t1 at end of test mysql-test/r/ctype_recoding.result: Drop table t1 at end of test mysql-test/r/grant2.result: Drop user mysqltest_2 and mysqltest_A@'%' mysql-test/r/join_outer.result: Drop view v1 to cleanup mysql-test/r/ps_1general.result: Drop table t1 at end of test mysql-test/r/query_cache.result: Drop function "f1" mysql-test/r/read_only.result: Reset the "read_only" flag mysql-test/r/rpl000001.result: Remove user "blafasel2" mysql-test/r/rpl000017.result: Remove user "replicate" mysql-test/r/rpl_failed_optimize.result: Drop table t1 to cleanup mysql-test/r/rpl_flush_tables.result: Drop tables t3, t4, t5 mysql-test/r/rpl_ignore_revoke.result: Delete user "user_foo" mysql-test/r/rpl_insert_id.result: Drop table t1 to cleanup mysql-test/r/rpl_loaddata.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_m.result: Drop tyable t1 to cleanup mysql-test/r/rpl_loaddata_rule_s.result: Drop tyable t1 to cleanup mysql-test/r/rpl_misc_functions.result: Drop tyable t1 to cleanup mysql-test/r/rpl_multi_update3.result: Drop tyable t1 and t2 to cleanup mysql-test/r/rpl_replicate_do.result: Drop tyable t1 to cleanup mysql-test/r/rpl_skip_error.result: Drop tyable t1 to cleanup mysql-test/r/rpl_slave_status.result: Drop tyable t1 to cleanup mysql-test/r/sp-prelocking.result: Drop view v1 and tables t1, t2, t3 and t4 to cleanup mysql-test/r/sp-security.result: Delete users to cleanup Delete remaining traces in tables_priv and procs_priv mysql-test/r/subselect_innodb.result: Drop procedure p1 to cleanup mysql-test/r/trigger-compat.result: Drop trigger wl2818_trg1 and wl2818_trg2. Drop table t1, t2 Drop database mysqltest_db1 And the users "mysqltest_dfn@localhost" and "mysqltest_inv@localhost" mysql-test/r/type_bit.result: Drop tables t1 and t2 to cleanup mysql-test/r/variables.result: Set GLOBAL max_join_size to 10 as it originally was in variables-master.opt mysql-test/r/view_grant.result: Dop user "test@localhost" to cleanup mysql-test/t/analyze.test: Drop table t1 to cleanup mysql-test/t/create_select_tmp.test: Drop table t1 to cleanup mysql-test/t/ctype_cp932.test: Drop table t1 to cleanup mysql-test/t/ctype_recoding.test: Drop table t1 to cleanup mysql-test/t/fulltext_var.test: Restore the original ft_boolean_syntax mysql-test/t/grant2.test: Drop users "mysqltest_2" and "mysqltest_A@'%'" to cleanup mysql-test/t/innodb_cache.test: Reset query_cache_size to original value mysql-test/t/join_outer.test: Drop view v1 to cleanup mysql-test/t/ps_1general.test: Drop table t1 to cleanup mysql-test/t/query_cache.test: Drop function "f1" to cleanup mysql-test/t/read_only.test: Reset the readonly flag mysql-test/t/rpl000001.test: Delete user "blafasel2" to cleanup mysql-test/t/rpl000017.test: Delete user "replicate" to cleanup mysql-test/t/rpl_failed_optimize.test: Drop table t1 to cleanup mysql-test/t/rpl_flush_tables.test: Droip table t3, t4 and t5 to cleanup mysql-test/t/rpl_ignore_revoke.test: Delet user "user_foo" to cleanup mysql-test/t/rpl_insert_id.test: drop table t1 to cleanup mysql-test/t/rpl_loaddata.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_m.test: Drop table t1 to cleanup mysql-test/t/rpl_loaddata_rule_s.test: Drop table t1 to cleanup mysql-test/t/rpl_misc_functions.test: Drop table t1 to cleanup mysql-test/t/rpl_multi_update3.test: Drop table t1 and t2 to cleanup mysql-test/t/rpl_replicate_do.test: Drop table t1 to cleanup mysql-test/t/rpl_skip_error.test: Drop table t1 to cleanup mysql-test/t/rpl_slave_status.test: Drop table t1 to cleanup mysql-test/t/sp-prelocking.test: Drop table t1, t2 t3 and t4 to cleanup Drop view v1 mysql-test/t/sp-security.test: Delete test users from mysql.user, mysql.db, mysql.procs_priv and mysql.tables_priv Drop table t1 to cleanup mysql-test/t/subselect_innodb.test: Drop procedure p1 to cleanup mysql-test/t/trigger-compat.test: Drop trigger wl2818_trg1 and wl2818_trg2 to cleanup Drop table t1, t2 Drop users drop database mysqltest_db1 mysql-test/t/type_bit.test: drop table t1 and t2 to cleanup mysql-test/t/variables-master.opt: Increase max_join_size to 100. mysql-test/t/variables.test: Set max_join_size to 10, which was the original value in variables-master.opt mysql-test/t/view_grant.test: Drop the user "test@localhost" mysql-test/include/check-testcase.test: New BitKeeper file ``mysql-test/include/check-testcase.test''
20 years ago
Improved testing of ssl and compression - Added show status variable "compression" for checking that compression is turned on. - Updated show status variable "have_openssl" to be set to DISABLED if server supports ssl but it's not turned on to accept incoming ssl connections. - Setup server to accept ssl connections from clients ig that is supported by server - New tests - ssl - Run with ssl turned on - ssl_compress - Run with ssl and compression turned on - compress - Run with compression turned in - Updated test - openssl_1, rpl_openssl1 - Changed to run if server supports ssl BitKeeper/deleted/.del-have_openssl_1.inc~55590efedeec9ee0: Delete: mysql-test/include/have_openssl_1.inc BitKeeper/deleted/.del-have_openssl_1.require~e8cdeb0adba99ac5: Delete: mysql-test/r/have_openssl_1.require client/mysqltest.c: Add commands to enable/disable ssl for the follwing connect's Add commands to enable/disable compression for the following connect's mysql-test/mysql-test-run.pl: Test if ssl is supported by the server If ssl is supported by the server, start server with ability to accept ssl connections from clients Cleanup check of supported features check_ssl_support, check_ndbcluster_support Flags and helptext for mysl-test-run.pl updated --ssl, turn on ssl encryption between server and client --skip-ssl, don'r turn on ssl or setup ssl even if it's supported --with-openssl, deprecated, synonym with --ssl mysql-test/r/openssl_1.result: Update test results mysql-test/t/openssl_1.test: Run this if server reports it has support for ssl Enable ssl before connecting Check that ssl encryption has been turned on mysql-test/t/rpl_openssl.test: Run this if server reports it supports ssl sql-common/client.c: Add DBUG_PRINT's sql/mysqld.cc: If server can't accept ssl connection set have_openssl to SHOW_OPTION_DISABLED Add status variable to show if connection with server is using compressed protocol sql/sql_show.cc: Add status variable to show if connection with server is using compressed protocol sql/structs.h: Add status variable to show if connection with server is using compressed protocol mysql-test/r/compress.result: New BitKeeper file ``mysql-test/r/compress.result'' mysql-test/r/ssl.result: New BitKeeper file ``mysql-test/r/ssl.result'' mysql-test/r/ssl_compress.result: New BitKeeper file ``mysql-test/r/ssl_compress.result'' mysql-test/t/compress.test: New BitKeeper file ``mysql-test/t/compress.test'' mysql-test/t/ssl.test: New BitKeeper file ``mysql-test/t/ssl.test'' mysql-test/t/ssl_compress.test: New BitKeeper file ``mysql-test/t/ssl_compress.test''
21 years ago
  1. #!/usr/bin/perl
  2. # -*- cperl -*-
  3. #
  4. ##############################################################################
  5. #
  6. # mysql-test-run.pl
  7. #
  8. # Tool used for executing a suite of .test file
  9. #
  10. # See the "MySQL Test framework manual" for more information
  11. # http://dev.mysql.com/doc/mysqltest/en/index.html
  12. #
  13. # Please keep the test framework tools identical in all versions!
  14. #
  15. ##############################################################################
  16. #
  17. # Coding style directions for this perl script
  18. #
  19. # - To make this Perl script easy to alter even for those that not
  20. # code Perl that often, keeep the coding style as close as possible to
  21. # the C/C++ MySQL coding standard.
  22. #
  23. # - All lists of arguments to send to commands are Perl lists/arrays,
  24. # not strings we append args to. Within reason, most string
  25. # concatenation for arguments should be avoided.
  26. #
  27. # - Functions defined in the main program are not to be prefixed,
  28. # functions in "library files" are to be prefixed with "mtr_" (for
  29. # Mysql-Test-Run). There are some exceptions, code that fits best in
  30. # the main program, but are put into separate files to avoid
  31. # clutter, may be without prefix.
  32. #
  33. # - All stat/opendir/-f/ is to be kept in collect_test_cases(). It
  34. # will create a struct that the rest of the program can use to get
  35. # the information. This separates the "find information" from the
  36. # "do the work" and makes the program more easy to maintain.
  37. #
  38. # - The rule when it comes to the logic of this program is
  39. #
  40. # command_line_setup() - is to handle the logic between flags
  41. # collect_test_cases() - is to do its best to select what tests
  42. # to run, dig out options, if needs restart etc.
  43. # run_testcase() - is to run a single testcase, and follow the
  44. # logic set in both above. No, or rare file
  45. # system operations. If a test seems complex,
  46. # it should probably not be here.
  47. #
  48. # A nice way to trace the execution of this script while debugging
  49. # is to use the Devel::Trace package found at
  50. # "http://www.plover.com/~mjd/perl/Trace/" and run this script like
  51. # "perl -d:Trace mysql-test-run.pl"
  52. #
  53. $Devel::Trace::TRACE= 0; # Don't trace boring init stuff
  54. #require 5.6.1;
  55. use File::Path;
  56. use File::Basename;
  57. use File::Copy;
  58. use Cwd;
  59. use Getopt::Long;
  60. use Sys::Hostname;
  61. use IO::Socket;
  62. use IO::Socket::INET;
  63. use strict;
  64. use warnings;
  65. select(STDOUT);
  66. $| = 1; # Automatically flush STDOUT
  67. our $glob_win32_perl= ($^O eq "MSWin32"); # ActiveState Win32 Perl
  68. our $glob_cygwin_perl= ($^O eq "cygwin"); # Cygwin Perl
  69. our $glob_win32= ($glob_win32_perl or $glob_cygwin_perl);
  70. our $glob_netware= ($^O eq "NetWare"); # NetWare
  71. require "lib/mtr_cases.pl";
  72. require "lib/mtr_im.pl";
  73. require "lib/mtr_process.pl";
  74. require "lib/mtr_timer.pl";
  75. require "lib/mtr_io.pl";
  76. require "lib/mtr_gcov.pl";
  77. require "lib/mtr_gprof.pl";
  78. require "lib/mtr_report.pl";
  79. require "lib/mtr_diff.pl";
  80. require "lib/mtr_match.pl";
  81. require "lib/mtr_misc.pl";
  82. require "lib/mtr_stress.pl";
  83. require "lib/mtr_unique.pl";
  84. $Devel::Trace::TRACE= 1;
  85. ##############################################################################
  86. #
  87. # Default settings
  88. #
  89. ##############################################################################
  90. # Misc global variables
  91. our $mysql_version_id;
  92. our $glob_mysql_test_dir= undef;
  93. our $glob_mysql_bench_dir= undef;
  94. our $glob_hostname= undef;
  95. our $glob_scriptname= undef;
  96. our $glob_timers= undef;
  97. our $glob_use_running_ndbcluster= 0;
  98. our $glob_use_running_ndbcluster_slave= 0;
  99. our $glob_use_embedded_server= 0;
  100. our @glob_test_mode;
  101. our $glob_basedir;
  102. our $path_charsetsdir;
  103. our $path_client_bindir;
  104. our $path_language;
  105. our $path_timefile;
  106. our $path_snapshot;
  107. our $path_mysqltest_log;
  108. our $path_current_test_log;
  109. our $path_my_basedir;
  110. our $opt_vardir; # A path but set directly on cmd line
  111. our $path_vardir_trace; # unix formatted opt_vardir for trace files
  112. our $opt_tmpdir; # A path but set directly on cmd line
  113. # Visual Studio produces executables in different sub-directories based on the
  114. # configuration used to build them. To make life easier, an environment
  115. # variable or command-line option may be specified to control which set of
  116. # executables will be used by the test suite.
  117. our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
  118. our $default_vardir;
  119. our $opt_usage;
  120. our $opt_suite;
  121. our $opt_script_debug= 0; # Script debugging, enable with --script-debug
  122. our $opt_verbose= 0; # Verbose output, enable with --verbose
  123. our $exe_master_mysqld;
  124. our $exe_mysql;
  125. our $exe_mysqladmin;
  126. our $exe_mysql_upgrade;
  127. our $exe_mysqlbinlog;
  128. our $exe_mysql_client_test;
  129. our $exe_mysqld;
  130. our $exe_mysqlcheck;
  131. our $exe_mysqldump;
  132. our $exe_mysqlslap;
  133. our $exe_mysqlimport;
  134. our $exe_mysqlshow;
  135. our $exe_mysql_fix_system_tables;
  136. our $file_mysql_fix_privilege_tables;
  137. our $exe_mysqltest;
  138. our $exe_ndbd;
  139. our $exe_ndb_mgmd;
  140. our $exe_slave_mysqld;
  141. our $exe_im;
  142. our $exe_my_print_defaults;
  143. our $exe_perror;
  144. our $lib_udf_example;
  145. our $exe_libtool;
  146. our $opt_bench= 0;
  147. our $opt_small_bench= 0;
  148. our $opt_big_test= 0;
  149. our @opt_extra_mysqld_opt;
  150. our $opt_compress;
  151. our $opt_ssl;
  152. our $opt_skip_ssl;
  153. our $opt_ssl_supported;
  154. our $opt_ps_protocol;
  155. our $opt_sp_protocol;
  156. our $opt_cursor_protocol;
  157. our $opt_view_protocol;
  158. our $opt_debug;
  159. our $opt_do_test;
  160. our @opt_cases; # The test cases names in argv
  161. our $opt_embedded_server;
  162. our $opt_extern= 0;
  163. our $opt_socket;
  164. our $opt_fast;
  165. our $opt_force;
  166. our $opt_reorder= 0;
  167. our $opt_enable_disabled;
  168. our $opt_mem= $ENV{'MTR_MEM'};
  169. our $opt_gcov;
  170. our $opt_gcov_err;
  171. our $opt_gcov_msg;
  172. our $glob_debugger= 0;
  173. our $opt_gdb;
  174. our $opt_client_gdb;
  175. our $opt_ddd;
  176. our $opt_client_ddd;
  177. our $opt_manual_gdb;
  178. our $opt_manual_ddd;
  179. our $opt_manual_debug;
  180. our $opt_mtr_build_thread=0;
  181. our $opt_debugger;
  182. our $opt_client_debugger;
  183. our $opt_gprof;
  184. our $opt_gprof_dir;
  185. our $opt_gprof_master;
  186. our $opt_gprof_slave;
  187. our $master;
  188. our $slave;
  189. our $clusters;
  190. our $instance_manager;
  191. our $opt_master_myport;
  192. our $opt_slave_myport;
  193. our $im_port;
  194. our $im_mysqld1_port;
  195. our $im_mysqld2_port;
  196. our $opt_ndbcluster_port;
  197. our $opt_ndbconnectstring;
  198. our $opt_ndbcluster_port_slave;
  199. our $opt_ndbconnectstring_slave;
  200. our $opt_record;
  201. my $opt_report_features;
  202. our $opt_check_testcases;
  203. our $opt_skip;
  204. our $opt_skip_rpl;
  205. our $max_slave_num= 0;
  206. our $use_innodb;
  207. our $opt_skip_test;
  208. our $opt_skip_im;
  209. our $opt_sleep;
  210. our $opt_testcase_timeout;
  211. our $opt_suite_timeout;
  212. my $default_testcase_timeout= 15; # 15 min max
  213. my $default_suite_timeout= 180; # 3 hours max
  214. our $opt_start_and_exit;
  215. our $opt_start_dirty;
  216. our $opt_start_from;
  217. our $opt_strace_client;
  218. our $opt_timer= 1;
  219. our $opt_user;
  220. our $opt_valgrind= 0;
  221. our $opt_valgrind_mysqld= 0;
  222. our $opt_valgrind_mysqltest= 0;
  223. our $default_valgrind_options= "--show-reachable=yes";
  224. our $opt_valgrind_options;
  225. our $opt_valgrind_path;
  226. our $opt_callgrind;
  227. our $opt_stress= "";
  228. our $opt_stress_suite= "main";
  229. our $opt_stress_mode= "random";
  230. our $opt_stress_threads= 5;
  231. our $opt_stress_test_count= 0;
  232. our $opt_stress_loop_count= 0;
  233. our $opt_stress_test_duration= 0;
  234. our $opt_stress_init_file= "";
  235. our $opt_stress_test_file= "";
  236. our $opt_wait_for_master;
  237. our $opt_wait_for_slave;
  238. our $opt_warnings;
  239. our $opt_udiff;
  240. our $opt_skip_ndbcluster= 0;
  241. our $opt_skip_ndbcluster_slave= 0;
  242. our $opt_with_ndbcluster= 0;
  243. our $opt_with_ndbcluster_only= 0;
  244. our $glob_ndbcluster_supported= 0;
  245. our $opt_ndb_extra_test= 0;
  246. our $opt_skip_master_binlog= 0;
  247. our $opt_skip_slave_binlog= 0;
  248. our $exe_ndb_mgm;
  249. our $exe_ndb_waiter;
  250. our $path_ndb_tools_dir;
  251. our $path_ndb_examples_dir;
  252. our $exe_ndb_example;
  253. our $path_ndb_testrun_log;
  254. our @data_dir_lst;
  255. our $used_binlog_format;
  256. our $debug_compiled_binaries;
  257. our $glob_tot_real_time= 0;
  258. our %mysqld_variables;
  259. my $source_dist= 0;
  260. ######################################################################
  261. #
  262. # Function declarations
  263. #
  264. ######################################################################
  265. sub main ();
  266. sub initial_setup ();
  267. sub command_line_setup ();
  268. sub set_mtr_build_thread_ports($);
  269. sub datadir_list_setup ();
  270. sub executable_setup ();
  271. sub environment_setup ();
  272. sub kill_running_servers ();
  273. sub remove_stale_vardir ();
  274. sub setup_vardir ();
  275. sub check_ssl_support ($);
  276. sub check_running_as_root();
  277. sub check_ndbcluster_support ($);
  278. sub rm_ndbcluster_tables ($);
  279. sub ndbcluster_start_install ($);
  280. sub ndbcluster_start ($$);
  281. sub ndbcluster_wait_started ($$);
  282. sub mysqld_wait_started($);
  283. sub run_benchmarks ($);
  284. sub initialize_servers ();
  285. sub mysql_install_db ();
  286. sub install_db ($$);
  287. sub copy_install_db ($$);
  288. sub run_testcase ($);
  289. sub run_testcase_stop_servers ($$$);
  290. sub run_testcase_start_servers ($);
  291. sub run_testcase_check_skip_test($);
  292. sub report_failure_and_restart ($);
  293. sub do_before_start_master ($);
  294. sub do_before_start_slave ($);
  295. sub ndbd_start ($$$);
  296. sub ndb_mgmd_start ($);
  297. sub mysqld_start ($$$);
  298. sub mysqld_arguments ($$$$$);
  299. sub stop_all_servers ();
  300. sub run_mysqltest ($);
  301. sub usage ($);
  302. ######################################################################
  303. #
  304. # Main program
  305. #
  306. ######################################################################
  307. main();
  308. sub main () {
  309. command_line_setup();
  310. check_ndbcluster_support(\%mysqld_variables);
  311. check_ssl_support(\%mysqld_variables);
  312. check_debug_support(\%mysqld_variables);
  313. executable_setup();
  314. environment_setup();
  315. signal_setup();
  316. if ( $opt_gcov )
  317. {
  318. gcov_prepare();
  319. }
  320. if ( $opt_gprof )
  321. {
  322. gprof_prepare();
  323. }
  324. if ( $opt_bench )
  325. {
  326. initialize_servers();
  327. run_benchmarks(shift); # Shift what? Extra arguments?!
  328. }
  329. elsif ( $opt_stress )
  330. {
  331. initialize_servers();
  332. run_stress_test()
  333. }
  334. else
  335. {
  336. # Figure out which tests we are going to run
  337. my $tests= collect_test_cases($opt_suite);
  338. # Turn off NDB and other similar options if no tests use it
  339. my ($need_ndbcluster,$need_im);
  340. foreach my $test (@$tests)
  341. {
  342. next if $test->{skip};
  343. $need_ndbcluster||= $test->{ndb_test};
  344. $need_im||= $test->{component_id} eq 'im';
  345. # Count max number of slaves used by a test case
  346. if ( $test->{slave_num} > $max_slave_num)
  347. {
  348. $max_slave_num= $test->{slave_num};
  349. mtr_error("Too many slaves") if $max_slave_num > 3;
  350. }
  351. $use_innodb||= $test->{'innodb_test'};
  352. }
  353. # Check if cluster can be skipped
  354. if ( !$need_ndbcluster )
  355. {
  356. $opt_skip_ndbcluster= 1;
  357. $opt_skip_ndbcluster_slave= 1;
  358. }
  359. # Check if slave cluster can be skipped
  360. if ($max_slave_num == 0)
  361. {
  362. $opt_skip_ndbcluster_slave= 1;
  363. }
  364. # Check if im can be skipped
  365. if ( ! $need_im )
  366. {
  367. $opt_skip_im= 1;
  368. }
  369. initialize_servers();
  370. if ( $opt_report_features ) {
  371. run_report_features();
  372. }
  373. run_suite($opt_suite, $tests);
  374. }
  375. mtr_exit(0);
  376. }
  377. ##############################################################################
  378. #
  379. # Default settings
  380. #
  381. ##############################################################################
  382. sub command_line_setup () {
  383. # These are defaults for things that are set on the command line
  384. $opt_suite= "main"; # Special default suite
  385. my $opt_comment;
  386. $opt_master_myport= 9306;
  387. $opt_slave_myport= 9308;
  388. $opt_ndbcluster_port= 9310;
  389. $opt_ndbcluster_port_slave= 9311;
  390. $im_port= 9312;
  391. $im_mysqld1_port= 9313;
  392. $im_mysqld2_port= 9314;
  393. # If so requested, we try to avail ourselves of a unique build thread number.
  394. if ( $ENV{'MTR_BUILD_THREAD'} ) {
  395. if ( lc($ENV{'MTR_BUILD_THREAD'}) eq 'auto' ) {
  396. print "Requesting build thread... ";
  397. $ENV{'MTR_BUILD_THREAD'} = mtr_require_unique_id_and_wait("/tmp/mysql-test-ports", 200, 299);
  398. print "got ".$ENV{'MTR_BUILD_THREAD'}."\n";
  399. }
  400. }
  401. if ( $ENV{'MTR_BUILD_THREAD'} )
  402. {
  403. set_mtr_build_thread_ports($ENV{'MTR_BUILD_THREAD'});
  404. }
  405. # This is needed for test log evaluation in "gen-build-status-page"
  406. # in all cases where the calling tool does not log the commands
  407. # directly before it executes them, like "make test-force-pl" in RPM builds.
  408. print "Logging: $0 ", join(" ", @ARGV), "\n";
  409. # Read the command line
  410. # Note: Keep list, and the order, in sync with usage at end of this file
  411. Getopt::Long::Configure("pass_through");
  412. GetOptions(
  413. # Control what engine/variation to run
  414. 'embedded-server' => \$opt_embedded_server,
  415. 'ps-protocol' => \$opt_ps_protocol,
  416. 'sp-protocol' => \$opt_sp_protocol,
  417. 'view-protocol' => \$opt_view_protocol,
  418. 'cursor-protocol' => \$opt_cursor_protocol,
  419. 'ssl|with-openssl' => \$opt_ssl,
  420. 'skip-ssl' => \$opt_skip_ssl,
  421. 'compress' => \$opt_compress,
  422. 'bench' => \$opt_bench,
  423. 'small-bench' => \$opt_small_bench,
  424. 'with-ndbcluster' => \$opt_with_ndbcluster,
  425. 'vs-config' => \$opt_vs_config,
  426. # Control what test suites or cases to run
  427. 'force' => \$opt_force,
  428. 'with-ndbcluster-only' => \$opt_with_ndbcluster_only,
  429. 'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster,
  430. 'skip-ndbcluster-slave|skip-ndb-slave'
  431. => \$opt_skip_ndbcluster_slave,
  432. 'ndb-extra-test' => \$opt_ndb_extra_test,
  433. 'skip-master-binlog' => \$opt_skip_master_binlog,
  434. 'skip-slave-binlog' => \$opt_skip_slave_binlog,
  435. 'do-test=s' => \$opt_do_test,
  436. 'start-from=s' => \$opt_start_from,
  437. 'suite=s' => \$opt_suite,
  438. 'skip-rpl' => \$opt_skip_rpl,
  439. 'skip-im' => \$opt_skip_im,
  440. 'skip-test=s' => \$opt_skip_test,
  441. 'big-test' => \$opt_big_test,
  442. # Specify ports
  443. 'master_port=i' => \$opt_master_myport,
  444. 'slave_port=i' => \$opt_slave_myport,
  445. 'ndbcluster-port|ndbcluster_port=i' => \$opt_ndbcluster_port,
  446. 'ndbcluster-port-slave=i' => \$opt_ndbcluster_port_slave,
  447. 'im-port=i' => \$im_port, # Instance Manager port.
  448. 'im-mysqld1-port=i' => \$im_mysqld1_port, # Port of mysqld, controlled by IM
  449. 'im-mysqld2-port=i' => \$im_mysqld2_port, # Port of mysqld, controlled by IM
  450. 'mtr-build-thread=i' => \$opt_mtr_build_thread,
  451. # Test case authoring
  452. 'record' => \$opt_record,
  453. 'check-testcases' => \$opt_check_testcases,
  454. # Extra options used when starting mysqld
  455. 'mysqld=s' => \@opt_extra_mysqld_opt,
  456. # Run test on running server
  457. 'extern' => \$opt_extern,
  458. 'ndb-connectstring=s' => \$opt_ndbconnectstring,
  459. 'ndb-connectstring-slave=s' => \$opt_ndbconnectstring_slave,
  460. # Debugging
  461. 'gdb' => \$opt_gdb,
  462. 'client-gdb' => \$opt_client_gdb,
  463. 'manual-gdb' => \$opt_manual_gdb,
  464. 'manual-debug' => \$opt_manual_debug,
  465. 'ddd' => \$opt_ddd,
  466. 'client-ddd' => \$opt_client_ddd,
  467. 'debugger=s' => \$opt_debugger,
  468. 'client-debugger=s' => \$opt_client_debugger,
  469. 'strace-client' => \$opt_strace_client,
  470. 'master-binary=s' => \$exe_master_mysqld,
  471. 'slave-binary=s' => \$exe_slave_mysqld,
  472. # Coverage, profiling etc
  473. 'gcov' => \$opt_gcov,
  474. 'gprof' => \$opt_gprof,
  475. 'valgrind|valgrind-all' => \$opt_valgrind,
  476. 'valgrind-mysqltest' => \$opt_valgrind_mysqltest,
  477. 'valgrind-mysqld' => \$opt_valgrind_mysqld,
  478. 'valgrind-options=s' => \$opt_valgrind_options,
  479. 'valgrind-path=s' => \$opt_valgrind_path,
  480. 'callgrind' => \$opt_callgrind,
  481. # Stress testing
  482. 'stress' => \$opt_stress,
  483. 'stress-suite=s' => \$opt_stress_suite,
  484. 'stress-threads=i' => \$opt_stress_threads,
  485. 'stress-test-file=s' => \$opt_stress_test_file,
  486. 'stress-init-file=s' => \$opt_stress_init_file,
  487. 'stress-mode=s' => \$opt_stress_mode,
  488. 'stress-loop-count=i' => \$opt_stress_loop_count,
  489. 'stress-test-count=i' => \$opt_stress_test_count,
  490. 'stress-test-duration=i' => \$opt_stress_test_duration,
  491. # Directories
  492. 'tmpdir=s' => \$opt_tmpdir,
  493. 'vardir=s' => \$opt_vardir,
  494. 'benchdir=s' => \$glob_mysql_bench_dir,
  495. 'mem' => \$opt_mem,
  496. # Misc
  497. 'report-features' => \$opt_report_features,
  498. 'comment=s' => \$opt_comment,
  499. 'debug' => \$opt_debug,
  500. 'fast' => \$opt_fast,
  501. 'reorder' => \$opt_reorder,
  502. 'enable-disabled' => \$opt_enable_disabled,
  503. 'script-debug' => \$opt_script_debug,
  504. 'verbose' => \$opt_verbose,
  505. 'sleep=i' => \$opt_sleep,
  506. 'socket=s' => \$opt_socket,
  507. 'start-dirty' => \$opt_start_dirty,
  508. 'start-and-exit' => \$opt_start_and_exit,
  509. 'timer!' => \$opt_timer,
  510. 'unified-diff|udiff' => \$opt_udiff,
  511. 'user=s' => \$opt_user,
  512. 'testcase-timeout=i' => \$opt_testcase_timeout,
  513. 'suite-timeout=i' => \$opt_suite_timeout,
  514. 'warnings|log-warnings' => \$opt_warnings,
  515. 'help|h' => \$opt_usage,
  516. ) or usage("Can't read options");
  517. usage("") if $opt_usage;
  518. $glob_scriptname= basename($0);
  519. if ($opt_mtr_build_thread != 0)
  520. {
  521. set_mtr_build_thread_ports($opt_mtr_build_thread)
  522. }
  523. elsif ($ENV{'MTR_BUILD_THREAD'})
  524. {
  525. $opt_mtr_build_thread= $ENV{'MTR_BUILD_THREAD'};
  526. }
  527. # We require that we are in the "mysql-test" directory
  528. # to run mysql-test-run
  529. if (! -f $glob_scriptname)
  530. {
  531. mtr_error("Can't find the location for the mysql-test-run script\n" .
  532. "Go to to the mysql-test directory and execute the script " .
  533. "as follows:\n./$glob_scriptname");
  534. }
  535. if ( -d "../sql" )
  536. {
  537. $source_dist= 1;
  538. }
  539. $glob_hostname= mtr_short_hostname();
  540. # Find the absolute path to the test directory
  541. $glob_mysql_test_dir= cwd();
  542. if ( $glob_cygwin_perl )
  543. {
  544. # Windows programs like 'mysqld' needs Windows paths
  545. $glob_mysql_test_dir= `cygpath -m "$glob_mysql_test_dir"`;
  546. chomp($glob_mysql_test_dir);
  547. }
  548. # In most cases, the base directory we find everything relative to,
  549. # is the parent directory of the "mysql-test" directory. For source
  550. # distributions, TAR binary distributions and some other packages.
  551. $glob_basedir= dirname($glob_mysql_test_dir);
  552. # In the RPM case, binaries and libraries are installed in the
  553. # default system locations, instead of having our own private base
  554. # directory. And we install "/usr/share/mysql-test". Moving up one
  555. # more directory relative to "mysql-test" gives us a usable base
  556. # directory for RPM installs.
  557. if ( ! $source_dist and ! -d "$glob_basedir/bin" )
  558. {
  559. $glob_basedir= dirname($glob_basedir);
  560. }
  561. # Expect mysql-bench to be located adjacent to the source tree, by default
  562. $glob_mysql_bench_dir= "$glob_basedir/../mysql-bench"
  563. unless defined $glob_mysql_bench_dir;
  564. $glob_mysql_bench_dir= undef
  565. unless -d $glob_mysql_bench_dir;
  566. $path_my_basedir=
  567. $source_dist ? $glob_mysql_test_dir : $glob_basedir;
  568. $glob_timers= mtr_init_timers();
  569. #
  570. # Find the mysqld executable to be able to find the mysqld version
  571. # number as early as possible
  572. #
  573. # Look for the client binaries directory
  574. $path_client_bindir= mtr_path_exists("$glob_basedir/client_release",
  575. "$glob_basedir/client_debug",
  576. vs_config_dirs('client', ''),
  577. "$glob_basedir/client",
  578. "$glob_basedir/bin");
  579. $exe_mysqld= mtr_exe_exists (vs_config_dirs('sql', 'mysqld'),
  580. "$glob_basedir/sql/mysqld",
  581. "$path_client_bindir/mysqld-max-nt",
  582. "$path_client_bindir/mysqld-max",
  583. "$path_client_bindir/mysqld-nt",
  584. "$path_client_bindir/mysqld",
  585. "$path_client_bindir/mysqld-debug",
  586. "$path_client_bindir/mysqld-max",
  587. "$glob_basedir/libexec/mysqld",
  588. "$glob_basedir/bin/mysqld",
  589. "$glob_basedir/sbin/mysqld");
  590. # Use the mysqld found above to find out what features are available
  591. collect_mysqld_features();
  592. if ( $opt_comment )
  593. {
  594. print "\n";
  595. print '#' x 78, "\n";
  596. print "# $opt_comment\n";
  597. print '#' x 78, "\n\n";
  598. }
  599. foreach my $arg ( @ARGV )
  600. {
  601. if ( $arg =~ /^--skip-/ )
  602. {
  603. push(@opt_extra_mysqld_opt, $arg);
  604. }
  605. elsif ( $arg =~ /^--$/ )
  606. {
  607. # It is an effect of setting 'pass_through' in option processing
  608. # that the lone '--' separating options from arguments survives,
  609. # simply ignore it.
  610. }
  611. elsif ( $arg =~ /^-/ )
  612. {
  613. usage("Invalid option \"$arg\"");
  614. }
  615. else
  616. {
  617. push(@opt_cases, $arg);
  618. }
  619. }
  620. # --------------------------------------------------------------------------
  621. # Find out type of logging that are being used
  622. # --------------------------------------------------------------------------
  623. # NOTE if the default binlog format is changed, this has to be changed
  624. $used_binlog_format= "stmt";
  625. if ( $mysql_version_id >= 50100 )
  626. {
  627. $used_binlog_format= "mixed"; # Default value for binlog format
  628. foreach my $arg ( @opt_extra_mysqld_opt )
  629. {
  630. if ( $arg =~ /binlog-format=(\S+)/ )
  631. {
  632. $used_binlog_format= $1;
  633. }
  634. }
  635. mtr_report("Using binlog format '$used_binlog_format'");
  636. }
  637. # --------------------------------------------------------------------------
  638. # Check if we should speed up tests by trying to run on tmpfs
  639. # --------------------------------------------------------------------------
  640. if ( defined $opt_mem )
  641. {
  642. mtr_error("Can't use --mem and --vardir at the same time ")
  643. if $opt_vardir;
  644. mtr_error("Can't use --mem and --tmpdir at the same time ")
  645. if $opt_tmpdir;
  646. # Search through list of locations that are known
  647. # to be "fast disks" to list to find a suitable location
  648. # Use --mem=<dir> as first location to look.
  649. my @tmpfs_locations= ($opt_mem, "/dev/shm", "/tmp");
  650. foreach my $fs (@tmpfs_locations)
  651. {
  652. if ( -d $fs )
  653. {
  654. mtr_report("Using tmpfs in $fs");
  655. $opt_mem= "$fs/var";
  656. $opt_mem .= $opt_mtr_build_thread if $opt_mtr_build_thread;
  657. last;
  658. }
  659. }
  660. }
  661. # --------------------------------------------------------------------------
  662. # Set the "var/" directory, as it is the base for everything else
  663. # --------------------------------------------------------------------------
  664. $default_vardir= "$glob_mysql_test_dir/var";
  665. if ( ! $opt_vardir )
  666. {
  667. $opt_vardir= $default_vardir;
  668. }
  669. elsif ( $mysql_version_id < 50000 and
  670. $opt_vardir ne $default_vardir)
  671. {
  672. # Version 4.1 and --vardir was specified
  673. # Only supported as a symlink from var/
  674. # by setting up $opt_mem that symlink will be created
  675. if ( ! $glob_win32 )
  676. {
  677. # Only platforms that have native symlinks can use the vardir trick
  678. $opt_mem= $opt_vardir;
  679. mtr_report("Using 4.1 vardir trick");
  680. }
  681. $opt_vardir= $default_vardir;
  682. }
  683. $path_vardir_trace= $opt_vardir;
  684. # Chop off any "c:", DBUG likes a unix path ex: c:/src/... => /src/...
  685. $path_vardir_trace=~ s/^\w://;
  686. # We make the path absolute, as the server will do a chdir() before usage
  687. unless ( $opt_vardir =~ m,^/, or
  688. ($glob_win32 and $opt_vardir =~ m,^[a-z]:/,i) )
  689. {
  690. # Make absolute path, relative test dir
  691. $opt_vardir= "$glob_mysql_test_dir/$opt_vardir";
  692. }
  693. # --------------------------------------------------------------------------
  694. # Set tmpdir
  695. # --------------------------------------------------------------------------
  696. $opt_tmpdir= "$opt_vardir/tmp" unless $opt_tmpdir;
  697. $opt_tmpdir =~ s,/+$,,; # Remove ending slash if any
  698. # --------------------------------------------------------------------------
  699. # Check im suport
  700. # --------------------------------------------------------------------------
  701. if ( $mysql_version_id < 50000 )
  702. {
  703. # Instance manager is not supported until 5.0
  704. $opt_skip_im= 1;
  705. }
  706. if ( $glob_win32 )
  707. {
  708. mtr_report("Disable Instance manager - not supported on Windows");
  709. $opt_skip_im= 1;
  710. }
  711. # --------------------------------------------------------------------------
  712. # Record flag
  713. # --------------------------------------------------------------------------
  714. if ( $opt_record and ! @opt_cases )
  715. {
  716. mtr_error("Will not run in record mode without a specific test case");
  717. }
  718. # --------------------------------------------------------------------------
  719. # Embedded server flag
  720. # --------------------------------------------------------------------------
  721. if ( $opt_embedded_server )
  722. {
  723. $glob_use_embedded_server= 1;
  724. push(@glob_test_mode, "embedded");
  725. $opt_skip_rpl= 1; # We never run replication with embedded
  726. $opt_skip_ndbcluster= 1; # Turn off use of NDB cluster
  727. $opt_skip_ssl= 1; # Turn off use of SSL
  728. if ( $opt_extern )
  729. {
  730. mtr_error("Can't use --extern with --embedded-server");
  731. }
  732. }
  733. # --------------------------------------------------------------------------
  734. # ps protcol flag
  735. # --------------------------------------------------------------------------
  736. if ( $opt_ps_protocol )
  737. {
  738. push(@glob_test_mode, "ps-protocol");
  739. }
  740. # --------------------------------------------------------------------------
  741. # Ndb cluster flags
  742. # --------------------------------------------------------------------------
  743. if ( $opt_with_ndbcluster and !$opt_bench)
  744. {
  745. mtr_error("Can only use --with-ndbcluster togheter with --bench");
  746. }
  747. if ( $opt_ndbconnectstring )
  748. {
  749. $glob_use_running_ndbcluster= 1;
  750. mtr_error("Can't specify --ndb-connectstring and --skip-ndbcluster")
  751. if $opt_skip_ndbcluster;
  752. mtr_error("Can't specify --ndb-connectstring and --ndbcluster-port")
  753. if $opt_ndbcluster_port;
  754. }
  755. else
  756. {
  757. # Set default connect string
  758. $opt_ndbconnectstring= "host=localhost:$opt_ndbcluster_port";
  759. }
  760. if ( $opt_ndbconnectstring_slave )
  761. {
  762. $glob_use_running_ndbcluster_slave= 1;
  763. mtr_error("Can't specify ndb-connectstring_slave and " .
  764. "--skip-ndbcluster-slave")
  765. if $opt_skip_ndbcluster;
  766. mtr_error("Can't specify --ndb-connectstring-slave and " .
  767. "--ndbcluster-port-slave")
  768. if $opt_ndbcluster_port_slave;
  769. }
  770. else
  771. {
  772. # Set default connect string
  773. $opt_ndbconnectstring_slave= "host=localhost:$opt_ndbcluster_port_slave";
  774. }
  775. # --------------------------------------------------------------------------
  776. # Bench flags
  777. # --------------------------------------------------------------------------
  778. if ( $opt_small_bench )
  779. {
  780. $opt_bench= 1;
  781. }
  782. # --------------------------------------------------------------------------
  783. # Big test flags
  784. # --------------------------------------------------------------------------
  785. if ( $opt_big_test )
  786. {
  787. $ENV{'BIG_TEST'}= 1;
  788. }
  789. # --------------------------------------------------------------------------
  790. # Gcov flag
  791. # --------------------------------------------------------------------------
  792. if ( $opt_gcov and ! $source_dist )
  793. {
  794. mtr_error("Coverage test needs the source - please use source dist");
  795. }
  796. # --------------------------------------------------------------------------
  797. # Check debug related options
  798. # --------------------------------------------------------------------------
  799. if ( $opt_gdb || $opt_client_gdb || $opt_ddd || $opt_client_ddd ||
  800. $opt_manual_gdb || $opt_manual_ddd || $opt_manual_debug ||
  801. $opt_debugger || $opt_client_debugger )
  802. {
  803. # Indicate that we are using debugger
  804. $glob_debugger= 1;
  805. if ( $opt_extern )
  806. {
  807. mtr_error("Can't use --extern when using debugger");
  808. }
  809. }
  810. # --------------------------------------------------------------------------
  811. # Check if special exe was selected for master or slave
  812. # --------------------------------------------------------------------------
  813. $exe_master_mysqld= $exe_master_mysqld || $exe_mysqld;
  814. $exe_slave_mysqld= $exe_slave_mysqld || $exe_mysqld;
  815. # --------------------------------------------------------------------------
  816. # Check valgrind arguments
  817. # --------------------------------------------------------------------------
  818. if ( $opt_valgrind or $opt_valgrind_path or defined $opt_valgrind_options)
  819. {
  820. mtr_report("Turning on valgrind for all executables");
  821. $opt_valgrind= 1;
  822. $opt_valgrind_mysqld= 1;
  823. $opt_valgrind_mysqltest= 1;
  824. }
  825. elsif ( $opt_valgrind_mysqld )
  826. {
  827. mtr_report("Turning on valgrind for mysqld(s) only");
  828. $opt_valgrind= 1;
  829. }
  830. elsif ( $opt_valgrind_mysqltest )
  831. {
  832. mtr_report("Turning on valgrind for mysqltest and mysql_client_test only");
  833. $opt_valgrind= 1;
  834. }
  835. if ( $opt_callgrind )
  836. {
  837. mtr_report("Turning on valgrind with callgrind for mysqld(s)");
  838. $opt_valgrind= 1;
  839. $opt_valgrind_mysqld= 1;
  840. # Set special valgrind options unless options passed on command line
  841. $opt_valgrind_options="--trace-children=yes"
  842. unless defined $opt_valgrind_options;
  843. }
  844. if ( $opt_valgrind )
  845. {
  846. # Set valgrind_options to default unless already defined
  847. $opt_valgrind_options=$default_valgrind_options
  848. unless defined $opt_valgrind_options;
  849. mtr_report("Running valgrind with options \"$opt_valgrind_options\"");
  850. }
  851. if ( ! $opt_testcase_timeout )
  852. {
  853. $opt_testcase_timeout= $default_testcase_timeout;
  854. $opt_testcase_timeout*= 10 if $opt_valgrind;
  855. }
  856. if ( ! $opt_suite_timeout )
  857. {
  858. $opt_suite_timeout= $default_suite_timeout;
  859. $opt_suite_timeout*= 6 if $opt_valgrind;
  860. }
  861. if ( ! $opt_user )
  862. {
  863. if ( $opt_extern )
  864. {
  865. $opt_user= "test";
  866. }
  867. else
  868. {
  869. $opt_user= "root"; # We want to do FLUSH xxx commands
  870. }
  871. }
  872. # On QNX, /tmp/dir/master.sock and /tmp/dir//master.sock seem to be
  873. # considered different, so avoid the extra slash (/) in the socket
  874. # paths.
  875. my $sockdir = $opt_tmpdir;
  876. $sockdir =~ s|/+$||;
  877. # Put this into a hash, will be a C struct
  878. $master->[0]=
  879. {
  880. pid => 0,
  881. type => "master",
  882. idx => 0,
  883. path_myddir => "$opt_vardir/master-data",
  884. path_myerr => "$opt_vardir/log/master.err",
  885. path_mylog => "$opt_vardir/log/master.log",
  886. path_pid => "$opt_vardir/run/master.pid",
  887. path_sock => "$sockdir/master.sock",
  888. port => $opt_master_myport,
  889. start_timeout => 400, # enough time create innodb tables
  890. cluster => 0, # index in clusters list
  891. start_opts => [],
  892. };
  893. $master->[1]=
  894. {
  895. pid => 0,
  896. type => "master",
  897. idx => 1,
  898. path_myddir => "$opt_vardir/master1-data",
  899. path_myerr => "$opt_vardir/log/master1.err",
  900. path_mylog => "$opt_vardir/log/master1.log",
  901. path_pid => "$opt_vardir/run/master1.pid",
  902. path_sock => "$sockdir/master1.sock",
  903. port => $opt_master_myport + 1,
  904. start_timeout => 400, # enough time create innodb tables
  905. cluster => 0, # index in clusters list
  906. start_opts => [],
  907. };
  908. $slave->[0]=
  909. {
  910. pid => 0,
  911. type => "slave",
  912. idx => 0,
  913. path_myddir => "$opt_vardir/slave-data",
  914. path_myerr => "$opt_vardir/log/slave.err",
  915. path_mylog => "$opt_vardir/log/slave.log",
  916. path_pid => "$opt_vardir/run/slave.pid",
  917. path_sock => "$sockdir/slave.sock",
  918. port => $opt_slave_myport,
  919. start_timeout => 400,
  920. cluster => 1, # index in clusters list
  921. start_opts => [],
  922. };
  923. $slave->[1]=
  924. {
  925. pid => 0,
  926. type => "slave",
  927. idx => 1,
  928. path_myddir => "$opt_vardir/slave1-data",
  929. path_myerr => "$opt_vardir/log/slave1.err",
  930. path_mylog => "$opt_vardir/log/slave1.log",
  931. path_pid => "$opt_vardir/run/slave1.pid",
  932. path_sock => "$sockdir/slave1.sock",
  933. port => $opt_slave_myport + 1,
  934. start_timeout => 300,
  935. cluster => -1, # index in clusters list
  936. start_opts => [],
  937. };
  938. $slave->[2]=
  939. {
  940. pid => 0,
  941. type => "slave",
  942. idx => 2,
  943. path_myddir => "$opt_vardir/slave2-data",
  944. path_myerr => "$opt_vardir/log/slave2.err",
  945. path_mylog => "$opt_vardir/log/slave2.log",
  946. path_pid => "$opt_vardir/run/slave2.pid",
  947. path_sock => "$sockdir/slave2.sock",
  948. port => $opt_slave_myport + 2,
  949. start_timeout => 300,
  950. cluster => -1, # index in clusters list
  951. start_opts => [],
  952. };
  953. $instance_manager=
  954. {
  955. path_err => "$opt_vardir/log/im.err",
  956. path_log => "$opt_vardir/log/im.log",
  957. path_pid => "$opt_vardir/run/im.pid",
  958. path_angel_pid => "$opt_vardir/run/im.angel.pid",
  959. path_sock => "$sockdir/im.sock",
  960. port => $im_port,
  961. start_timeout => $master->[0]->{'start_timeout'},
  962. admin_login => 'im_admin',
  963. admin_password => 'im_admin_secret',
  964. admin_sha1 => '*598D51AD2DFF7792045D6DF3DDF9AA1AF737B295',
  965. password_file => "$opt_vardir/im.passwd",
  966. defaults_file => "$opt_vardir/im.cnf",
  967. };
  968. $instance_manager->{'instances'}->[0]=
  969. {
  970. server_id => 1,
  971. port => $im_mysqld1_port,
  972. path_datadir => "$opt_vardir/im_mysqld_1.data",
  973. path_sock => "$sockdir/mysqld_1.sock",
  974. path_pid => "$opt_vardir/run/mysqld_1.pid",
  975. start_timeout => 400, # enough time create innodb tables
  976. old_log_format => 1
  977. };
  978. $instance_manager->{'instances'}->[1]=
  979. {
  980. server_id => 2,
  981. port => $im_mysqld2_port,
  982. path_datadir => "$opt_vardir/im_mysqld_2.data",
  983. path_sock => "$sockdir/mysqld_2.sock",
  984. path_pid => "$opt_vardir/run/mysqld_2.pid",
  985. nonguarded => 1,
  986. start_timeout => 400, # enough time create innodb tables
  987. old_log_format => 1
  988. };
  989. my $data_dir= "$opt_vardir/ndbcluster-$opt_ndbcluster_port";
  990. $clusters->[0]=
  991. {
  992. name => "Master",
  993. nodes => 2,
  994. port => "$opt_ndbcluster_port",
  995. data_dir => "$data_dir",
  996. connect_string => "$opt_ndbconnectstring",
  997. path_pid => "$data_dir/ndb_3.pid", # Nodes + 1
  998. pid => 0, # pid of ndb_mgmd
  999. installed_ok => 0,
  1000. };
  1001. $data_dir= "$opt_vardir/ndbcluster-$opt_ndbcluster_port_slave";
  1002. $clusters->[1]=
  1003. {
  1004. name => "Slave",
  1005. nodes => 1,
  1006. port => "$opt_ndbcluster_port_slave",
  1007. data_dir => "$data_dir",
  1008. connect_string => "$opt_ndbconnectstring_slave",
  1009. path_pid => "$data_dir/ndb_2.pid", # Nodes + 1
  1010. pid => 0, # pid of ndb_mgmd
  1011. installed_ok => 0,
  1012. };
  1013. # Init pids of ndbd's
  1014. foreach my $cluster ( @{$clusters} )
  1015. {
  1016. for ( my $idx= 0; $idx < $cluster->{'nodes'}; $idx++ )
  1017. {
  1018. my $nodeid= $idx+1;
  1019. $cluster->{'ndbds'}->[$idx]=
  1020. {
  1021. pid => 0,
  1022. nodeid => $nodeid,
  1023. path_pid => "$cluster->{'data_dir'}/ndb_${nodeid}.pid",
  1024. path_fs => "$cluster->{'data_dir'}/ndb_${nodeid}_fs",
  1025. };
  1026. }
  1027. }
  1028. if ( $opt_extern )
  1029. {
  1030. # Turn off features not supported when running with extern server
  1031. $opt_skip_rpl= 1;
  1032. # Setup master->[0] with the settings for the extern server
  1033. $master->[0]->{'path_sock'}= $opt_socket if $opt_socket;
  1034. mtr_report("Using extern server at '$master->[0]->{path_sock}'");
  1035. }
  1036. else
  1037. {
  1038. mtr_error("--socket can only be used in combination with --extern")
  1039. if $opt_socket;
  1040. }
  1041. $path_timefile= "$opt_vardir/log/mysqltest-time";
  1042. $path_mysqltest_log= "$opt_vardir/log/mysqltest.log";
  1043. $path_current_test_log= "$opt_vardir/log/current_test";
  1044. $path_ndb_testrun_log= "$opt_vardir/log/ndb_testrun.log";
  1045. $path_snapshot= "$opt_tmpdir/snapshot_$opt_master_myport/";
  1046. }
  1047. #
  1048. # To make it easier for different devs to work on the same host,
  1049. # an environment variable can be used to control all ports. A small
  1050. # number is to be used, 0 - 16 or similar.
  1051. #
  1052. # Note the MASTER_MYPORT has to be set the same in all 4.x and 5.x
  1053. # versions of this script, else a 4.0 test run might conflict with a
  1054. # 5.1 test run, even if different MTR_BUILD_THREAD is used. This means
  1055. # all port numbers might not be used in this version of the script.
  1056. #
  1057. # Also note the limitation of ports we are allowed to hand out. This
  1058. # differs between operating systems and configuration, see
  1059. # http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html
  1060. # But a fairly safe range seems to be 5001 - 32767
  1061. #
  1062. sub set_mtr_build_thread_ports($) {
  1063. my $mtr_build_thread= shift;
  1064. if ( lc($mtr_build_thread) eq 'auto' ) {
  1065. print "Requesting build thread... ";
  1066. $ENV{'MTR_BUILD_THREAD'} = $mtr_build_thread = mtr_require_unique_id_and_wait("/tmp/mysql-test-ports", 200, 299);
  1067. print "got ".$mtr_build_thread."\n";
  1068. }
  1069. # Up to two masters, up to three slaves
  1070. $opt_master_myport= $mtr_build_thread * 10 + 10000; # and 1
  1071. $opt_slave_myport= $opt_master_myport + 2; # and 3 4
  1072. $opt_ndbcluster_port= $opt_master_myport + 5;
  1073. $opt_ndbcluster_port_slave= $opt_master_myport + 6;
  1074. $im_port= $opt_master_myport + 7;
  1075. $im_mysqld1_port= $opt_master_myport + 8;
  1076. $im_mysqld2_port= $opt_master_myport + 9;
  1077. if ( $opt_master_myport < 5001 or $opt_master_myport + 10 >= 32767 )
  1078. {
  1079. mtr_error("MTR_BUILD_THREAD number results in a port",
  1080. "outside 5001 - 32767",
  1081. "($opt_master_myport - $opt_master_myport + 10)");
  1082. }
  1083. }
  1084. sub datadir_list_setup () {
  1085. # Make a list of all data_dirs
  1086. @data_dir_lst = (
  1087. $master->[0]->{'path_myddir'},
  1088. $master->[1]->{'path_myddir'});
  1089. for (my $idx= 0; $idx < $max_slave_num; $idx++)
  1090. {
  1091. push(@data_dir_lst, $slave->[$idx]->{'path_myddir'});
  1092. }
  1093. unless ($opt_skip_im)
  1094. {
  1095. foreach my $instance (@{$instance_manager->{'instances'}})
  1096. {
  1097. push(@data_dir_lst, $instance->{'path_datadir'});
  1098. }
  1099. }
  1100. }
  1101. ##############################################################################
  1102. #
  1103. # Set paths to various executable programs
  1104. #
  1105. ##############################################################################
  1106. sub collect_mysqld_features () {
  1107. my $found_variable_list_start= 0;
  1108. #
  1109. # Execute "mysqld --no-defaults --help --verbose" to get a
  1110. # of all features and settings
  1111. #
  1112. my $list= `$exe_mysqld --no-defaults --verbose --help`;
  1113. foreach my $line (split('\n', $list))
  1114. {
  1115. # First look for version
  1116. if ( !$mysql_version_id )
  1117. {
  1118. # Look for version
  1119. my $exe_name= basename($exe_mysqld);
  1120. mtr_verbose("exe_name: $exe_name");
  1121. if ( $line =~ /^\S*$exe_name\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)/ )
  1122. {
  1123. #print "Major: $1 Minor: $2 Build: $3\n";
  1124. $mysql_version_id= $1*10000 + $2*100 + $3;
  1125. #print "mysql_version_id: $mysql_version_id\n";
  1126. mtr_report("MySQL Version $1.$2.$3");
  1127. }
  1128. }
  1129. else
  1130. {
  1131. if (!$found_variable_list_start)
  1132. {
  1133. # Look for start of variables list
  1134. if ( $line =~ /[\-]+\s[\-]+/ )
  1135. {
  1136. $found_variable_list_start= 1;
  1137. }
  1138. }
  1139. else
  1140. {
  1141. # Put variables into hash
  1142. if ( $line =~ /^([\S]+)[ \t]+(.*?)\r?$/ )
  1143. {
  1144. # print "$1=\"$2\"\n";
  1145. $mysqld_variables{$1}= $2;
  1146. }
  1147. else
  1148. {
  1149. # The variable list is ended with a blank line
  1150. if ( $line =~ /^[\s]*$/ )
  1151. {
  1152. last;
  1153. }
  1154. else
  1155. {
  1156. # Send out a warning, we should fix the variables that has no
  1157. # space between variable name and it's value
  1158. # or should it be fixed width column parsing? It does not
  1159. # look like that in function my_print_variables in my_getopt.c
  1160. mtr_warning("Could not parse variable list line : $line");
  1161. }
  1162. }
  1163. }
  1164. }
  1165. }
  1166. mtr_error("Could not find version of MySQL") unless $mysql_version_id;
  1167. mtr_error("Could not find variabes list") unless $found_variable_list_start;
  1168. }
  1169. sub executable_setup_im () {
  1170. # Look for instance manager binary - mysqlmanager
  1171. $exe_im=
  1172. mtr_exe_maybe_exists(
  1173. "$glob_basedir/server-tools/instance-manager/mysqlmanager",
  1174. "$glob_basedir/libexec/mysqlmanager",
  1175. "$glob_basedir/bin/mysqlmanager",
  1176. "$glob_basedir/sbin/mysqlmanager");
  1177. return ($exe_im eq "");
  1178. }
  1179. sub executable_setup_ndb () {
  1180. # Look for ndb tols and binaries
  1181. my $ndb_path= mtr_file_exists("$glob_basedir/ndb",
  1182. "$glob_basedir/storage/ndb",
  1183. "$glob_basedir/bin");
  1184. $exe_ndbd=
  1185. mtr_exe_maybe_exists("$ndb_path/src/kernel/ndbd",
  1186. "$ndb_path/ndbd");
  1187. $exe_ndb_mgm=
  1188. mtr_exe_maybe_exists("$ndb_path/src/mgmclient/ndb_mgm",
  1189. "$ndb_path/ndb_mgm");
  1190. $exe_ndb_mgmd=
  1191. mtr_exe_maybe_exists("$ndb_path/src/mgmsrv/ndb_mgmd",
  1192. "$ndb_path/ndb_mgmd");
  1193. $exe_ndb_waiter=
  1194. mtr_exe_maybe_exists("$ndb_path/tools/ndb_waiter",
  1195. "$ndb_path/ndb_waiter");
  1196. # May not exist
  1197. $path_ndb_tools_dir= mtr_file_exists("$ndb_path/tools",
  1198. "$ndb_path");
  1199. # May not exist
  1200. $path_ndb_examples_dir=
  1201. mtr_file_exists("$ndb_path/ndbapi-examples",
  1202. "$ndb_path/examples");
  1203. # May not exist
  1204. $exe_ndb_example=
  1205. mtr_file_exists("$path_ndb_examples_dir/ndbapi_simple/ndbapi_simple");
  1206. return ( $exe_ndbd eq "" or
  1207. $exe_ndb_mgm eq "" or
  1208. $exe_ndb_mgmd eq "" or
  1209. $exe_ndb_waiter eq "");
  1210. }
  1211. sub executable_setup () {
  1212. #
  1213. # Check if libtool is available in this distribution/clone
  1214. # we need it when valgrinding or debugging non installed binary
  1215. # Otherwise valgrind will valgrind the libtool wrapper or bash
  1216. # and gdb will not find the real executable to debug
  1217. #
  1218. if ( -x "../libtool")
  1219. {
  1220. $exe_libtool= "../libtool";
  1221. if ($opt_valgrind or $glob_debugger)
  1222. {
  1223. mtr_report("Using \"$exe_libtool\" when running valgrind or debugger");
  1224. }
  1225. }
  1226. # Look for language files and charsetsdir, use same share
  1227. my $path_share= mtr_path_exists("$glob_basedir/share/mysql",
  1228. "$glob_basedir/sql/share",
  1229. "$glob_basedir/share");
  1230. $path_language= mtr_path_exists("$path_share/english");
  1231. $path_charsetsdir= mtr_path_exists("$path_share/charsets");
  1232. # Look for my_print_defaults
  1233. $exe_my_print_defaults=
  1234. mtr_exe_exists(vs_config_dirs('extra', 'my_print_defaults'),
  1235. "$path_client_bindir/my_print_defaults",
  1236. "$glob_basedir/extra/my_print_defaults");
  1237. # Look for perror
  1238. $exe_perror= mtr_exe_exists(vs_config_dirs('extra', 'perror'),
  1239. "$glob_basedir/extra/perror",
  1240. "$path_client_bindir/perror");
  1241. # Look for the client binaries
  1242. $exe_mysqlcheck= mtr_exe_exists("$path_client_bindir/mysqlcheck");
  1243. $exe_mysqldump= mtr_exe_exists("$path_client_bindir/mysqldump");
  1244. $exe_mysqlimport= mtr_exe_exists("$path_client_bindir/mysqlimport");
  1245. $exe_mysqlshow= mtr_exe_exists("$path_client_bindir/mysqlshow");
  1246. $exe_mysqlbinlog= mtr_exe_exists("$path_client_bindir/mysqlbinlog");
  1247. $exe_mysqladmin= mtr_exe_exists("$path_client_bindir/mysqladmin");
  1248. $exe_mysql= mtr_exe_exists("$path_client_bindir/mysql");
  1249. if ( $mysql_version_id >= 50100 )
  1250. {
  1251. $exe_mysqlslap= mtr_exe_exists("$path_client_bindir/mysqlslap");
  1252. }
  1253. if ( $mysql_version_id >= 50000 and !$glob_use_embedded_server )
  1254. {
  1255. $exe_mysql_upgrade= mtr_exe_exists("$path_client_bindir/mysql_upgrade")
  1256. }
  1257. else
  1258. {
  1259. $exe_mysql_upgrade= "";
  1260. }
  1261. if ( ! $glob_win32 )
  1262. {
  1263. # Look for mysql_fix_system_table script
  1264. $exe_mysql_fix_system_tables=
  1265. mtr_script_exists("$glob_basedir/scripts/mysql_fix_privilege_tables",
  1266. "$path_client_bindir/mysql_fix_privilege_tables");
  1267. }
  1268. # Look for mysql_fix_privilege_tables.sql script
  1269. $file_mysql_fix_privilege_tables=
  1270. mtr_file_exists("$glob_basedir/scripts/mysql_fix_privilege_tables.sql",
  1271. "$glob_basedir/share/mysql_fix_privilege_tables.sql");
  1272. if ( ! $opt_skip_ndbcluster and executable_setup_ndb())
  1273. {
  1274. mtr_warning("Could not find all required ndb binaries, " .
  1275. "all ndb tests will fail, use --skip-ndbcluster to " .
  1276. "skip testing it.");
  1277. foreach my $cluster (@{$clusters})
  1278. {
  1279. $cluster->{"executable_setup_failed"}= 1;
  1280. }
  1281. }
  1282. if ( ! $opt_skip_im and executable_setup_im())
  1283. {
  1284. mtr_warning("Could not find all required instance manager binaries, " .
  1285. "all im tests will fail, use --skip-im to " .
  1286. "continue without instance manager");
  1287. $instance_manager->{"executable_setup_failed"}= 1;
  1288. }
  1289. # Look for the udf_example library
  1290. $lib_udf_example=
  1291. mtr_file_exists(vs_config_dirs('sql', 'udf_example.dll'),
  1292. "$glob_basedir/sql/.libs/udf_example.so",);
  1293. # Look for mysqltest executable
  1294. if ( $glob_use_embedded_server )
  1295. {
  1296. $exe_mysqltest=
  1297. mtr_exe_exists(vs_config_dirs('libmysqld/examples','mysqltest_embedded'),
  1298. "$glob_basedir/libmysqld/examples/mysqltest_embedded",
  1299. "$path_client_bindir/mysqltest_embedded");
  1300. }
  1301. else
  1302. {
  1303. $exe_mysqltest= mtr_exe_exists("$path_client_bindir/mysqltest");
  1304. }
  1305. # Look for mysql_client_test executable which may _not_ exist in
  1306. # some versions, test using it should be skipped
  1307. if ( $glob_use_embedded_server )
  1308. {
  1309. $exe_mysql_client_test=
  1310. mtr_exe_maybe_exists(
  1311. vs_config_dirs('libmysqld/examples', 'mysql_client_test_embedded'),
  1312. "$glob_basedir/libmysqld/examples/mysql_client_test_embedded");
  1313. }
  1314. else
  1315. {
  1316. $exe_mysql_client_test=
  1317. mtr_exe_maybe_exists(vs_config_dirs('tests', 'mysql_client_test'),
  1318. "$glob_basedir/tests/mysql_client_test",
  1319. "$glob_basedir/bin/mysql_client_test");
  1320. }
  1321. }
  1322. sub generate_cmdline_mysqldump ($) {
  1323. my($mysqld) = @_;
  1324. return
  1325. "$exe_mysqldump --no-defaults -uroot " .
  1326. "--port=$mysqld->{'port'} " .
  1327. "--socket=$mysqld->{'path_sock'} --password=";
  1328. }
  1329. ##############################################################################
  1330. #
  1331. # Set environment to be used by childs of this process for
  1332. # things that are constant duting the whole lifetime of mysql-test-run.pl
  1333. #
  1334. ##############################################################################
  1335. sub mysql_client_test_arguments()
  1336. {
  1337. my $exe= $exe_mysql_client_test;
  1338. my $args;
  1339. mtr_init_args(\$args);
  1340. if ( $opt_valgrind_mysqltest )
  1341. {
  1342. valgrind_arguments($args, \$exe);
  1343. }
  1344. mtr_add_arg($args, "--no-defaults");
  1345. mtr_add_arg($args, "--testcase");
  1346. mtr_add_arg($args, "--user=root");
  1347. mtr_add_arg($args, "--port=$master->[0]->{'port'}");
  1348. mtr_add_arg($args, "--socket=$master->[0]->{'path_sock'}");
  1349. if ( $mysql_version_id >= 50000 )
  1350. {
  1351. mtr_add_arg($args, "--vardir=$opt_vardir")
  1352. }
  1353. if ( $opt_debug )
  1354. {
  1355. mtr_add_arg($args,
  1356. "--debug=d:t:A,$path_vardir_trace/log/mysql_client_test.trace");
  1357. }
  1358. if ( $glob_use_embedded_server )
  1359. {
  1360. mtr_add_arg($args,
  1361. " -A --language=$path_language");
  1362. mtr_add_arg($args,
  1363. " -A --datadir=$slave->[0]->{'path_myddir'}");
  1364. mtr_add_arg($args,
  1365. " -A --character-sets-dir=$path_charsetsdir");
  1366. }
  1367. return join(" ", $exe, @$args);
  1368. }
  1369. sub mysql_upgrade_arguments()
  1370. {
  1371. my $exe= $exe_mysql_upgrade;
  1372. my $args;
  1373. mtr_init_args(\$args);
  1374. # if ( $opt_valgrind_mysql_ugrade )
  1375. # {
  1376. # valgrind_arguments($args, \$exe);
  1377. # }
  1378. mtr_add_arg($args, "--no-defaults");
  1379. mtr_add_arg($args, "--user=root");
  1380. mtr_add_arg($args, "--port=$master->[0]->{'port'}");
  1381. mtr_add_arg($args, "--socket=$master->[0]->{'path_sock'}");
  1382. mtr_add_arg($args, "--datadir=$master->[0]->{'path_myddir'}");
  1383. mtr_add_arg($args, "--basedir=$glob_basedir");
  1384. if ( $opt_debug )
  1385. {
  1386. mtr_add_arg($args,
  1387. "--debug=d:t:A,$path_vardir_trace/log/mysql_upgrade.trace");
  1388. }
  1389. return join(" ", $exe, @$args);
  1390. }
  1391. # Note that some env is setup in spawn/run, in "mtr_process.pl"
  1392. sub environment_setup () {
  1393. umask(022);
  1394. my @ld_library_paths;
  1395. # --------------------------------------------------------------------------
  1396. # Setup LD_LIBRARY_PATH so the libraries from this distro/clone
  1397. # are used in favor of the system installed ones
  1398. # --------------------------------------------------------------------------
  1399. if ( $source_dist )
  1400. {
  1401. push(@ld_library_paths, "$glob_basedir/libmysql/.libs/",
  1402. "$glob_basedir/libmysql_r/.libs/",
  1403. "$glob_basedir/zlib.libs/");
  1404. }
  1405. else
  1406. {
  1407. push(@ld_library_paths, "$glob_basedir/lib");
  1408. }
  1409. # --------------------------------------------------------------------------
  1410. # Add the path where libndbclient can be found
  1411. # --------------------------------------------------------------------------
  1412. if ( $glob_ndbcluster_supported )
  1413. {
  1414. push(@ld_library_paths, "$glob_basedir/storage/ndb/src/.libs");
  1415. }
  1416. # --------------------------------------------------------------------------
  1417. # Add the path where mysqld will find udf_example.so
  1418. # --------------------------------------------------------------------------
  1419. if ( $lib_udf_example )
  1420. {
  1421. push(@ld_library_paths, dirname($lib_udf_example));
  1422. }
  1423. # --------------------------------------------------------------------------
  1424. # Valgrind need to be run with debug libraries otherwise it's almost
  1425. # impossible to add correct supressions, that means if "/usr/lib/debug"
  1426. # is available, it should be added to
  1427. # LD_LIBRARY_PATH
  1428. #
  1429. # But pthread is broken in libc6-dbg on Debian <= 3.1 (see Debian
  1430. # bug 399035, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=399035),
  1431. # so don't change LD_LIBRARY_PATH on that platform.
  1432. # --------------------------------------------------------------------------
  1433. my $debug_libraries_path= "/usr/lib/debug";
  1434. my $deb_version;
  1435. if ( $opt_valgrind and -d $debug_libraries_path and
  1436. (! -e '/etc/debian_version' or
  1437. ($deb_version= mtr_grab_file('/etc/debian_version')) == 0 or
  1438. $deb_version > 3.1 ) )
  1439. {
  1440. push(@ld_library_paths, $debug_libraries_path);
  1441. }
  1442. $ENV{'LD_LIBRARY_PATH'}= join(":", @ld_library_paths,
  1443. $ENV{'LD_LIBRARY_PATHS'} ?
  1444. split(':', $ENV{'LD_LIBRARY_PATH'}) : ());
  1445. mtr_debug("LD_LIBRARY_PATH: $ENV{'LD_LIBRARY_PATH'}");
  1446. $ENV{'DYLD_LIBRARY_PATH'}= join(":", @ld_library_paths,
  1447. $ENV{'DYLD_LIBRARY_PATH'} ?
  1448. split(':', $ENV{'DYLD_LIBRARY_PATH'}) : ());
  1449. mtr_debug("DYLD_LIBRARY_PATH: $ENV{'DYLD_LIBRARY_PATH'}");
  1450. # --------------------------------------------------------------------------
  1451. # Also command lines in .opt files may contain env vars
  1452. # --------------------------------------------------------------------------
  1453. $ENV{'CHARSETSDIR'}= $path_charsetsdir;
  1454. $ENV{'UMASK'}= "0660"; # The octal *string*
  1455. $ENV{'UMASK_DIR'}= "0770"; # The octal *string*
  1456. $ENV{'LC_COLLATE'}= "C";
  1457. $ENV{'USE_RUNNING_SERVER'}= $opt_extern;
  1458. $ENV{'MYSQL_TEST_DIR'}= $glob_mysql_test_dir;
  1459. $ENV{'MYSQLTEST_VARDIR'}= $opt_vardir;
  1460. $ENV{'MYSQL_TMP_DIR'}= $opt_tmpdir;
  1461. $ENV{'MASTER_MYSOCK'}= $master->[0]->{'path_sock'};
  1462. $ENV{'MASTER_MYSOCK1'}= $master->[1]->{'path_sock'};
  1463. $ENV{'MASTER_MYPORT'}= $master->[0]->{'port'};
  1464. $ENV{'MASTER_MYPORT1'}= $master->[1]->{'port'};
  1465. $ENV{'SLAVE_MYSOCK'}= $slave->[0]->{'path_sock'};
  1466. $ENV{'SLAVE_MYPORT'}= $slave->[0]->{'port'};
  1467. $ENV{'SLAVE_MYPORT1'}= $slave->[1]->{'port'};
  1468. $ENV{'SLAVE_MYPORT2'}= $slave->[2]->{'port'};
  1469. $ENV{'MYSQL_TCP_PORT'}= $mysqld_variables{'port'};
  1470. $ENV{'DEFAULT_MASTER_PORT'}= $mysqld_variables{'master-port'};
  1471. $ENV{'IM_PATH_SOCK'}= $instance_manager->{path_sock};
  1472. $ENV{'IM_USERNAME'}= $instance_manager->{admin_login};
  1473. $ENV{'IM_PASSWORD'}= $instance_manager->{admin_password};
  1474. $ENV{MTR_BUILD_THREAD}= $opt_mtr_build_thread;
  1475. $ENV{'EXE_MYSQL'}= $exe_mysql;
  1476. # ----------------------------------------------------
  1477. # Setup env for NDB
  1478. # ----------------------------------------------------
  1479. if ( ! $opt_skip_ndbcluster )
  1480. {
  1481. $ENV{'NDB_MGM'}= $exe_ndb_mgm;
  1482. $ENV{'NDBCLUSTER_PORT'}= $opt_ndbcluster_port;
  1483. $ENV{'NDBCLUSTER_PORT_SLAVE'}= $opt_ndbcluster_port_slave;
  1484. $ENV{'NDB_EXTRA_TEST'}= $opt_ndb_extra_test;
  1485. $ENV{'NDB_BACKUP_DIR'}= $clusters->[0]->{'data_dir'};
  1486. $ENV{'NDB_DATA_DIR'}= $clusters->[0]->{'data_dir'};
  1487. $ENV{'NDB_TOOLS_DIR'}= $path_ndb_tools_dir;
  1488. $ENV{'NDB_TOOLS_OUTPUT'}= $path_ndb_testrun_log;
  1489. $ENV{'NDB_CONNECTSTRING'}= $opt_ndbconnectstring;
  1490. if ( $mysql_version_id >= 50000 )
  1491. {
  1492. $ENV{'NDB_EXAMPLES_DIR'}= $path_ndb_examples_dir;
  1493. $ENV{'MY_NDB_EXAMPLES_BINARY'}= $exe_ndb_example;
  1494. }
  1495. $ENV{'NDB_EXAMPLES_OUTPUT'}= $path_ndb_testrun_log;
  1496. }
  1497. # ----------------------------------------------------
  1498. # Setup env for IM
  1499. # ----------------------------------------------------
  1500. if ( ! $opt_skip_im )
  1501. {
  1502. $ENV{'IM_EXE'}= $exe_im;
  1503. $ENV{'IM_PATH_PID'}= $instance_manager->{path_pid};
  1504. $ENV{'IM_PATH_ANGEL_PID'}= $instance_manager->{path_angel_pid};
  1505. $ENV{'IM_PORT'}= $instance_manager->{port};
  1506. $ENV{'IM_DEFAULTS_PATH'}= $instance_manager->{defaults_file};
  1507. $ENV{'IM_PASSWORD_PATH'}= $instance_manager->{password_file};
  1508. $ENV{'IM_MYSQLD1_SOCK'}=
  1509. $instance_manager->{instances}->[0]->{path_sock};
  1510. $ENV{'IM_MYSQLD1_PORT'}=
  1511. $instance_manager->{instances}->[0]->{port};
  1512. $ENV{'IM_MYSQLD1_PATH_PID'}=
  1513. $instance_manager->{instances}->[0]->{path_pid};
  1514. $ENV{'IM_MYSQLD2_SOCK'}=
  1515. $instance_manager->{instances}->[1]->{path_sock};
  1516. $ENV{'IM_MYSQLD2_PORT'}=
  1517. $instance_manager->{instances}->[1]->{port};
  1518. $ENV{'IM_MYSQLD2_PATH_PID'}=
  1519. $instance_manager->{instances}->[1]->{path_pid};
  1520. }
  1521. # ----------------------------------------------------
  1522. # Setup env so childs can execute mysqlcheck
  1523. # ----------------------------------------------------
  1524. my $cmdline_mysqlcheck=
  1525. "$exe_mysqlcheck --no-defaults -uroot " .
  1526. "--port=$master->[0]->{'port'} " .
  1527. "--socket=$master->[0]->{'path_sock'} --password=";
  1528. if ( $opt_debug )
  1529. {
  1530. $cmdline_mysqlcheck .=
  1531. " --debug=d:t:A,$path_vardir_trace/log/mysqlcheck.trace";
  1532. }
  1533. $ENV{'MYSQL_CHECK'}= $cmdline_mysqlcheck;
  1534. # ----------------------------------------------------
  1535. # Setup env to childs can execute myqldump
  1536. # ----------------------------------------------------
  1537. my $cmdline_mysqldump= generate_cmdline_mysqldump($master->[0]);
  1538. my $cmdline_mysqldumpslave= generate_cmdline_mysqldump($slave->[0]);
  1539. if ( $opt_debug )
  1540. {
  1541. $cmdline_mysqldump .=
  1542. " --debug=d:t:A,$path_vardir_trace/log/mysqldump-master.trace";
  1543. $cmdline_mysqldumpslave .=
  1544. " --debug=d:t:A,$path_vardir_trace/log/mysqldump-slave.trace";
  1545. }
  1546. $ENV{'MYSQL_DUMP'}= $cmdline_mysqldump;
  1547. $ENV{'MYSQL_DUMP_SLAVE'}= $cmdline_mysqldumpslave;
  1548. # ----------------------------------------------------
  1549. # Setup env so childs can execute mysqlslap
  1550. # ----------------------------------------------------
  1551. if ( $exe_mysqlslap )
  1552. {
  1553. my $cmdline_mysqlslap=
  1554. "$exe_mysqlslap -uroot " .
  1555. "--port=$master->[0]->{'port'} " .
  1556. "--socket=$master->[0]->{'path_sock'} --password= " .
  1557. "--lock-directory=$opt_tmpdir";
  1558. if ( $opt_debug )
  1559. {
  1560. $cmdline_mysqlslap .=
  1561. " --debug=d:t:A,$path_vardir_trace/log/mysqlslap.trace";
  1562. }
  1563. $ENV{'MYSQL_SLAP'}= $cmdline_mysqlslap;
  1564. }
  1565. # ----------------------------------------------------
  1566. # Setup env so childs can execute mysqlimport
  1567. # ----------------------------------------------------
  1568. my $cmdline_mysqlimport=
  1569. "$exe_mysqlimport -uroot " .
  1570. "--port=$master->[0]->{'port'} " .
  1571. "--socket=$master->[0]->{'path_sock'} --password=";
  1572. if ( $opt_debug )
  1573. {
  1574. $cmdline_mysqlimport .=
  1575. " --debug=d:t:A,$path_vardir_trace/log/mysqlimport.trace";
  1576. }
  1577. $ENV{'MYSQL_IMPORT'}= $cmdline_mysqlimport;
  1578. # ----------------------------------------------------
  1579. # Setup env so childs can execute mysqlshow
  1580. # ----------------------------------------------------
  1581. my $cmdline_mysqlshow=
  1582. "$exe_mysqlshow -uroot " .
  1583. "--port=$master->[0]->{'port'} " .
  1584. "--socket=$master->[0]->{'path_sock'} --password=";
  1585. if ( $opt_debug )
  1586. {
  1587. $cmdline_mysqlshow .=
  1588. " --debug=d:t:A,$path_vardir_trace/log/mysqlshow.trace";
  1589. }
  1590. $ENV{'MYSQL_SHOW'}= $cmdline_mysqlshow;
  1591. # ----------------------------------------------------
  1592. # Setup env so childs can execute mysqlbinlog
  1593. # ----------------------------------------------------
  1594. my $cmdline_mysqlbinlog=
  1595. "$exe_mysqlbinlog" .
  1596. " --no-defaults --local-load=$opt_tmpdir";
  1597. if ( $mysql_version_id >= 50000 )
  1598. {
  1599. $cmdline_mysqlbinlog .=" --character-sets-dir=$path_charsetsdir";
  1600. }
  1601. if ( $opt_debug )
  1602. {
  1603. $cmdline_mysqlbinlog .=
  1604. " --debug=d:t:A,$path_vardir_trace/log/mysqlbinlog.trace";
  1605. }
  1606. $ENV{'MYSQL_BINLOG'}= $cmdline_mysqlbinlog;
  1607. # ----------------------------------------------------
  1608. # Setup env so childs can execute mysql
  1609. # ----------------------------------------------------
  1610. my $cmdline_mysql=
  1611. "$exe_mysql --no-defaults --host=localhost --user=root --password= " .
  1612. "--port=$master->[0]->{'port'} " .
  1613. "--socket=$master->[0]->{'path_sock'} ".
  1614. "--character-sets-dir=$path_charsetsdir";
  1615. $ENV{'MYSQL'}= $cmdline_mysql;
  1616. # ----------------------------------------------------
  1617. # Setup env so childs can execute mysql_client_test
  1618. # ----------------------------------------------------
  1619. $ENV{'MYSQL_CLIENT_TEST'}= mysql_client_test_arguments();
  1620. # ----------------------------------------------------
  1621. # Setup env so childs can execute mysql_upgrade
  1622. # ----------------------------------------------------
  1623. if ( $mysql_version_id >= 50000 )
  1624. {
  1625. $ENV{'MYSQL_UPGRADE'}= mysql_upgrade_arguments();
  1626. }
  1627. # ----------------------------------------------------
  1628. # Setup env so childs can execute mysql_fix_system_tables
  1629. # ----------------------------------------------------
  1630. if ( ! $glob_win32 )
  1631. {
  1632. my $cmdline_mysql_fix_system_tables=
  1633. "$exe_mysql_fix_system_tables --no-defaults --host=localhost " .
  1634. "--user=root --password= " .
  1635. "--basedir=$glob_basedir --bindir=$path_client_bindir --verbose " .
  1636. "--port=$master->[0]->{'port'} " .
  1637. "--socket=$master->[0]->{'path_sock'}";
  1638. $ENV{'MYSQL_FIX_SYSTEM_TABLES'}= $cmdline_mysql_fix_system_tables;
  1639. }
  1640. $ENV{'MYSQL_FIX_PRIVILEGE_TABLES'}= $file_mysql_fix_privilege_tables;
  1641. # ----------------------------------------------------
  1642. # Setup env so childs can execute my_print_defaults
  1643. # ----------------------------------------------------
  1644. $ENV{'MYSQL_MY_PRINT_DEFAULTS'}= $exe_my_print_defaults;
  1645. # ----------------------------------------------------
  1646. # Setup env so childs can execute mysqladmin
  1647. # ----------------------------------------------------
  1648. $ENV{'MYSQLADMIN'}= $exe_mysqladmin;
  1649. # ----------------------------------------------------
  1650. # Setup env so childs can execute perror
  1651. # ----------------------------------------------------
  1652. $ENV{'MY_PERROR'}= $exe_perror;
  1653. # ----------------------------------------------------
  1654. # Add the path where mysqld will find udf_example.so
  1655. # ----------------------------------------------------
  1656. $ENV{'UDF_EXAMPLE_LIB'}=
  1657. ($lib_udf_example ? basename($lib_udf_example) : "");
  1658. $ENV{'LD_LIBRARY_PATH'}=
  1659. ($lib_udf_example ? dirname($lib_udf_example) : "") .
  1660. ($ENV{'LD_LIBRARY_PATH'} ? ":$ENV{'LD_LIBRARY_PATH'}" : "");
  1661. # ----------------------------------------------------
  1662. # We are nice and report a bit about our settings
  1663. # ----------------------------------------------------
  1664. if (!$opt_extern)
  1665. {
  1666. print "Using MTR_BUILD_THREAD = $ENV{MTR_BUILD_THREAD}\n";
  1667. print "Using MASTER_MYPORT = $ENV{MASTER_MYPORT}\n";
  1668. print "Using MASTER_MYPORT1 = $ENV{MASTER_MYPORT1}\n";
  1669. print "Using SLAVE_MYPORT = $ENV{SLAVE_MYPORT}\n";
  1670. print "Using SLAVE_MYPORT1 = $ENV{SLAVE_MYPORT1}\n";
  1671. print "Using SLAVE_MYPORT2 = $ENV{SLAVE_MYPORT2}\n";
  1672. if ( ! $opt_skip_ndbcluster )
  1673. {
  1674. print "Using NDBCLUSTER_PORT = $ENV{NDBCLUSTER_PORT}\n";
  1675. if ( ! $opt_skip_ndbcluster_slave )
  1676. {
  1677. print "Using NDBCLUSTER_PORT_SLAVE = $ENV{NDBCLUSTER_PORT_SLAVE}\n";
  1678. }
  1679. }
  1680. if ( ! $opt_skip_im )
  1681. {
  1682. print "Using IM_PORT = $ENV{IM_PORT}\n";
  1683. print "Using IM_MYSQLD1_PORT = $ENV{IM_MYSQLD1_PORT}\n";
  1684. print "Using IM_MYSQLD2_PORT = $ENV{IM_MYSQLD2_PORT}\n";
  1685. }
  1686. }
  1687. # Create an environment variable to make it possible
  1688. # to detect that valgrind is being used from test cases
  1689. $ENV{'VALGRIND_TEST'}= $opt_valgrind;
  1690. }
  1691. ##############################################################################
  1692. #
  1693. # If we get a ^C, we try to clean up before termination
  1694. #
  1695. ##############################################################################
  1696. # FIXME check restrictions what to do in a signal handler
  1697. sub signal_setup () {
  1698. $SIG{INT}= \&handle_int_signal;
  1699. }
  1700. sub handle_int_signal () {
  1701. $SIG{INT}= 'DEFAULT'; # If we get a ^C again, we die...
  1702. mtr_warning("got INT signal, cleaning up.....");
  1703. stop_all_servers();
  1704. mtr_error("We die from ^C signal from user");
  1705. }
  1706. ##############################################################################
  1707. #
  1708. # Handle left overs from previous runs
  1709. #
  1710. ##############################################################################
  1711. sub kill_running_servers () {
  1712. if ( $opt_fast or $glob_use_embedded_server )
  1713. {
  1714. # FIXME is embedded server really using PID files?!
  1715. unlink($master->[0]->{'path_pid'});
  1716. unlink($master->[1]->{'path_pid'});
  1717. unlink($slave->[0]->{'path_pid'});
  1718. unlink($slave->[1]->{'path_pid'});
  1719. unlink($slave->[2]->{'path_pid'});
  1720. }
  1721. else
  1722. {
  1723. # Ensure that no old mysqld test servers are running
  1724. # This is different from terminating processes we have
  1725. # started from this run of the script, this is terminating
  1726. # leftovers from previous runs.
  1727. mtr_kill_leftovers();
  1728. }
  1729. }
  1730. #
  1731. # Remove var and any directories in var/ created by previous
  1732. # tests
  1733. #
  1734. sub remove_stale_vardir () {
  1735. mtr_report("Removing Stale Files");
  1736. # Safety!
  1737. mtr_error("No, don't remove the vardir when running with --extern")
  1738. if $opt_extern;
  1739. mtr_verbose("opt_vardir: $opt_vardir");
  1740. if ( $opt_vardir eq $default_vardir )
  1741. {
  1742. #
  1743. # Running with "var" in mysql-test dir
  1744. #
  1745. if ( -l $opt_vardir)
  1746. {
  1747. # var is a symlink
  1748. if ( $opt_mem and readlink($opt_vardir) eq $opt_mem )
  1749. {
  1750. # Remove the directory which the link points at
  1751. mtr_verbose("Removing " . readlink($opt_vardir));
  1752. rmtree(readlink($opt_vardir));
  1753. # Remove the "var" symlink
  1754. mtr_verbose("unlink($opt_vardir)");
  1755. unlink($opt_vardir);
  1756. }
  1757. elsif ( $opt_mem )
  1758. {
  1759. # Just remove the "var" symlink
  1760. mtr_report("WARNING: Removing '$opt_vardir' symlink it's wrong");
  1761. mtr_verbose("unlink($opt_vardir)");
  1762. unlink($opt_vardir);
  1763. }
  1764. else
  1765. {
  1766. # Some users creates a soft link in mysql-test/var to another area
  1767. # - allow it, but remove all files in it
  1768. mtr_report("WARNING: Using the 'mysql-test/var' symlink");
  1769. # Make sure the directory where it points exist
  1770. mtr_error("The destination for symlink $opt_vardir does not exist")
  1771. if ! -d readlink($opt_vardir);
  1772. foreach my $bin ( glob("$opt_vardir/*") )
  1773. {
  1774. mtr_verbose("Removing bin $bin");
  1775. rmtree($bin);
  1776. }
  1777. }
  1778. }
  1779. else
  1780. {
  1781. # Remove the entire "var" dir
  1782. mtr_verbose("Removing $opt_vardir/");
  1783. rmtree("$opt_vardir/");
  1784. }
  1785. }
  1786. else
  1787. {
  1788. #
  1789. # Running with "var" in some other place
  1790. #
  1791. # Remove the var/ dir in mysql-test dir if any
  1792. # this could be an old symlink that shouldn't be there
  1793. mtr_verbose("Removing $default_vardir");
  1794. rmtree($default_vardir);
  1795. # Remove the "var" dir
  1796. mtr_verbose("Removing $opt_vardir/");
  1797. rmtree("$opt_vardir/");
  1798. }
  1799. }
  1800. #
  1801. # Create var and the directories needed in var
  1802. #
  1803. sub setup_vardir() {
  1804. mtr_report("Creating Directories");
  1805. if ( $opt_vardir eq $default_vardir )
  1806. {
  1807. #
  1808. # Running with "var" in mysql-test dir
  1809. #
  1810. if ( -l $opt_vardir )
  1811. {
  1812. # it's a symlink
  1813. # Make sure the directory where it points exist
  1814. mtr_error("The destination for symlink $opt_vardir does not exist")
  1815. if ! -d readlink($opt_vardir);
  1816. }
  1817. elsif ( $opt_mem )
  1818. {
  1819. # Runinng with "var" as a link to some "memory" location, normally tmpfs
  1820. mtr_verbose("Creating $opt_mem");
  1821. mkpath($opt_mem);
  1822. mtr_report("Symlinking 'var' to '$opt_mem'");
  1823. symlink($opt_mem, $opt_vardir);
  1824. }
  1825. }
  1826. if ( ! -d $opt_vardir )
  1827. {
  1828. mtr_verbose("Creating $opt_vardir");
  1829. mkpath($opt_vardir);
  1830. }
  1831. # Ensure a proper error message if vardir couldn't be created
  1832. unless ( -d $opt_vardir and -w $opt_vardir )
  1833. {
  1834. mtr_error("Writable 'var' directory is needed, use the " .
  1835. "'--vardir=<path>' option");
  1836. }
  1837. mkpath("$opt_vardir/log");
  1838. mkpath("$opt_vardir/run");
  1839. mkpath("$opt_vardir/tmp");
  1840. mkpath($opt_tmpdir) if $opt_tmpdir ne "$opt_vardir/tmp";
  1841. # Create new data dirs
  1842. foreach my $data_dir (@data_dir_lst)
  1843. {
  1844. mkpath("$data_dir/mysql");
  1845. mkpath("$data_dir/test");
  1846. }
  1847. # Make a link std_data_ln in var/ that points to std_data
  1848. if ( ! $glob_win32 )
  1849. {
  1850. symlink("$glob_mysql_test_dir/std_data", "$opt_vardir/std_data_ln");
  1851. }
  1852. else
  1853. {
  1854. # on windows, copy all files from std_data into var/std_data_ln
  1855. mkpath("$opt_vardir/std_data_ln");
  1856. opendir(DIR, "$glob_mysql_test_dir/std_data")
  1857. or mtr_error("Can't find the std_data directory: $!");
  1858. for(readdir(DIR)) {
  1859. next if -d "$glob_mysql_test_dir/std_data/$_";
  1860. copy("$glob_mysql_test_dir/std_data/$_", "$opt_vardir/std_data_ln/$_");
  1861. }
  1862. closedir(DIR);
  1863. }
  1864. # Remove old log files
  1865. foreach my $name (glob("r/*.progress r/*.log r/*.warnings"))
  1866. {
  1867. unlink($name);
  1868. }
  1869. }
  1870. sub check_running_as_root () {
  1871. # Check if running as root
  1872. # i.e a file can be read regardless what mode we set it to
  1873. my $test_file= "$opt_vardir/test_running_as_root.txt";
  1874. mtr_tofile($test_file, "MySQL");
  1875. chmod(oct("0000"), $test_file);
  1876. my $result="";
  1877. if (open(FILE,"<",$test_file))
  1878. {
  1879. $result= join('', <FILE>);
  1880. close FILE;
  1881. }
  1882. chmod(oct("0755"), $test_file);
  1883. unlink($test_file);
  1884. $ENV{'MYSQL_TEST_ROOT'}= "NO";
  1885. if ($result eq "MySQL")
  1886. {
  1887. mtr_warning("running this script as _root_ will cause some " .
  1888. "tests to be skipped");
  1889. $ENV{'MYSQL_TEST_ROOT'}= "YES";
  1890. }
  1891. }
  1892. sub check_ssl_support ($) {
  1893. my $mysqld_variables= shift;
  1894. if ($opt_skip_ssl || $opt_extern)
  1895. {
  1896. mtr_report("Skipping SSL");
  1897. $opt_ssl_supported= 0;
  1898. $opt_ssl= 0;
  1899. return;
  1900. }
  1901. if ( ! $mysqld_variables->{'ssl'} )
  1902. {
  1903. if ( $opt_ssl)
  1904. {
  1905. mtr_error("Couldn't find support for SSL");
  1906. return;
  1907. }
  1908. mtr_report("Skipping SSL, mysqld not compiled with SSL");
  1909. $opt_ssl_supported= 0;
  1910. $opt_ssl= 0;
  1911. return;
  1912. }
  1913. mtr_report("Setting mysqld to support SSL connections");
  1914. $opt_ssl_supported= 1;
  1915. }
  1916. sub check_debug_support ($) {
  1917. my $mysqld_variables= shift;
  1918. if ( ! $mysqld_variables->{'debug'} )
  1919. {
  1920. #mtr_report("Binaries are not debug compiled");
  1921. $debug_compiled_binaries= 0;
  1922. if ( $opt_debug )
  1923. {
  1924. mtr_error("Can't use --debug, binaries does not support it");
  1925. }
  1926. return;
  1927. }
  1928. mtr_report("Binaries are debug compiled");
  1929. $debug_compiled_binaries= 1;
  1930. }
  1931. ##############################################################################
  1932. #
  1933. # Helper function to handle configuration-based subdirectories which Visual
  1934. # Studio uses for storing binaries. If opt_vs_config is set, this returns
  1935. # a path based on that setting; if not, it returns paths for the default
  1936. # /release/ and /debug/ subdirectories.
  1937. #
  1938. # $exe can be undefined, if the directory itself will be used
  1939. #
  1940. ###############################################################################
  1941. sub vs_config_dirs ($$) {
  1942. my ($path_part, $exe) = @_;
  1943. $exe = "" if not defined $exe;
  1944. if ($opt_vs_config)
  1945. {
  1946. return ("$glob_basedir/$path_part/$opt_vs_config/$exe");
  1947. }
  1948. return ("$glob_basedir/$path_part/release/$exe",
  1949. "$glob_basedir/$path_part/debug/$exe");
  1950. }
  1951. ##############################################################################
  1952. #
  1953. # Start the ndb cluster
  1954. #
  1955. ##############################################################################
  1956. sub check_ndbcluster_support ($) {
  1957. my $mysqld_variables= shift;
  1958. if ($opt_skip_ndbcluster)
  1959. {
  1960. mtr_report("Skipping ndbcluster");
  1961. $opt_skip_ndbcluster_slave= 1;
  1962. return;
  1963. }
  1964. if ( ! $mysqld_variables->{'ndb-connectstring'} )
  1965. {
  1966. mtr_report("Skipping ndbcluster, mysqld not compiled with ndbcluster");
  1967. $opt_skip_ndbcluster= 1;
  1968. $opt_skip_ndbcluster_slave= 1;
  1969. return;
  1970. }
  1971. $glob_ndbcluster_supported= 1;
  1972. mtr_report("Using ndbcluster when necessary, mysqld supports it");
  1973. if ( $mysql_version_id < 50100 )
  1974. {
  1975. # Slave cluster is not supported until 5.1
  1976. $opt_skip_ndbcluster_slave= 1;
  1977. }
  1978. return;
  1979. }
  1980. sub ndbcluster_start_install ($) {
  1981. my $cluster= shift;
  1982. mtr_report("Installing $cluster->{'name'} Cluster");
  1983. mkdir($cluster->{'data_dir'});
  1984. # Create a config file from template
  1985. my $ndb_no_ord=512;
  1986. my $ndb_no_attr=2048;
  1987. my $ndb_con_op=105000;
  1988. my $ndb_dmem="80M";
  1989. my $ndb_imem="24M";
  1990. my $ndb_pbmem="32M";
  1991. my $nodes= $cluster->{'nodes'};
  1992. my $ndb_host= "localhost";
  1993. my $ndb_diskless= 0;
  1994. if (!$opt_bench)
  1995. {
  1996. # Use a smaller configuration
  1997. if ( $mysql_version_id < 50100 )
  1998. {
  1999. # 4.1 and 5.0 is using a "larger" --small configuration
  2000. $ndb_no_ord=128;
  2001. $ndb_con_op=10000;
  2002. $ndb_dmem="40M";
  2003. $ndb_imem="12M";
  2004. }
  2005. else
  2006. {
  2007. $ndb_no_ord=32;
  2008. $ndb_con_op=5000;
  2009. $ndb_dmem="20M";
  2010. $ndb_imem="1M";
  2011. $ndb_pbmem="4M";
  2012. }
  2013. }
  2014. my $config_file_template= "ndb/ndb_config_${nodes}_node.ini";
  2015. my $config_file= "$cluster->{'data_dir'}/config.ini";
  2016. open(IN, $config_file_template)
  2017. or mtr_error("Can't open $config_file_template: $!");
  2018. open(OUT, ">", $config_file)
  2019. or mtr_error("Can't write to $config_file: $!");
  2020. while (<IN>)
  2021. {
  2022. chomp;
  2023. s/CHOOSE_MaxNoOfAttributes/$ndb_no_attr/;
  2024. s/CHOOSE_MaxNoOfOrderedIndexes/$ndb_no_ord/;
  2025. s/CHOOSE_MaxNoOfConcurrentOperations/$ndb_con_op/;
  2026. s/CHOOSE_DataMemory/$ndb_dmem/;
  2027. s/CHOOSE_IndexMemory/$ndb_imem/;
  2028. s/CHOOSE_Diskless/$ndb_diskless/;
  2029. s/CHOOSE_HOSTNAME_.*/$ndb_host/;
  2030. s/CHOOSE_FILESYSTEM/$cluster->{'data_dir'}/;
  2031. s/CHOOSE_PORT_MGM/$cluster->{'port'}/;
  2032. if ( $mysql_version_id < 50000 )
  2033. {
  2034. my $base_port= $cluster->{'port'} + 1;
  2035. s/CHOOSE_PORT_TRANSPORTER/$base_port/;
  2036. }
  2037. s/CHOOSE_DiskPageBufferMemory/$ndb_pbmem/;
  2038. print OUT "$_ \n";
  2039. }
  2040. close OUT;
  2041. close IN;
  2042. # Start cluster with "--initial"
  2043. ndbcluster_start($cluster, "--initial");
  2044. return 0;
  2045. }
  2046. sub ndbcluster_wait_started($$){
  2047. my $cluster= shift;
  2048. my $ndb_waiter_extra_opt= shift;
  2049. my $path_waiter_log= "$cluster->{'data_dir'}/ndb_waiter.log";
  2050. my $args;
  2051. mtr_init_args(\$args);
  2052. mtr_add_arg($args, "--no-defaults");
  2053. mtr_add_arg($args, "--core");
  2054. mtr_add_arg($args, "--ndb-connectstring=%s", $cluster->{'connect_string'});
  2055. mtr_add_arg($args, "--timeout=60");
  2056. if ($ndb_waiter_extra_opt)
  2057. {
  2058. mtr_add_arg($args, "$ndb_waiter_extra_opt");
  2059. }
  2060. # Start the ndb_waiter which will connect to the ndb_mgmd
  2061. # and poll it for state of the ndbd's, will return when
  2062. # all nodes in the cluster is started
  2063. my $res= mtr_run($exe_ndb_waiter, $args,
  2064. "", $path_waiter_log, $path_waiter_log, "");
  2065. mtr_verbose("ndbcluster_wait_started, returns: $res") if $res;
  2066. return $res;
  2067. }
  2068. sub mysqld_wait_started($){
  2069. my $mysqld= shift;
  2070. my $res= sleep_until_file_created($mysqld->{'path_pid'},
  2071. $mysqld->{'start_timeout'},
  2072. $mysqld->{'pid'});
  2073. return $res == 0;
  2074. }
  2075. sub ndb_mgmd_wait_started($) {
  2076. my ($cluster)= @_;
  2077. my $retries= 100;
  2078. while (ndbcluster_wait_started($cluster, "--no-contact") and
  2079. $retries)
  2080. {
  2081. # Millisceond sleep emulated with select
  2082. select(undef, undef, undef, (0.1));
  2083. $retries--;
  2084. }
  2085. return $retries == 0;
  2086. }
  2087. sub ndb_mgmd_start ($) {
  2088. my $cluster= shift;
  2089. my $args; # Arg vector
  2090. my $pid= -1;
  2091. mtr_init_args(\$args);
  2092. mtr_add_arg($args, "--no-defaults");
  2093. mtr_add_arg($args, "--core");
  2094. mtr_add_arg($args, "--nodaemon");
  2095. mtr_add_arg($args, "--config-file=%s", "$cluster->{'data_dir'}/config.ini");
  2096. my $path_ndb_mgmd_log= "$cluster->{'data_dir'}/\l$cluster->{'name'}_ndb_mgmd.log";
  2097. $pid= mtr_spawn($exe_ndb_mgmd, $args, "",
  2098. $path_ndb_mgmd_log,
  2099. $path_ndb_mgmd_log,
  2100. "",
  2101. { append_log_file => 1 });
  2102. # FIXME Should not be needed
  2103. # Unfortunately the cluster nodes will fail to start
  2104. # if ndb_mgmd has not started properly
  2105. if (ndb_mgmd_wait_started($cluster))
  2106. {
  2107. mtr_error("Failed to wait for start of ndb_mgmd");
  2108. }
  2109. # Remember pid of ndb_mgmd
  2110. $cluster->{'pid'}= $pid;
  2111. mtr_verbose("ndb_mgmd_start, pid: $pid");
  2112. return $pid;
  2113. }
  2114. sub ndbd_start ($$$) {
  2115. my $cluster= shift;
  2116. my $idx= shift;
  2117. my $extra_args= shift;
  2118. my $args; # Arg vector
  2119. my $pid= -1;
  2120. mtr_init_args(\$args);
  2121. mtr_add_arg($args, "--no-defaults");
  2122. mtr_add_arg($args, "--core");
  2123. mtr_add_arg($args, "--ndb-connectstring=%s", "$cluster->{'connect_string'}");
  2124. if ( $mysql_version_id >= 50000)
  2125. {
  2126. mtr_add_arg($args, "--character-sets-dir=%s", "$path_charsetsdir");
  2127. }
  2128. mtr_add_arg($args, "--nodaemon");
  2129. mtr_add_arg($args, "$extra_args");
  2130. my $nodeid= $cluster->{'ndbds'}->[$idx]->{'nodeid'};
  2131. my $path_ndbd_log= "$cluster->{'data_dir'}/ndb_${nodeid}.log";
  2132. $pid= mtr_spawn($exe_ndbd, $args, "",
  2133. $path_ndbd_log,
  2134. $path_ndbd_log,
  2135. "",
  2136. { append_log_file => 1 });
  2137. # Add pid to list of pids for this cluster
  2138. $cluster->{'ndbds'}->[$idx]->{'pid'}= $pid;
  2139. # Rememeber options used when starting
  2140. $cluster->{'ndbds'}->[$idx]->{'start_extra_args'}= $extra_args;
  2141. $cluster->{'ndbds'}->[$idx]->{'idx'}= $idx;
  2142. mtr_verbose("ndbd_start, pid: $pid");
  2143. return $pid;
  2144. }
  2145. sub ndbcluster_start ($$) {
  2146. my $cluster= shift;
  2147. my $extra_args= shift;
  2148. mtr_verbose("ndbcluster_start '$cluster->{'name'}'");
  2149. if ( $glob_use_running_ndbcluster )
  2150. {
  2151. return 0;
  2152. }
  2153. if ( $cluster->{'pid'} )
  2154. {
  2155. mtr_error("Cluster '$cluster->{'name'}' already started");
  2156. }
  2157. ndb_mgmd_start($cluster);
  2158. for ( my $idx= 0; $idx < $cluster->{'nodes'}; $idx++ )
  2159. {
  2160. ndbd_start($cluster, $idx, $extra_args);
  2161. }
  2162. return 0;
  2163. }
  2164. sub rm_ndbcluster_tables ($) {
  2165. my $dir= shift;
  2166. foreach my $bin ( glob("$dir/mysql/apply_status*"),
  2167. glob("$dir/mysql/schema*"))
  2168. {
  2169. unlink($bin);
  2170. }
  2171. }
  2172. ##############################################################################
  2173. #
  2174. # Run the benchmark suite
  2175. #
  2176. ##############################################################################
  2177. sub run_benchmarks ($) {
  2178. my $benchmark= shift;
  2179. my $args;
  2180. if ( ! $glob_use_embedded_server )
  2181. {
  2182. mysqld_start($master->[0],[],[]);
  2183. if ( ! $master->[0]->{'pid'} )
  2184. {
  2185. mtr_error("Can't start the mysqld server");
  2186. }
  2187. }
  2188. mtr_init_args(\$args);
  2189. mtr_add_arg($args, "--socket=%s", $master->[0]->{'path_sock'});
  2190. mtr_add_arg($args, "--user=%s", $opt_user);
  2191. if ( $opt_small_bench )
  2192. {
  2193. mtr_add_arg($args, "--small-test");
  2194. mtr_add_arg($args, "--small-tables");
  2195. }
  2196. if ( $opt_with_ndbcluster )
  2197. {
  2198. mtr_add_arg($args, "--create-options=TYPE=ndb");
  2199. }
  2200. chdir($glob_mysql_bench_dir)
  2201. or mtr_error("Couldn't chdir to '$glob_mysql_bench_dir': $!");
  2202. if ( ! $benchmark )
  2203. {
  2204. mtr_add_arg($args, "--log");
  2205. mtr_run("$glob_mysql_bench_dir/run-all-tests", $args, "", "", "", "");
  2206. # FIXME check result code?!
  2207. }
  2208. elsif ( -x $benchmark )
  2209. {
  2210. mtr_run("$glob_mysql_bench_dir/$benchmark", $args, "", "", "", "");
  2211. # FIXME check result code?!
  2212. }
  2213. else
  2214. {
  2215. mtr_error("Benchmark $benchmark not found");
  2216. }
  2217. chdir($glob_mysql_test_dir); # Go back
  2218. if ( ! $glob_use_embedded_server )
  2219. {
  2220. stop_masters();
  2221. }
  2222. }
  2223. ##############################################################################
  2224. #
  2225. # Run the test suite
  2226. #
  2227. ##############################################################################
  2228. sub run_suite () {
  2229. my ($suite, $tests)= @_;
  2230. mtr_print_thick_line();
  2231. mtr_timer_start($glob_timers,"suite", 60 * $opt_suite_timeout);
  2232. mtr_report("Starting Tests in the '$suite' suite");
  2233. mtr_report_tests_not_skipped_though_disabled($tests);
  2234. mtr_print_header();
  2235. foreach my $tinfo ( @$tests )
  2236. {
  2237. if (run_testcase_check_skip_test($tinfo))
  2238. {
  2239. next;
  2240. }
  2241. mtr_timer_start($glob_timers,"testcase", 60 * $opt_testcase_timeout);
  2242. run_testcase($tinfo);
  2243. mtr_timer_stop($glob_timers,"testcase");
  2244. }
  2245. mtr_print_line();
  2246. if ( ! $glob_debugger and
  2247. ! $opt_extern and
  2248. ! $glob_use_embedded_server )
  2249. {
  2250. stop_all_servers();
  2251. }
  2252. if ( $opt_gcov )
  2253. {
  2254. gcov_collect(); # collect coverage information
  2255. }
  2256. if ( $opt_gprof )
  2257. {
  2258. gprof_collect(); # collect coverage information
  2259. }
  2260. mtr_report_stats($tests);
  2261. mtr_timer_stop($glob_timers,"suite");
  2262. }
  2263. ##############################################################################
  2264. #
  2265. # Initiate the test databases
  2266. #
  2267. ##############################################################################
  2268. sub initialize_servers () {
  2269. datadir_list_setup();
  2270. if ( $opt_extern )
  2271. {
  2272. # Running against an already started server, if the specified
  2273. # vardir does not already exist it should be created
  2274. if ( ! -d $opt_vardir )
  2275. {
  2276. mtr_report("Creating '$opt_vardir'");
  2277. setup_vardir();
  2278. }
  2279. else
  2280. {
  2281. mtr_report("No need to create '$opt_vardir' it already exists");
  2282. }
  2283. }
  2284. else
  2285. {
  2286. kill_running_servers();
  2287. if ( ! $opt_start_dirty )
  2288. {
  2289. remove_stale_vardir();
  2290. setup_vardir();
  2291. mysql_install_db();
  2292. if ( $opt_force )
  2293. {
  2294. # Save a snapshot of the freshly installed db
  2295. # to make it possible to restore to a known point in time
  2296. save_installed_db();
  2297. }
  2298. }
  2299. }
  2300. check_running_as_root();
  2301. }
  2302. sub mysql_install_db () {
  2303. install_db('master', $master->[0]->{'path_myddir'});
  2304. # FIXME check if testcase really is using second master
  2305. copy_install_db('master', $master->[1]->{'path_myddir'});
  2306. # Install the number of slave databses needed
  2307. for (my $idx= 0; $idx < $max_slave_num; $idx++)
  2308. {
  2309. copy_install_db("slave".($idx+1), $slave->[$idx]->{'path_myddir'});
  2310. }
  2311. if ( ! $opt_skip_im )
  2312. {
  2313. im_prepare_env($instance_manager);
  2314. }
  2315. my $cluster_started_ok= 1; # Assume it can be started
  2316. if ($opt_skip_ndbcluster || $glob_use_running_ndbcluster ||
  2317. $clusters->[0]->{executable_setup_failed})
  2318. {
  2319. # Don't install master cluster
  2320. }
  2321. elsif (ndbcluster_start_install($clusters->[0]))
  2322. {
  2323. mtr_warning("Failed to start install of $clusters->[0]->{name}");
  2324. $cluster_started_ok= 0;
  2325. }
  2326. if ($max_slave_num == 0 ||
  2327. $opt_skip_ndbcluster_slave || $glob_use_running_ndbcluster_slave ||
  2328. $clusters->[1]->{executable_setup_failed})
  2329. {
  2330. # Don't install slave cluster
  2331. }
  2332. elsif (ndbcluster_start_install($clusters->[1]))
  2333. {
  2334. mtr_warning("Failed to start install of $clusters->[1]->{name}");
  2335. $cluster_started_ok= 0;
  2336. }
  2337. foreach my $cluster (@{$clusters})
  2338. {
  2339. next if !$cluster->{'pid'};
  2340. $cluster->{'installed_ok'}= 1; # Assume install suceeds
  2341. if (ndbcluster_wait_started($cluster, ""))
  2342. {
  2343. # failed to install, disable usage and flag that its no ok
  2344. mtr_report("ndbcluster_install of $cluster->{'name'} failed");
  2345. $cluster->{"installed_ok"}= 0;
  2346. $cluster_started_ok= 0;
  2347. }
  2348. }
  2349. if ( ! $cluster_started_ok )
  2350. {
  2351. if ( $opt_force)
  2352. {
  2353. # Continue without cluster
  2354. }
  2355. else
  2356. {
  2357. mtr_error("To continue, re-run with '--force'.");
  2358. }
  2359. }
  2360. return 0;
  2361. }
  2362. sub copy_install_db ($$) {
  2363. my $type= shift;
  2364. my $data_dir= shift;
  2365. mtr_report("Installing \u$type Database");
  2366. # Just copy the installed db from first master
  2367. mtr_copy_dir($master->[0]->{'path_myddir'}, $data_dir);
  2368. }
  2369. sub install_db ($$) {
  2370. my $type= shift;
  2371. my $data_dir= shift;
  2372. my $init_db_sql= "lib/init_db.sql";
  2373. my $init_db_sql_tmp= "/tmp/init_db.sql$$";
  2374. my $args;
  2375. mtr_report("Installing \u$type Database");
  2376. open(IN, $init_db_sql)
  2377. or mtr_error("Can't open $init_db_sql: $!");
  2378. open(OUT, ">", $init_db_sql_tmp)
  2379. or mtr_error("Can't write to $init_db_sql_tmp: $!");
  2380. while (<IN>)
  2381. {
  2382. chomp;
  2383. s/\@HOSTNAME\@/$glob_hostname/;
  2384. if ( /^\s*$/ )
  2385. {
  2386. print OUT "\n";
  2387. }
  2388. elsif (/;$/)
  2389. {
  2390. print OUT "$_\n";
  2391. }
  2392. else
  2393. {
  2394. print OUT "$_ ";
  2395. }
  2396. }
  2397. close OUT;
  2398. close IN;
  2399. mtr_init_args(\$args);
  2400. mtr_add_arg($args, "--no-defaults");
  2401. mtr_add_arg($args, "--bootstrap");
  2402. mtr_add_arg($args, "--console");
  2403. mtr_add_arg($args, "--skip-grant-tables");
  2404. mtr_add_arg($args, "--basedir=%s", $path_my_basedir);
  2405. mtr_add_arg($args, "--datadir=%s", $data_dir);
  2406. mtr_add_arg($args, "--skip-innodb");
  2407. mtr_add_arg($args, "--skip-ndbcluster");
  2408. mtr_add_arg($args, "--tmpdir=.");
  2409. mtr_add_arg($args, "--core-file");
  2410. if ( $opt_debug )
  2411. {
  2412. mtr_add_arg($args, "--debug=d:t:i:A,%s/log/bootstrap_%s.trace",
  2413. $path_vardir_trace, $type);
  2414. }
  2415. if ( ! $glob_netware )
  2416. {
  2417. mtr_add_arg($args, "--language=%s", $path_language);
  2418. mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
  2419. }
  2420. # Log bootstrap command
  2421. my $path_bootstrap_log= "$opt_vardir/log/bootstrap.log";
  2422. mtr_tofile($path_bootstrap_log,
  2423. "$exe_mysqld " . join(" ", @$args) . "\n");
  2424. if ( mtr_run($exe_mysqld, $args, $init_db_sql_tmp,
  2425. $path_bootstrap_log, $path_bootstrap_log,
  2426. "", { append_log_file => 1 }) != 0 )
  2427. {
  2428. unlink($init_db_sql_tmp);
  2429. mtr_error("Error executing mysqld --bootstrap\n" .
  2430. "Could not install $type test DBs");
  2431. }
  2432. unlink($init_db_sql_tmp);
  2433. }
  2434. sub im_prepare_env($) {
  2435. my $instance_manager = shift;
  2436. im_create_passwd_file($instance_manager);
  2437. im_prepare_data_dir($instance_manager);
  2438. }
  2439. sub im_create_passwd_file($) {
  2440. my $instance_manager = shift;
  2441. my $pwd_file_path = $instance_manager->{'password_file'};
  2442. mtr_report("Creating IM password file ($pwd_file_path)");
  2443. open(OUT, ">", $pwd_file_path)
  2444. or mtr_error("Can't write to $pwd_file_path: $!");
  2445. print OUT $instance_manager->{'admin_login'}, ":",
  2446. $instance_manager->{'admin_sha1'}, "\n";
  2447. close(OUT);
  2448. }
  2449. sub im_create_defaults_file($) {
  2450. my $instance_manager = shift;
  2451. my $defaults_file = $instance_manager->{'defaults_file'};
  2452. open(OUT, ">", $defaults_file)
  2453. or mtr_error("Can't write to $defaults_file: $!");
  2454. print OUT <<EOF
  2455. [mysql]
  2456. [manager]
  2457. pid-file = $instance_manager->{path_pid}
  2458. angel-pid-file = $instance_manager->{path_angel_pid}
  2459. socket = $instance_manager->{path_sock}
  2460. port = $instance_manager->{port}
  2461. password-file = $instance_manager->{password_file}
  2462. default-mysqld-path = $exe_mysqld
  2463. EOF
  2464. ;
  2465. foreach my $instance (@{$instance_manager->{'instances'}})
  2466. {
  2467. my $server_id = $instance->{'server_id'};
  2468. print OUT <<EOF
  2469. [mysqld$server_id]
  2470. socket = $instance->{path_sock}
  2471. pid-file = $instance->{path_pid}
  2472. port = $instance->{port}
  2473. datadir = $instance->{path_datadir}
  2474. log = $instance->{path_datadir}/mysqld$server_id.log
  2475. log-error = $instance->{path_datadir}/mysqld$server_id.err.log
  2476. log-slow-queries = $instance->{path_datadir}/mysqld$server_id.slow.log
  2477. language = $path_language
  2478. character-sets-dir = $path_charsetsdir
  2479. basedir = $path_my_basedir
  2480. server_id = $server_id
  2481. skip-stack-trace
  2482. skip-innodb
  2483. skip-ndbcluster
  2484. EOF
  2485. ;
  2486. if ( $mysql_version_id < 50100 )
  2487. {
  2488. print OUT "skip-bdb\n";
  2489. }
  2490. print OUT "nonguarded\n" if $instance->{'nonguarded'};
  2491. if ( $mysql_version_id >= 50100 )
  2492. {
  2493. print OUT "log-output=FILE\n" if $instance->{'old_log_format'};
  2494. }
  2495. print OUT "\n";
  2496. }
  2497. close(OUT);
  2498. }
  2499. sub im_prepare_data_dir($) {
  2500. my $instance_manager = shift;
  2501. foreach my $instance (@{$instance_manager->{'instances'}})
  2502. {
  2503. copy_install_db(
  2504. 'im_mysqld_' . $instance->{'server_id'},
  2505. $instance->{'path_datadir'});
  2506. }
  2507. }
  2508. #
  2509. # Restore snapshot of the installed slave databases
  2510. # if the snapshot exists
  2511. #
  2512. sub restore_slave_databases ($) {
  2513. my ($num_slaves)= @_;
  2514. if ( -d $path_snapshot)
  2515. {
  2516. for (my $idx= 0; $idx < $num_slaves; $idx++)
  2517. {
  2518. my $data_dir= $slave->[$idx]->{'path_myddir'};
  2519. my $name= basename($data_dir);
  2520. rmtree($data_dir);
  2521. mtr_copy_dir("$path_snapshot/$name", $data_dir);
  2522. }
  2523. }
  2524. }
  2525. sub run_testcase_check_skip_test($)
  2526. {
  2527. my ($tinfo)= @_;
  2528. # ----------------------------------------------------------------------
  2529. # If marked to skip, just print out and return.
  2530. # Note that a test case not marked as 'skip' can still be
  2531. # skipped later, because of the test case itself in cooperation
  2532. # with the mysqltest program tells us so.
  2533. # ----------------------------------------------------------------------
  2534. if ( $tinfo->{'skip'} )
  2535. {
  2536. mtr_report_test_name($tinfo);
  2537. mtr_report_test_skipped($tinfo);
  2538. return 1;
  2539. }
  2540. if ($tinfo->{'ndb_test'})
  2541. {
  2542. foreach my $cluster (@{$clusters})
  2543. {
  2544. last if ($opt_skip_ndbcluster_slave and
  2545. $cluster->{'name'} eq 'Slave');
  2546. # If test needs this cluster, check binaries was found ok
  2547. if ( $cluster->{'executable_setup_failed'} )
  2548. {
  2549. mtr_report_test_name($tinfo);
  2550. $tinfo->{comment}=
  2551. "Failed to find cluster binaries";
  2552. mtr_report_test_failed($tinfo);
  2553. return 1;
  2554. }
  2555. # If test needs this cluster, check it was installed ok
  2556. if ( !$cluster->{'installed_ok'} )
  2557. {
  2558. mtr_report_test_name($tinfo);
  2559. $tinfo->{comment}=
  2560. "Cluster $cluster->{'name'} was not installed ok";
  2561. mtr_report_test_failed($tinfo);
  2562. return 1;
  2563. }
  2564. }
  2565. }
  2566. if ( $tinfo->{'component_id'} eq 'im' )
  2567. {
  2568. # If test needs im, check binaries was found ok
  2569. if ( $instance_manager->{'executable_setup_failed'} )
  2570. {
  2571. mtr_report_test_name($tinfo);
  2572. $tinfo->{comment}=
  2573. "Failed to find MySQL manager binaries";
  2574. mtr_report_test_failed($tinfo);
  2575. return 1;
  2576. }
  2577. }
  2578. return 0;
  2579. }
  2580. sub do_before_run_mysqltest($)
  2581. {
  2582. my $tinfo= shift;
  2583. my $tname= $tinfo->{'name'};
  2584. # Remove old files produced by mysqltest
  2585. my $result_dir= "r";
  2586. if ( $opt_suite ne "main" )
  2587. {
  2588. $result_dir= "suite/$opt_suite/r";
  2589. }
  2590. unlink("$result_dir/$tname.reject");
  2591. unlink("$result_dir/$tname.progress");
  2592. unlink("$result_dir/$tname.log");
  2593. unlink("$result_dir/$tname.warnings");
  2594. if ( $mysql_version_id < 50000 )
  2595. {
  2596. # Set environment variable NDB_STATUS_OK to 1
  2597. # if script decided to run mysqltest cluster _is_ installed ok
  2598. $ENV{'NDB_STATUS_OK'} = "1";
  2599. }
  2600. elsif ( $mysql_version_id < 50100 )
  2601. {
  2602. # Set environment variable NDB_STATUS_OK to YES
  2603. # if script decided to run mysqltest cluster _is_ installed ok
  2604. $ENV{'NDB_STATUS_OK'} = "YES";
  2605. }
  2606. }
  2607. sub do_after_run_mysqltest($)
  2608. {
  2609. my $tinfo= shift;
  2610. my $tname= $tinfo->{'name'};
  2611. # Save info from this testcase run to mysqltest.log
  2612. mtr_appendfile_to_file($path_current_test_log, $path_mysqltest_log)
  2613. if -f $path_current_test_log;
  2614. mtr_appendfile_to_file($path_timefile, $path_mysqltest_log)
  2615. if -f $path_timefile;
  2616. # Remove the file that mysqltest writes info to
  2617. unlink($path_timefile);
  2618. }
  2619. sub run_testcase_mark_logs($)
  2620. {
  2621. my ($log_msg)= @_;
  2622. # Write a marker to all log files
  2623. # The file indicating current test name
  2624. mtr_tonewfile($path_current_test_log, $log_msg);
  2625. # each mysqld's .err file
  2626. foreach my $mysqld (@{$master}, @{$slave})
  2627. {
  2628. mtr_tofile($mysqld->{path_myerr}, $log_msg);
  2629. }
  2630. # ndbcluster log file
  2631. mtr_tofile($path_ndb_testrun_log, $log_msg);
  2632. }
  2633. sub find_testcase_skipped_reason($)
  2634. {
  2635. my ($tinfo)= @_;
  2636. # Open mysqltest-time
  2637. my $F= IO::File->new($path_timefile) or
  2638. mtr_error("can't open file \"$path_timefile\": $!");
  2639. my $reason;
  2640. while ( my $line= <$F> )
  2641. {
  2642. # Look for "reason: <reason for skipping test>"
  2643. if ( $line =~ /reason: (.*)/ )
  2644. {
  2645. $reason= $1;
  2646. }
  2647. }
  2648. if ( ! $reason )
  2649. {
  2650. mtr_warning("Could not find reason for skipping test in $path_timefile");
  2651. $reason= "Detected by testcase(reason unknown) ";
  2652. }
  2653. $tinfo->{'comment'}= $reason;
  2654. }
  2655. sub analyze_testcase_failure_sync_with_master($)
  2656. {
  2657. my ($tinfo)= @_;
  2658. my $args;
  2659. mtr_init_args(\$args);
  2660. mtr_add_arg($args, "--no-defaults");
  2661. mtr_add_arg($args, "--silent");
  2662. mtr_add_arg($args, "--skip-safemalloc");
  2663. mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
  2664. mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
  2665. mtr_add_arg($args, "--socket=%s", $master->[0]->{'path_sock'});
  2666. mtr_add_arg($args, "--port=%d", $master->[0]->{'port'});
  2667. mtr_add_arg($args, "--database=test");
  2668. mtr_add_arg($args, "--user=%s", $opt_user);
  2669. mtr_add_arg($args, "--password=");
  2670. # Run the test file and append output to log file
  2671. mtr_run_test($exe_mysqltest,$args,
  2672. "include/analyze_failure_sync_with_master.test",
  2673. "$path_timefile", "$path_timefile","",
  2674. { append_log_file => 1 });
  2675. }
  2676. sub analyze_testcase_failure($)
  2677. {
  2678. my ($tinfo)= @_;
  2679. # Open mysqltest.log
  2680. my $F= IO::File->new($path_timefile) or
  2681. mtr_error("can't open file \"$path_timefile\": $!");
  2682. while ( my $line= <$F> )
  2683. {
  2684. # Look for "mysqltest: At line nnn: <error>
  2685. if ( $line =~ /mysqltest: At line [0-9]*: (.*)/ )
  2686. {
  2687. my $error= $1;
  2688. # Look for "could not sync with master"
  2689. if ( $error =~ /could not sync with master/ )
  2690. {
  2691. analyze_testcase_failure_sync_with_master($tinfo);
  2692. }
  2693. }
  2694. }
  2695. }
  2696. ##############################################################################
  2697. #
  2698. # Run a single test case
  2699. #
  2700. ##############################################################################
  2701. # When we get here, we have already filtered out test cases that doesn't
  2702. # apply to the current setup, for example if we use a running server, test
  2703. # cases that restart the server are dropped. So this function should mostly
  2704. # be about doing things, not a lot of logic.
  2705. # We don't start and kill the servers for each testcase. But some
  2706. # testcases needs a restart, because they specify options to start
  2707. # mysqld with. After that testcase, we need to restart again, to set
  2708. # back the normal options.
  2709. sub run_testcase ($) {
  2710. my $tinfo= shift;
  2711. # -------------------------------------------------------
  2712. # Init variables that can change between each test case
  2713. # -------------------------------------------------------
  2714. $ENV{'TZ'}= $tinfo->{'timezone'};
  2715. mtr_verbose("Setting timezone: $tinfo->{'timezone'}");
  2716. my $master_restart= run_testcase_need_master_restart($tinfo);
  2717. my $slave_restart= run_testcase_need_slave_restart($tinfo);
  2718. if ($master_restart or $slave_restart)
  2719. {
  2720. # Can't restart a running server that may be in use
  2721. if ( $opt_extern )
  2722. {
  2723. mtr_report_test_name($tinfo);
  2724. $tinfo->{comment}= "Can't restart a running server";
  2725. mtr_report_test_skipped($tinfo);
  2726. return;
  2727. }
  2728. run_testcase_stop_servers($tinfo, $master_restart, $slave_restart);
  2729. }
  2730. # Write to all log files to indicate start of testcase
  2731. run_testcase_mark_logs("CURRENT_TEST: $tinfo->{name}\n");
  2732. my $died= mtr_record_dead_children();
  2733. if ($died or $master_restart or $slave_restart)
  2734. {
  2735. if (run_testcase_start_servers($tinfo))
  2736. {
  2737. mtr_report_test_name($tinfo);
  2738. report_failure_and_restart($tinfo);
  2739. return 1;
  2740. }
  2741. }
  2742. # ----------------------------------------------------------------------
  2743. # If --start-and-exit or --start-dirty given, stop here to let user manually
  2744. # run tests
  2745. # ----------------------------------------------------------------------
  2746. if ( $opt_start_and_exit or $opt_start_dirty )
  2747. {
  2748. mtr_timer_stop_all($glob_timers);
  2749. mtr_report("\nServers started, exiting");
  2750. exit(0);
  2751. }
  2752. {
  2753. do_before_run_mysqltest($tinfo);
  2754. my $res= run_mysqltest($tinfo);
  2755. mtr_report_test_name($tinfo);
  2756. if ( $res == 0 )
  2757. {
  2758. mtr_report_test_passed($tinfo);
  2759. }
  2760. elsif ( $res == 62 )
  2761. {
  2762. # Testcase itself tell us to skip this one
  2763. # Try to get reason from mysqltest.log
  2764. find_testcase_skipped_reason($tinfo);
  2765. mtr_report_test_skipped($tinfo);
  2766. }
  2767. elsif ( $res == 63 )
  2768. {
  2769. $tinfo->{'timeout'}= 1; # Mark as timeout
  2770. report_failure_and_restart($tinfo);
  2771. }
  2772. elsif ( $res == 1 )
  2773. {
  2774. if ( $opt_force )
  2775. {
  2776. analyze_testcase_failure($tinfo);
  2777. }
  2778. # Test case failure reported by mysqltest
  2779. report_failure_and_restart($tinfo);
  2780. }
  2781. else
  2782. {
  2783. # mysqltest failed, probably crashed
  2784. $tinfo->{comment}=
  2785. "mysqltest returned unexpected code $res, it has probably crashed";
  2786. report_failure_and_restart($tinfo);
  2787. }
  2788. do_after_run_mysqltest($tinfo);
  2789. }
  2790. # ----------------------------------------------------------------------
  2791. # Stop Instance Manager if we are processing an IM-test case.
  2792. # ----------------------------------------------------------------------
  2793. if ( $tinfo->{'component_id'} eq 'im' and
  2794. !mtr_im_stop($instance_manager, $tinfo->{'name'}) )
  2795. {
  2796. mtr_error("Failed to stop Instance Manager.")
  2797. }
  2798. }
  2799. #
  2800. # Save a snapshot of the installed test db(s)
  2801. # I.e take a snapshot of the var/ dir
  2802. #
  2803. sub save_installed_db () {
  2804. mtr_report("Saving snapshot of installed databases");
  2805. rmtree($path_snapshot);
  2806. foreach my $data_dir (@data_dir_lst)
  2807. {
  2808. my $name= basename($data_dir);
  2809. mtr_copy_dir("$data_dir", "$path_snapshot/$name");
  2810. }
  2811. }
  2812. #
  2813. # Save any interesting files in the data_dir
  2814. # before the data dir is removed.
  2815. #
  2816. sub save_files_before_restore($$) {
  2817. my $test_name= shift;
  2818. my $data_dir= shift;
  2819. my $save_name= "$opt_vardir/log/$test_name";
  2820. # Look for core files
  2821. foreach my $core_file ( glob("$data_dir/core*") )
  2822. {
  2823. my $core_name= basename($core_file);
  2824. mtr_report("Saving $core_name");
  2825. mkdir($save_name) if ! -d $save_name;
  2826. rename("$core_file", "$save_name/$core_name");
  2827. }
  2828. }
  2829. #
  2830. # Restore snapshot of the installed test db(s)
  2831. # if the snapshot exists
  2832. #
  2833. sub restore_installed_db ($) {
  2834. my $test_name= shift;
  2835. if ( -d $path_snapshot)
  2836. {
  2837. mtr_report("Restoring snapshot of databases");
  2838. foreach my $data_dir (@data_dir_lst)
  2839. {
  2840. my $name= basename($data_dir);
  2841. save_files_before_restore($test_name, $data_dir);
  2842. rmtree("$data_dir");
  2843. mtr_copy_dir("$path_snapshot/$name", "$data_dir");
  2844. }
  2845. # Remove the ndb_*_fs dirs for all ndbd nodes
  2846. # forcing a clean start of ndb
  2847. foreach my $cluster (@{$clusters})
  2848. {
  2849. foreach my $ndbd (@{$cluster->{'ndbds'}})
  2850. {
  2851. rmtree("$ndbd->{'path_fs'}" );
  2852. }
  2853. }
  2854. }
  2855. else
  2856. {
  2857. # No snapshot existed
  2858. mtr_error("No snapshot existed");
  2859. }
  2860. }
  2861. sub report_failure_and_restart ($) {
  2862. my $tinfo= shift;
  2863. mtr_report_test_failed($tinfo);
  2864. mtr_show_failed_diff($tinfo->{'result_file'});
  2865. print "\n";
  2866. if ( $opt_force )
  2867. {
  2868. # Stop all servers that are known to be running
  2869. stop_all_servers();
  2870. # Restore the snapshot of the installed test db
  2871. restore_installed_db($tinfo->{'name'});
  2872. print "Resuming Tests\n\n";
  2873. return;
  2874. }
  2875. my $test_mode= join(" ", @::glob_test_mode) || "default";
  2876. print "Aborting: $tinfo->{'name'} failed in $test_mode mode. ";
  2877. print "To continue, re-run with '--force'.\n";
  2878. if ( ! $glob_debugger and
  2879. ! $opt_extern and
  2880. ! $glob_use_embedded_server )
  2881. {
  2882. stop_all_servers();
  2883. }
  2884. mtr_exit(1);
  2885. }
  2886. ##############################################################################
  2887. #
  2888. # Start and stop servers
  2889. #
  2890. ##############################################################################
  2891. sub do_before_start_master ($) {
  2892. my ($tinfo)= @_;
  2893. my $tname= $tinfo->{'name'};
  2894. my $init_script= $tinfo->{'master_sh'};
  2895. # FIXME what about second master.....
  2896. foreach my $bin ( glob("$opt_vardir/log/master*-bin*") )
  2897. {
  2898. unlink($bin);
  2899. }
  2900. # FIXME only remove the ones that are tied to this master
  2901. # Remove old master.info and relay-log.info files
  2902. unlink("$master->[0]->{'path_myddir'}/master.info");
  2903. unlink("$master->[0]->{'path_myddir'}/relay-log.info");
  2904. unlink("$master->[1]->{'path_myddir'}/master.info");
  2905. unlink("$master->[1]->{'path_myddir'}/relay-log.info");
  2906. # Run master initialization shell script if one exists
  2907. if ( $init_script )
  2908. {
  2909. my $ret= mtr_run("/bin/sh", [$init_script], "", "", "", "");
  2910. if ( $ret != 0 )
  2911. {
  2912. # FIXME rewrite those scripts to return 0 if successful
  2913. # mtr_warning("$init_script exited with code $ret");
  2914. }
  2915. }
  2916. }
  2917. sub do_before_start_slave ($) {
  2918. my ($tinfo)= @_;
  2919. my $tname= $tinfo->{'name'};
  2920. my $init_script= $tinfo->{'master_sh'};
  2921. foreach my $bin ( glob("$opt_vardir/log/slave*-bin*") )
  2922. {
  2923. unlink($bin);
  2924. }
  2925. unlink("$slave->[0]->{'path_myddir'}/master.info");
  2926. unlink("$slave->[0]->{'path_myddir'}/relay-log.info");
  2927. # Run slave initialization shell script if one exists
  2928. if ( $init_script )
  2929. {
  2930. my $ret= mtr_run("/bin/sh", [$init_script], "", "", "", "");
  2931. if ( $ret != 0 )
  2932. {
  2933. # FIXME rewrite those scripts to return 0 if successful
  2934. # mtr_warning("$init_script exited with code $ret");
  2935. }
  2936. }
  2937. foreach my $bin ( glob("$slave->[0]->{'path_myddir'}/log.*") )
  2938. {
  2939. unlink($bin);
  2940. }
  2941. }
  2942. sub mysqld_arguments ($$$$$) {
  2943. my $args= shift;
  2944. my $type= shift;
  2945. my $idx= shift;
  2946. my $extra_opt= shift;
  2947. my $slave_master_info= shift;
  2948. my $sidx= ""; # Index as string, 0 is empty string
  2949. if ( $idx > 0 )
  2950. {
  2951. $sidx= "$idx";
  2952. }
  2953. my $prefix= ""; # If mysqltest server arg
  2954. if ( $glob_use_embedded_server )
  2955. {
  2956. $prefix= "--server-arg=";
  2957. }
  2958. mtr_add_arg($args, "%s--no-defaults", $prefix);
  2959. mtr_add_arg($args, "%s--console", $prefix);
  2960. mtr_add_arg($args, "%s--basedir=%s", $prefix, $path_my_basedir);
  2961. mtr_add_arg($args, "%s--character-sets-dir=%s", $prefix, $path_charsetsdir);
  2962. if ( $mysql_version_id >= 50000 )
  2963. {
  2964. mtr_add_arg($args, "%s--log-bin-trust-function-creators", $prefix);
  2965. }
  2966. mtr_add_arg($args, "%s--default-character-set=latin1", $prefix);
  2967. mtr_add_arg($args, "%s--language=%s", $prefix, $path_language);
  2968. mtr_add_arg($args, "%s--tmpdir=$opt_tmpdir", $prefix);
  2969. if ( $opt_valgrind_mysqld )
  2970. {
  2971. mtr_add_arg($args, "%s--skip-safemalloc", $prefix);
  2972. if ( $mysql_version_id < 50100 )
  2973. {
  2974. mtr_add_arg($args, "%s--skip-bdb", $prefix);
  2975. }
  2976. }
  2977. # Check if "extra_opt" contains --skip-log-bin
  2978. my $skip_binlog= grep('--skip-log-bin', @$extra_opt);
  2979. if ( $type eq 'master' )
  2980. {
  2981. my $id= $idx > 0 ? $idx + 101 : 1;
  2982. if (! ($opt_skip_master_binlog || $skip_binlog) )
  2983. {
  2984. mtr_add_arg($args, "%s--log-bin=%s/log/master-bin%s", $prefix,
  2985. $opt_vardir, $sidx);
  2986. }
  2987. mtr_add_arg($args, "%s--pid-file=%s", $prefix,
  2988. $master->[$idx]->{'path_pid'});
  2989. mtr_add_arg($args, "%s--port=%d", $prefix,
  2990. $master->[$idx]->{'port'});
  2991. mtr_add_arg($args, "%s--server-id=%d", $prefix, $id);
  2992. mtr_add_arg($args, "%s--socket=%s", $prefix,
  2993. $master->[$idx]->{'path_sock'});
  2994. mtr_add_arg($args, "%s--innodb_data_file_path=ibdata1:10M:autoextend", $prefix);
  2995. mtr_add_arg($args, "%s--local-infile", $prefix);
  2996. mtr_add_arg($args, "%s--datadir=%s", $prefix,
  2997. $master->[$idx]->{'path_myddir'});
  2998. if ( $idx > 0 or !$use_innodb)
  2999. {
  3000. mtr_add_arg($args, "%s--skip-innodb", $prefix);
  3001. }
  3002. my $cluster= $clusters->[$master->[$idx]->{'cluster'}];
  3003. if ( $opt_skip_ndbcluster ||
  3004. !$cluster->{'pid'})
  3005. {
  3006. mtr_add_arg($args, "%s--skip-ndbcluster", $prefix);
  3007. }
  3008. else
  3009. {
  3010. mtr_add_arg($args, "%s--ndbcluster", $prefix);
  3011. mtr_add_arg($args, "%s--ndb-connectstring=%s", $prefix,
  3012. $cluster->{'connect_string'});
  3013. if ( $mysql_version_id >= 50100 )
  3014. {
  3015. mtr_add_arg($args, "%s--ndb-extra-logging", $prefix);
  3016. }
  3017. }
  3018. if ( $mysql_version_id <= 50106 )
  3019. {
  3020. # Force mysqld to use log files up until 5.1.6
  3021. mtr_add_arg($args, "%s--log=%s", $prefix, $master->[0]->{'path_mylog'});
  3022. }
  3023. else
  3024. {
  3025. # Turn on logging, will be sent to tables
  3026. mtr_add_arg($args, "%s--log=", $prefix);
  3027. }
  3028. }
  3029. if ( $type eq 'slave' )
  3030. {
  3031. my $slave_server_id= 2 + $idx;
  3032. my $slave_rpl_rank= $slave_server_id;
  3033. mtr_add_arg($args, "%s--datadir=%s", $prefix,
  3034. $slave->[$idx]->{'path_myddir'});
  3035. mtr_add_arg($args, "%s--init-rpl-role=slave", $prefix);
  3036. if (! ( $opt_skip_slave_binlog || $skip_binlog ))
  3037. {
  3038. mtr_add_arg($args, "%s--log-bin=%s/log/slave%s-bin", $prefix,
  3039. $opt_vardir, $sidx); # FIXME use own dir for binlogs
  3040. mtr_add_arg($args, "%s--log-slave-updates", $prefix);
  3041. }
  3042. mtr_add_arg($args, "%s--master-retry-count=10", $prefix);
  3043. mtr_add_arg($args, "%s--pid-file=%s", $prefix,
  3044. $slave->[$idx]->{'path_pid'});
  3045. mtr_add_arg($args, "%s--port=%d", $prefix,
  3046. $slave->[$idx]->{'port'});
  3047. mtr_add_arg($args, "%s--relay-log=%s/log/slave%s-relay-bin", $prefix,
  3048. $opt_vardir, $sidx);
  3049. mtr_add_arg($args, "%s--report-host=127.0.0.1", $prefix);
  3050. mtr_add_arg($args, "%s--report-port=%d", $prefix,
  3051. $slave->[$idx]->{'port'});
  3052. mtr_add_arg($args, "%s--report-user=root", $prefix);
  3053. mtr_add_arg($args, "%s--skip-innodb", $prefix);
  3054. mtr_add_arg($args, "%s--skip-ndbcluster", $prefix);
  3055. mtr_add_arg($args, "%s--skip-slave-start", $prefix);
  3056. # Directory where slaves find the dumps generated by "load data"
  3057. # on the server. The path need to have constant length otherwise
  3058. # test results will vary, thus a relative path is used.
  3059. my $slave_load_path= "../tmp";
  3060. mtr_add_arg($args, "%s--slave-load-tmpdir=%s", $prefix,
  3061. $slave_load_path);
  3062. mtr_add_arg($args, "%s--socket=%s", $prefix,
  3063. $slave->[$idx]->{'path_sock'});
  3064. mtr_add_arg($args, "%s--set-variable=slave_net_timeout=10", $prefix);
  3065. if ( @$slave_master_info )
  3066. {
  3067. foreach my $arg ( @$slave_master_info )
  3068. {
  3069. mtr_add_arg($args, "%s%s", $prefix, $arg);
  3070. }
  3071. }
  3072. else
  3073. {
  3074. mtr_add_arg($args, "%s--master-user=root", $prefix);
  3075. mtr_add_arg($args, "%s--master-connect-retry=1", $prefix);
  3076. mtr_add_arg($args, "%s--master-host=127.0.0.1", $prefix);
  3077. mtr_add_arg($args, "%s--master-password=", $prefix);
  3078. mtr_add_arg($args, "%s--master-port=%d", $prefix,
  3079. $master->[0]->{'port'}); # First master
  3080. mtr_add_arg($args, "%s--server-id=%d", $prefix, $slave_server_id);
  3081. mtr_add_arg($args, "%s--rpl-recovery-rank=%d", $prefix, $slave_rpl_rank);
  3082. }
  3083. if ( $opt_skip_ndbcluster_slave ||
  3084. $slave->[$idx]->{'cluster'} == -1 ||
  3085. !$clusters->[$slave->[$idx]->{'cluster'}]->{'pid'} )
  3086. {
  3087. mtr_add_arg($args, "%s--skip-ndbcluster", $prefix);
  3088. }
  3089. else
  3090. {
  3091. mtr_add_arg($args, "%s--ndbcluster", $prefix);
  3092. mtr_add_arg($args, "%s--ndb-connectstring=%s", $prefix,
  3093. $clusters->[$slave->[$idx]->{'cluster'}]->{'connect_string'});
  3094. if ( $mysql_version_id >= 50100 )
  3095. {
  3096. mtr_add_arg($args, "%s--ndb-extra-logging", $prefix);
  3097. }
  3098. }
  3099. if ( $mysql_version_id <= 50106 )
  3100. {
  3101. # Force mysqld to use log files up until 5.1.6
  3102. mtr_add_arg($args, "%s--log=%s", $prefix, $master->[0]->{'path_mylog'});
  3103. }
  3104. else
  3105. {
  3106. # Turn on logging, will be sent to tables
  3107. mtr_add_arg($args, "%s--log=", $prefix);
  3108. }
  3109. } # end slave
  3110. if ( $opt_debug )
  3111. {
  3112. if ( $type eq 'master' )
  3113. {
  3114. mtr_add_arg($args, "%s--debug=d:t:i:A,%s/log/master%s.trace",
  3115. $prefix, $path_vardir_trace, $sidx);
  3116. }
  3117. if ( $type eq 'slave' )
  3118. {
  3119. mtr_add_arg($args, "%s--debug=d:t:i:A,%s/log/slave%s.trace",
  3120. $prefix, $path_vardir_trace, $sidx);
  3121. }
  3122. }
  3123. # FIXME always set nowdays??? SMALL_SERVER
  3124. mtr_add_arg($args, "%s--key_buffer_size=1M", $prefix);
  3125. mtr_add_arg($args, "%s--sort_buffer=256K", $prefix);
  3126. mtr_add_arg($args, "%s--max_heap_table_size=1M", $prefix);
  3127. if ( $opt_ssl_supported )
  3128. {
  3129. mtr_add_arg($args, "%s--ssl-ca=%s/std_data/cacert.pem", $prefix,
  3130. $glob_mysql_test_dir);
  3131. mtr_add_arg($args, "%s--ssl-cert=%s/std_data/server-cert.pem", $prefix,
  3132. $glob_mysql_test_dir);
  3133. mtr_add_arg($args, "%s--ssl-key=%s/std_data/server-key.pem", $prefix,
  3134. $glob_mysql_test_dir);
  3135. }
  3136. if ( $opt_warnings )
  3137. {
  3138. mtr_add_arg($args, "%s--log-warnings", $prefix);
  3139. }
  3140. # Indicate to "mysqld" it will be debugged in debugger
  3141. if ( $glob_debugger )
  3142. {
  3143. mtr_add_arg($args, "%s--gdb", $prefix);
  3144. }
  3145. # If we should run all tests cases, we will use a local server for that
  3146. if ( -w "/" )
  3147. {
  3148. # We are running as root; We need to add the --root argument
  3149. mtr_add_arg($args, "%s--user=root", $prefix);
  3150. }
  3151. my $found_skip_core= 0;
  3152. foreach my $arg ( @opt_extra_mysqld_opt, @$extra_opt )
  3153. {
  3154. # Allow --skip-core-file to be set in master.opt file
  3155. if ($arg eq "--skip-core-file")
  3156. {
  3157. $found_skip_core= 1;
  3158. }
  3159. elsif ($skip_binlog and mtr_match_prefix($arg, "--binlog-format"))
  3160. {
  3161. ; # Dont add --binlog-format when running without binlog
  3162. }
  3163. else
  3164. {
  3165. mtr_add_arg($args, "%s%s", $prefix, $arg);
  3166. }
  3167. }
  3168. if ( !$found_skip_core )
  3169. {
  3170. mtr_add_arg($args, "%s%s", $prefix, "--core-file");
  3171. }
  3172. if ( $opt_bench )
  3173. {
  3174. mtr_add_arg($args, "%s--rpl-recovery-rank=1", $prefix);
  3175. mtr_add_arg($args, "%s--init-rpl-role=master", $prefix);
  3176. }
  3177. elsif ( $type eq 'master' )
  3178. {
  3179. mtr_add_arg($args, "%s--open-files-limit=1024", $prefix);
  3180. }
  3181. return $args;
  3182. }
  3183. ##############################################################################
  3184. #
  3185. # Start mysqld and return the PID
  3186. #
  3187. ##############################################################################
  3188. sub mysqld_start ($$$) {
  3189. my $mysqld= shift;
  3190. my $extra_opt= shift;
  3191. my $slave_master_info= shift;
  3192. my $args; # Arg vector
  3193. my $exe;
  3194. my $pid= -1;
  3195. my $wait_for_pid_file= 1;
  3196. my $type= $mysqld->{'type'};
  3197. my $idx= $mysqld->{'idx'};
  3198. mtr_error("Internal error: mysqld should never be started for embedded")
  3199. if $glob_use_embedded_server;
  3200. if ( $type eq 'master' )
  3201. {
  3202. $exe= $exe_master_mysqld;
  3203. }
  3204. elsif ( $type eq 'slave' )
  3205. {
  3206. $exe= $exe_slave_mysqld;
  3207. }
  3208. else
  3209. {
  3210. mtr_error("Unknown 'type' \"$type\" passed to mysqld_start");
  3211. }
  3212. mtr_init_args(\$args);
  3213. if ( $opt_valgrind_mysqld )
  3214. {
  3215. valgrind_arguments($args, \$exe);
  3216. }
  3217. mysqld_arguments($args,$type,$idx,$extra_opt,$slave_master_info);
  3218. if ( $opt_gdb || $opt_manual_gdb)
  3219. {
  3220. gdb_arguments(\$args, \$exe, "$type"."_$idx");
  3221. }
  3222. elsif ( $opt_ddd || $opt_manual_ddd )
  3223. {
  3224. ddd_arguments(\$args, \$exe, "$type"."_$idx");
  3225. }
  3226. elsif ( $opt_debugger )
  3227. {
  3228. debugger_arguments(\$args, \$exe, "$type"."_$idx");
  3229. }
  3230. elsif ( $opt_manual_debug )
  3231. {
  3232. print "\nStart $type in your debugger\n" .
  3233. "dir: $glob_mysql_test_dir\n" .
  3234. "exe: $exe\n" .
  3235. "args: " . join(" ", @$args) . "\n\n" .
  3236. "Waiting ....\n";
  3237. # Indicate the exe should not be started
  3238. $exe= undef;
  3239. }
  3240. else
  3241. {
  3242. # Default to not wait until pid file has been created
  3243. $wait_for_pid_file= 0;
  3244. }
  3245. if ( defined $exe )
  3246. {
  3247. $pid= mtr_spawn($exe, $args, "",
  3248. $mysqld->{'path_myerr'},
  3249. $mysqld->{'path_myerr'},
  3250. "",
  3251. { append_log_file => 1 });
  3252. }
  3253. if ( $wait_for_pid_file && !sleep_until_file_created($mysqld->{'path_pid'},
  3254. $mysqld->{'start_timeout'},
  3255. $pid))
  3256. {
  3257. mtr_error("Failed to start mysqld $mysqld->{'type'}");
  3258. }
  3259. # Remember pid of the started process
  3260. $mysqld->{'pid'}= $pid;
  3261. # Remember options used when starting
  3262. $mysqld->{'start_opts'}= $extra_opt;
  3263. $mysqld->{'start_slave_master_info'}= $slave_master_info;
  3264. mtr_verbose("mysqld pid: $pid");
  3265. return $pid;
  3266. }
  3267. sub stop_all_servers () {
  3268. print "Stopping All Servers\n";
  3269. if ( ! $opt_skip_im )
  3270. {
  3271. print "Shutting-down Instance Manager\n";
  3272. unless (mtr_im_stop($instance_manager, "stop_all_servers"))
  3273. {
  3274. mtr_error("Failed to stop Instance Manager.")
  3275. }
  3276. }
  3277. my %admin_pids; # hash of admin processes that requests shutdown
  3278. my @kill_pids; # list of processes to shutdown/kill
  3279. my $pid;
  3280. # Start shutdown of all started masters
  3281. foreach my $mysqld (@{$master}, @{$slave})
  3282. {
  3283. if ( $mysqld->{'pid'} )
  3284. {
  3285. $pid= mtr_mysqladmin_start($mysqld, "shutdown", 70);
  3286. $admin_pids{$pid}= 1;
  3287. push(@kill_pids,{
  3288. pid => $mysqld->{'pid'},
  3289. pidfile => $mysqld->{'path_pid'},
  3290. sockfile => $mysqld->{'path_sock'},
  3291. port => $mysqld->{'port'},
  3292. });
  3293. $mysqld->{'pid'}= 0; # Assume we are done with it
  3294. }
  3295. }
  3296. # Start shutdown of clusters
  3297. foreach my $cluster (@{$clusters})
  3298. {
  3299. if ( $cluster->{'pid'} )
  3300. {
  3301. $pid= mtr_ndbmgm_start($cluster, "shutdown");
  3302. $admin_pids{$pid}= 1;
  3303. push(@kill_pids,{
  3304. pid => $cluster->{'pid'},
  3305. pidfile => $cluster->{'path_pid'}
  3306. });
  3307. $cluster->{'pid'}= 0; # Assume we are done with it
  3308. foreach my $ndbd (@{$cluster->{'ndbds'}})
  3309. {
  3310. if ( $ndbd->{'pid'} )
  3311. {
  3312. push(@kill_pids,{
  3313. pid => $ndbd->{'pid'},
  3314. pidfile => $ndbd->{'path_pid'},
  3315. });
  3316. $ndbd->{'pid'}= 0;
  3317. }
  3318. }
  3319. }
  3320. }
  3321. # Wait blocking until all shutdown processes has completed
  3322. mtr_wait_blocking(\%admin_pids);
  3323. # Make sure that process has shutdown else try to kill them
  3324. mtr_check_stop_servers(\@kill_pids);
  3325. foreach my $mysqld (@{$master}, @{$slave})
  3326. {
  3327. rm_ndbcluster_tables($mysqld->{'path_myddir'});
  3328. }
  3329. }
  3330. sub run_testcase_need_master_restart($)
  3331. {
  3332. my ($tinfo)= @_;
  3333. # We try to find out if we are to restart the master(s)
  3334. my $do_restart= 0; # Assumes we don't have to
  3335. if ( $glob_use_embedded_server )
  3336. {
  3337. mtr_verbose("Never start or restart for embedded server");
  3338. return $do_restart;
  3339. }
  3340. elsif ( $tinfo->{'master_sh'} )
  3341. {
  3342. $do_restart= 1; # Always restart if script to run
  3343. mtr_verbose("Restart master: Always restart if script to run");
  3344. }
  3345. if ( $tinfo->{'force_restart'} )
  3346. {
  3347. $do_restart= 1; # Always restart if --force-restart in -opt file
  3348. mtr_verbose("Restart master: Restart forced with --force-restart");
  3349. }
  3350. elsif ( ! $opt_skip_ndbcluster and
  3351. !$tinfo->{'ndb_test'} and
  3352. $clusters->[0]->{'pid'} != 0 )
  3353. {
  3354. $do_restart= 1; # Restart without cluster
  3355. mtr_verbose("Restart master: Test does not need cluster");
  3356. }
  3357. elsif ( ! $opt_skip_ndbcluster and
  3358. $tinfo->{'ndb_test'} and
  3359. $clusters->[0]->{'pid'} == 0 )
  3360. {
  3361. $do_restart= 1; # Restart with cluster
  3362. mtr_verbose("Restart master: Test need cluster");
  3363. }
  3364. elsif( $tinfo->{'component_id'} eq 'im' )
  3365. {
  3366. $do_restart= 1;
  3367. mtr_verbose("Restart master: Always restart for im tests");
  3368. }
  3369. elsif ( $master->[0]->{'running_master_options'} and
  3370. $master->[0]->{'running_master_options'}->{'timezone'} ne
  3371. $tinfo->{'timezone'})
  3372. {
  3373. $do_restart= 1;
  3374. mtr_verbose("Restart master: Different timezone");
  3375. }
  3376. # Check that running master was started with same options
  3377. # as the current test requires
  3378. elsif (! mtr_same_opts($master->[0]->{'start_opts'},
  3379. $tinfo->{'master_opt'}) )
  3380. {
  3381. $do_restart= 1;
  3382. mtr_verbose("Restart master: running with different options '" .
  3383. join(" ", @{$tinfo->{'master_opt'}}) . "' != '" .
  3384. join(" ", @{$master->[0]->{'start_opts'}}) . "'" );
  3385. }
  3386. elsif( ! $master->[0]->{'pid'} )
  3387. {
  3388. if ( $opt_extern )
  3389. {
  3390. $do_restart= 0;
  3391. mtr_verbose("No restart: using extern master");
  3392. }
  3393. else
  3394. {
  3395. $do_restart= 1;
  3396. mtr_verbose("Restart master: master is not started");
  3397. }
  3398. }
  3399. return $do_restart;
  3400. }
  3401. sub run_testcase_need_slave_restart($)
  3402. {
  3403. my ($tinfo)= @_;
  3404. # We try to find out if we are to restart the slaves
  3405. my $do_slave_restart= 0; # Assumes we don't have to
  3406. if ( $glob_use_embedded_server )
  3407. {
  3408. mtr_verbose("Never start or restart for embedded server");
  3409. return $do_slave_restart;
  3410. }
  3411. elsif ( $max_slave_num == 0)
  3412. {
  3413. mtr_verbose("Skip slave restart: No testcase use slaves");
  3414. }
  3415. else
  3416. {
  3417. # Check if any slave is currently started
  3418. my $any_slave_started= 0;
  3419. foreach my $mysqld (@{$slave})
  3420. {
  3421. if ( $mysqld->{'pid'} )
  3422. {
  3423. $any_slave_started= 1;
  3424. last;
  3425. }
  3426. }
  3427. if ($any_slave_started)
  3428. {
  3429. mtr_verbose("Restart slave: Slave is started, always restart");
  3430. $do_slave_restart= 1;
  3431. }
  3432. elsif ( $tinfo->{'slave_num'} )
  3433. {
  3434. mtr_verbose("Restart slave: Test need slave");
  3435. $do_slave_restart= 1;
  3436. }
  3437. }
  3438. return $do_slave_restart;
  3439. }
  3440. # ----------------------------------------------------------------------
  3441. # If not using a running servers we may need to stop and restart.
  3442. # We restart in the case we have initiation scripts, server options
  3443. # etc to run. But we also restart again after the test first restart
  3444. # and test is run, to get back to normal server settings.
  3445. #
  3446. # To make the code a bit more clean, we actually only stop servers
  3447. # here, and mark this to be done. Then a generic "start" part will
  3448. # start up the needed servers again.
  3449. # ----------------------------------------------------------------------
  3450. sub run_testcase_stop_servers($$$) {
  3451. my ($tinfo, $do_restart, $do_slave_restart)= @_;
  3452. my $pid;
  3453. my %admin_pids; # hash of admin processes that requests shutdown
  3454. my @kill_pids; # list of processes to shutdown/kill
  3455. # Remember if we restarted for this test case (count restarts)
  3456. $tinfo->{'restarted'}= $do_restart;
  3457. if ( $do_restart )
  3458. {
  3459. delete $master->[0]->{'running_master_options'}; # Forget history
  3460. # Start shutdown of all started masters
  3461. foreach my $mysqld (@{$master})
  3462. {
  3463. if ( $mysqld->{'pid'} )
  3464. {
  3465. $pid= mtr_mysqladmin_start($mysqld, "shutdown", 70);
  3466. $admin_pids{$pid}= 1;
  3467. push(@kill_pids,{
  3468. pid => $mysqld->{'pid'},
  3469. pidfile => $mysqld->{'path_pid'},
  3470. sockfile => $mysqld->{'path_sock'},
  3471. port => $mysqld->{'port'},
  3472. });
  3473. $mysqld->{'pid'}= 0; # Assume we are done with it
  3474. }
  3475. }
  3476. # Start shutdown of master cluster
  3477. my $cluster= $clusters->[0];
  3478. if ( $cluster->{'pid'} )
  3479. {
  3480. $pid= mtr_ndbmgm_start($cluster, "shutdown");
  3481. $admin_pids{$pid}= 1;
  3482. push(@kill_pids,{
  3483. pid => $cluster->{'pid'},
  3484. pidfile => $cluster->{'path_pid'}
  3485. });
  3486. $cluster->{'pid'}= 0; # Assume we are done with it
  3487. foreach my $ndbd (@{$cluster->{'ndbds'}})
  3488. {
  3489. push(@kill_pids,{
  3490. pid => $ndbd->{'pid'},
  3491. pidfile => $ndbd->{'path_pid'},
  3492. });
  3493. $ndbd->{'pid'}= 0; # Assume we are done with it
  3494. }
  3495. }
  3496. }
  3497. if ( $do_restart || $do_slave_restart )
  3498. {
  3499. delete $slave->[0]->{'running_slave_options'}; # Forget history
  3500. # Start shutdown of all started slaves
  3501. foreach my $mysqld (@{$slave})
  3502. {
  3503. if ( $mysqld->{'pid'} )
  3504. {
  3505. $pid= mtr_mysqladmin_start($mysqld, "shutdown", 70);
  3506. $admin_pids{$pid}= 1;
  3507. push(@kill_pids,{
  3508. pid => $mysqld->{'pid'},
  3509. pidfile => $mysqld->{'path_pid'},
  3510. sockfile => $mysqld->{'path_sock'},
  3511. port => $mysqld->{'port'},
  3512. });
  3513. $mysqld->{'pid'}= 0; # Assume we are done with it
  3514. }
  3515. }
  3516. # Start shutdown of slave cluster
  3517. my $cluster= $clusters->[1];
  3518. if ( $cluster->{'pid'} )
  3519. {
  3520. $pid= mtr_ndbmgm_start($cluster, "shutdown");
  3521. $admin_pids{$pid}= 1;
  3522. push(@kill_pids,{
  3523. pid => $cluster->{'pid'},
  3524. pidfile => $cluster->{'path_pid'}
  3525. });
  3526. $cluster->{'pid'}= 0; # Assume we are done with it
  3527. foreach my $ndbd (@{$cluster->{'ndbds'}} )
  3528. {
  3529. push(@kill_pids,{
  3530. pid => $ndbd->{'pid'},
  3531. pidfile => $ndbd->{'path_pid'},
  3532. });
  3533. $ndbd->{'pid'}= 0; # Assume we are done with it
  3534. }
  3535. }
  3536. }
  3537. # ----------------------------------------------------------------------
  3538. # Shutdown has now been started and lists for the shutdown processes
  3539. # and the processes to be killed has been created
  3540. # ----------------------------------------------------------------------
  3541. # Wait blocking until all shutdown processes has completed
  3542. mtr_wait_blocking(\%admin_pids);
  3543. # Make sure that process has shutdown else try to kill them
  3544. mtr_check_stop_servers(\@kill_pids);
  3545. foreach my $mysqld (@{$master}, @{$slave})
  3546. {
  3547. if ( ! $mysqld->{'pid'} )
  3548. {
  3549. # Remove ndbcluster tables if server is stopped
  3550. rm_ndbcluster_tables($mysqld->{'path_myddir'});
  3551. }
  3552. }
  3553. }
  3554. #
  3555. # run_testcase_start_servers
  3556. #
  3557. # Start the servers needed by this test case
  3558. #
  3559. # RETURN
  3560. # 0 OK
  3561. # 1 Start failed
  3562. #
  3563. sub run_testcase_start_servers($) {
  3564. my $tinfo= shift;
  3565. my $tname= $tinfo->{'name'};
  3566. if ( $tinfo->{'component_id'} eq 'mysqld' )
  3567. {
  3568. if ( ! $opt_skip_ndbcluster and
  3569. !$clusters->[0]->{'pid'} and
  3570. $tinfo->{'ndb_test'} )
  3571. {
  3572. # Test need cluster, cluster is not started, start it
  3573. ndbcluster_start($clusters->[0], "");
  3574. }
  3575. if ( !$master->[0]->{'pid'} )
  3576. {
  3577. # Master mysqld is not started
  3578. do_before_start_master($tinfo);
  3579. mysqld_start($master->[0],$tinfo->{'master_opt'},[]);
  3580. }
  3581. if ( $clusters->[0]->{'pid'} and ! $master->[1]->{'pid'} )
  3582. {
  3583. # Test needs cluster, start an extra mysqld connected to cluster
  3584. if ( $mysql_version_id >= 50100 )
  3585. {
  3586. # First wait for first mysql server to have created ndb system
  3587. # tables ok FIXME This is a workaround so that only one mysqld
  3588. # create the tables
  3589. if ( ! sleep_until_file_created(
  3590. "$master->[0]->{'path_myddir'}/mysql/apply_status.ndb",
  3591. $master->[0]->{'start_timeout'},
  3592. $master->[0]->{'pid'}))
  3593. {
  3594. $tinfo->{'comment'}= "Failed to create 'mysql/apply_status' table";
  3595. return 1;
  3596. }
  3597. }
  3598. mysqld_start($master->[1],$tinfo->{'master_opt'},[]);
  3599. }
  3600. # Save this test case information, so next can examine it
  3601. $master->[0]->{'running_master_options'}= $tinfo;
  3602. }
  3603. elsif ( ! $opt_skip_im and $tinfo->{'component_id'} eq 'im' )
  3604. {
  3605. # We have to create defaults file every time, in order to ensure that it
  3606. # will be the same for each test. The problem is that test can change the
  3607. # file (by SET/UNSET commands), so w/o recreating the file, execution of
  3608. # one test can affect the other.
  3609. im_create_defaults_file($instance_manager);
  3610. if ( ! mtr_im_start($instance_manager, $tinfo->{im_opts}) )
  3611. {
  3612. $tinfo->{'comment'}= "Failed to start Instance Manager. ";
  3613. return 1;
  3614. }
  3615. }
  3616. # ----------------------------------------------------------------------
  3617. # Start slaves - if needed
  3618. # ----------------------------------------------------------------------
  3619. if ( $tinfo->{'slave_num'} )
  3620. {
  3621. restore_slave_databases($tinfo->{'slave_num'});
  3622. do_before_start_slave($tinfo);
  3623. if ( ! $opt_skip_ndbcluster_slave and
  3624. !$clusters->[1]->{'pid'} and
  3625. $tinfo->{'ndb_test'} )
  3626. {
  3627. # Test need slave cluster, cluster is not started, start it
  3628. ndbcluster_start($clusters->[1], "");
  3629. }
  3630. for ( my $idx= 0; $idx < $tinfo->{'slave_num'}; $idx++ )
  3631. {
  3632. if ( ! $slave->[$idx]->{'pid'} )
  3633. {
  3634. mysqld_start($slave->[$idx],$tinfo->{'slave_opt'},
  3635. $tinfo->{'slave_mi'});
  3636. }
  3637. }
  3638. # Save this test case information, so next can examine it
  3639. $slave->[0]->{'running_slave_options'}= $tinfo;
  3640. }
  3641. # Wait for clusters to start
  3642. foreach my $cluster (@{$clusters})
  3643. {
  3644. next if !$cluster->{'pid'};
  3645. if (ndbcluster_wait_started($cluster, ""))
  3646. {
  3647. # failed to start
  3648. $tinfo->{'comment'}= "Start of $cluster->{'name'} cluster failed";
  3649. return 1;
  3650. }
  3651. }
  3652. # Wait for mysqld's to start
  3653. foreach my $mysqld (@{$master},@{$slave})
  3654. {
  3655. next if !$mysqld->{'pid'};
  3656. if (mysqld_wait_started($mysqld))
  3657. {
  3658. # failed to start
  3659. $tinfo->{'comment'}=
  3660. "Failed to start $mysqld->{'type'} mysqld $mysqld->{'idx'}";
  3661. return 1;
  3662. }
  3663. }
  3664. return 0;
  3665. }
  3666. #
  3667. # Run include/check-testcase.test
  3668. # Before a testcase, run in record mode, save result file to var
  3669. # After testcase, run and compare with the recorded file, they should be equal!
  3670. #
  3671. # RETURN VALUE
  3672. # 0 OK
  3673. # 1 Check failed
  3674. #
  3675. sub run_check_testcase ($$) {
  3676. my $mode= shift;
  3677. my $mysqld= shift;
  3678. my $name= "check-" . $mysqld->{'type'} . $mysqld->{'idx'};
  3679. my $args;
  3680. mtr_init_args(\$args);
  3681. mtr_add_arg($args, "--no-defaults");
  3682. mtr_add_arg($args, "--silent");
  3683. mtr_add_arg($args, "--skip-safemalloc");
  3684. mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
  3685. mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
  3686. mtr_add_arg($args, "--socket=%s", $mysqld->{'path_sock'});
  3687. mtr_add_arg($args, "--port=%d", $mysqld->{'port'});
  3688. mtr_add_arg($args, "--database=test");
  3689. mtr_add_arg($args, "--user=%s", $opt_user);
  3690. mtr_add_arg($args, "--password=");
  3691. mtr_add_arg($args, "-R");
  3692. mtr_add_arg($args, "$opt_vardir/tmp/$name.result");
  3693. if ( $mode eq "before" )
  3694. {
  3695. mtr_add_arg($args, "--record");
  3696. }
  3697. my $res = mtr_run_test($exe_mysqltest,$args,
  3698. "include/check-testcase.test", "", "", "");
  3699. if ( $res == 1 and $mode eq "after")
  3700. {
  3701. mtr_run("diff",["-u",
  3702. "$opt_vardir/tmp/$name.result",
  3703. "$opt_vardir/tmp/$name.reject"],
  3704. "", "", "", "");
  3705. }
  3706. elsif ( $res )
  3707. {
  3708. mtr_error("Could not execute 'check-testcase' $mode testcase");
  3709. }
  3710. return $res;
  3711. }
  3712. ##############################################################################
  3713. #
  3714. # Report the features that were compiled in
  3715. #
  3716. ##############################################################################
  3717. sub run_report_features () {
  3718. my $args;
  3719. if ( ! $glob_use_embedded_server )
  3720. {
  3721. mysqld_start($master->[0],[],[]);
  3722. if ( ! $master->[0]->{'pid'} )
  3723. {
  3724. mtr_error("Can't start the mysqld server");
  3725. }
  3726. mysqld_wait_started($master->[0]);
  3727. }
  3728. my $tinfo = {};
  3729. $tinfo->{'name'} = 'report features';
  3730. $tinfo->{'result_file'} = undef;
  3731. $tinfo->{'component_id'} = 'mysqld';
  3732. $tinfo->{'path'} = 'include/report-features.test';
  3733. $tinfo->{'timezone'}= "GMT-3";
  3734. $tinfo->{'slave_num'} = 0;
  3735. $tinfo->{'master_opt'} = [];
  3736. $tinfo->{'slave_opt'} = [];
  3737. $tinfo->{'slave_mi'} = [];
  3738. $tinfo->{'comment'} = 'report server features';
  3739. run_mysqltest($tinfo);
  3740. if ( ! $glob_use_embedded_server )
  3741. {
  3742. stop_all_servers();
  3743. }
  3744. }
  3745. sub run_mysqltest ($) {
  3746. my ($tinfo)= @_;
  3747. my $exe= $exe_mysqltest;
  3748. my $args;
  3749. mtr_init_args(\$args);
  3750. mtr_add_arg($args, "--no-defaults");
  3751. mtr_add_arg($args, "--silent");
  3752. mtr_add_arg($args, "--skip-safemalloc");
  3753. mtr_add_arg($args, "--tmpdir=%s", $opt_tmpdir);
  3754. mtr_add_arg($args, "--character-sets-dir=%s", $path_charsetsdir);
  3755. if ($tinfo->{'component_id'} eq 'im')
  3756. {
  3757. mtr_add_arg($args, "--socket=%s", $instance_manager->{'path_sock'});
  3758. mtr_add_arg($args, "--port=%d", $instance_manager->{'port'});
  3759. mtr_add_arg($args, "--user=%s", $instance_manager->{'admin_login'});
  3760. mtr_add_arg($args, "--password=%s", $instance_manager->{'admin_password'});
  3761. }
  3762. else # component_id == mysqld
  3763. {
  3764. mtr_add_arg($args, "--socket=%s", $master->[0]->{'path_sock'});
  3765. mtr_add_arg($args, "--port=%d", $master->[0]->{'port'});
  3766. mtr_add_arg($args, "--database=test");
  3767. mtr_add_arg($args, "--user=%s", $opt_user);
  3768. mtr_add_arg($args, "--password=");
  3769. }
  3770. if ( $opt_ps_protocol )
  3771. {
  3772. mtr_add_arg($args, "--ps-protocol");
  3773. }
  3774. if ( $opt_sp_protocol )
  3775. {
  3776. mtr_add_arg($args, "--sp-protocol");
  3777. }
  3778. if ( $opt_view_protocol )
  3779. {
  3780. mtr_add_arg($args, "--view-protocol");
  3781. }
  3782. if ( $opt_cursor_protocol )
  3783. {
  3784. mtr_add_arg($args, "--cursor-protocol");
  3785. }
  3786. if ( $opt_strace_client )
  3787. {
  3788. $exe= "strace"; # FIXME there are ktrace, ....
  3789. mtr_add_arg($args, "-o");
  3790. mtr_add_arg($args, "%s/log/mysqltest.strace", $opt_vardir);
  3791. mtr_add_arg($args, "$exe_mysqltest");
  3792. }
  3793. if ( $opt_timer )
  3794. {
  3795. mtr_add_arg($args, "--timer-file=%s/log/timer", $opt_vardir);
  3796. }
  3797. if ( $opt_compress )
  3798. {
  3799. mtr_add_arg($args, "--compress");
  3800. }
  3801. if ( $opt_sleep )
  3802. {
  3803. mtr_add_arg($args, "--sleep=%d", $opt_sleep);
  3804. }
  3805. if ( $opt_debug )
  3806. {
  3807. mtr_add_arg($args, "--debug=d:t:A,%s/log/mysqltest.trace",
  3808. $path_vardir_trace);
  3809. }
  3810. if ( $opt_ssl_supported )
  3811. {
  3812. mtr_add_arg($args, "--ssl-ca=%s/std_data/cacert.pem",
  3813. $glob_mysql_test_dir);
  3814. mtr_add_arg($args, "--ssl-cert=%s/std_data/client-cert.pem",
  3815. $glob_mysql_test_dir);
  3816. mtr_add_arg($args, "--ssl-key=%s/std_data/client-key.pem",
  3817. $glob_mysql_test_dir);
  3818. }
  3819. if ( $opt_ssl )
  3820. {
  3821. # Turn on SSL for _all_ test cases if option --ssl was used
  3822. mtr_add_arg($args, "--ssl");
  3823. }
  3824. elsif ( $opt_ssl_supported )
  3825. {
  3826. mtr_add_arg($args, "--skip-ssl");
  3827. }
  3828. # ----------------------------------------------------------------------
  3829. # If embedded server, we create server args to give mysqltest to pass on
  3830. # ----------------------------------------------------------------------
  3831. if ( $glob_use_embedded_server )
  3832. {
  3833. mysqld_arguments($args,'master',0,$tinfo->{'master_opt'},[]);
  3834. }
  3835. # ----------------------------------------------------------------------
  3836. # export MYSQL_TEST variable containing <path>/mysqltest <args>
  3837. # ----------------------------------------------------------------------
  3838. $ENV{'MYSQL_TEST'}= "$exe_mysqltest " . join(" ", @$args);
  3839. # ----------------------------------------------------------------------
  3840. # Add arguments that should not go into the MYSQL_TEST env var
  3841. # ----------------------------------------------------------------------
  3842. if ( $opt_valgrind_mysqltest )
  3843. {
  3844. # Prefix the Valgrind options to the argument list.
  3845. # We do this here, since we do not want to Valgrind the nested invocations
  3846. # of mysqltest; that would mess up the stderr output causing test failure.
  3847. my @args_saved = @$args;
  3848. mtr_init_args(\$args);
  3849. valgrind_arguments($args, \$exe);
  3850. mtr_add_arg($args, "%s", $_) for @args_saved;
  3851. }
  3852. mtr_add_arg($args, "--test-file");
  3853. mtr_add_arg($args, $tinfo->{'path'});
  3854. if ( defined $tinfo->{'result_file'} ) {
  3855. mtr_add_arg($args, "--result-file");
  3856. mtr_add_arg($args, $tinfo->{'result_file'});
  3857. }
  3858. if ( $opt_record )
  3859. {
  3860. mtr_add_arg($args, "--record");
  3861. }
  3862. if ( $opt_client_gdb )
  3863. {
  3864. gdb_arguments(\$args, \$exe, "client");
  3865. }
  3866. elsif ( $opt_client_ddd )
  3867. {
  3868. ddd_arguments(\$args, \$exe, "client");
  3869. }
  3870. elsif ( $opt_client_debugger )
  3871. {
  3872. debugger_arguments(\$args, \$exe, "client");
  3873. }
  3874. if ( $opt_check_testcases )
  3875. {
  3876. foreach my $mysqld (@{$master}, @{$slave})
  3877. {
  3878. if ($mysqld->{'pid'})
  3879. {
  3880. run_check_testcase("before", $mysqld);
  3881. }
  3882. }
  3883. }
  3884. my $res = mtr_run_test($exe,$args,"","",$path_timefile,"");
  3885. if ( $opt_check_testcases )
  3886. {
  3887. foreach my $mysqld (@{$master}, @{$slave})
  3888. {
  3889. if ($mysqld->{'pid'})
  3890. {
  3891. if (run_check_testcase("after", $mysqld))
  3892. {
  3893. # Check failed, mark the test case with that info
  3894. $tinfo->{'check_testcase_failed'}= 1;
  3895. }
  3896. }
  3897. }
  3898. }
  3899. return $res;
  3900. }
  3901. #
  3902. # Modify the exe and args so that program is run in gdb in xterm
  3903. #
  3904. sub gdb_arguments {
  3905. my $args= shift;
  3906. my $exe= shift;
  3907. my $type= shift;
  3908. # Write $args to gdb init file
  3909. my $str= join(" ", @$$args);
  3910. my $gdb_init_file= "$opt_tmpdir/gdbinit.$type";
  3911. # Remove the old gdbinit file
  3912. unlink($gdb_init_file);
  3913. if ( $type eq "client" )
  3914. {
  3915. # write init file for client
  3916. mtr_tofile($gdb_init_file,
  3917. "set args $str\n" .
  3918. "break main\n");
  3919. }
  3920. else
  3921. {
  3922. # write init file for mysqld
  3923. mtr_tofile($gdb_init_file,
  3924. "set args $str\n" .
  3925. "break mysql_parse\n" .
  3926. "commands 1\n" .
  3927. "disable 1\n" .
  3928. "end\n" .
  3929. "run");
  3930. }
  3931. if ( $opt_manual_gdb )
  3932. {
  3933. print "\nTo start gdb for $type, type in another window:\n";
  3934. print "cd $glob_mysql_test_dir;\n";
  3935. print "gdb -x $gdb_init_file $$exe\n";
  3936. # Indicate the exe should not be started
  3937. $$exe= undef;
  3938. return;
  3939. }
  3940. $$args= [];
  3941. mtr_add_arg($$args, "-title");
  3942. mtr_add_arg($$args, "$type");
  3943. mtr_add_arg($$args, "-e");
  3944. if ( $exe_libtool )
  3945. {
  3946. mtr_add_arg($$args, $exe_libtool);
  3947. mtr_add_arg($$args, "--mode=execute");
  3948. }
  3949. mtr_add_arg($$args, "gdb");
  3950. mtr_add_arg($$args, "-x");
  3951. mtr_add_arg($$args, "$gdb_init_file");
  3952. mtr_add_arg($$args, "$$exe");
  3953. $$exe= "xterm";
  3954. }
  3955. #
  3956. # Modify the exe and args so that program is run in ddd
  3957. #
  3958. sub ddd_arguments {
  3959. my $args= shift;
  3960. my $exe= shift;
  3961. my $type= shift;
  3962. # Write $args to ddd init file
  3963. my $str= join(" ", @$$args);
  3964. my $gdb_init_file= "$opt_tmpdir/gdbinit.$type";
  3965. # Remove the old gdbinit file
  3966. unlink($gdb_init_file);
  3967. if ( $type eq "client" )
  3968. {
  3969. # write init file for client
  3970. mtr_tofile($gdb_init_file,
  3971. "set args $str\n" .
  3972. "break main\n");
  3973. }
  3974. else
  3975. {
  3976. # write init file for mysqld
  3977. mtr_tofile($gdb_init_file,
  3978. "file $$exe\n" .
  3979. "set args $str\n" .
  3980. "break mysql_parse\n" .
  3981. "commands 1\n" .
  3982. "disable 1\n" .
  3983. "end");
  3984. }
  3985. if ( $opt_manual_ddd )
  3986. {
  3987. print "\nTo start ddd for $type, type in another window:\n";
  3988. print "cd $glob_mysql_test_dir;\n";
  3989. print "ddd -x $gdb_init_file $$exe\n";
  3990. # Indicate the exe should not be started
  3991. $$exe= undef;
  3992. return;
  3993. }
  3994. my $save_exe= $$exe;
  3995. $$args= [];
  3996. if ( $exe_libtool )
  3997. {
  3998. $$exe= $exe_libtool;
  3999. mtr_add_arg($$args, "--mode=execute");
  4000. mtr_add_arg($$args, "ddd");
  4001. }
  4002. else
  4003. {
  4004. $$exe= "ddd";
  4005. }
  4006. mtr_add_arg($$args, "--command=$gdb_init_file");
  4007. mtr_add_arg($$args, "$save_exe");
  4008. }
  4009. #
  4010. # Modify the exe and args so that program is run in the selected debugger
  4011. #
  4012. sub debugger_arguments {
  4013. my $args= shift;
  4014. my $exe= shift;
  4015. my $debugger= $opt_debugger || $opt_client_debugger;
  4016. # FIXME Need to change the below "eq"'s to
  4017. # "case unsensitive string contains"
  4018. if ( $debugger eq "vcexpress" or $debugger eq "vc")
  4019. {
  4020. # vc[express] /debugexe exe arg1 .. argn
  4021. # Add /debugexe and name of the exe before args
  4022. unshift(@$$args, "/debugexe");
  4023. unshift(@$$args, "$$exe");
  4024. }
  4025. elsif ( $debugger eq "windbg" )
  4026. {
  4027. # windbg exe arg1 .. argn
  4028. # Add name of the exe before args
  4029. unshift(@$$args, "$$exe");
  4030. }
  4031. else
  4032. {
  4033. mtr_error("Unknown argument \"$debugger\" passed to --debugger");
  4034. }
  4035. # Set exe to debuggername
  4036. $$exe= $debugger;
  4037. }
  4038. #
  4039. # Modify the exe and args so that program is run in valgrind
  4040. #
  4041. sub valgrind_arguments {
  4042. my $args= shift;
  4043. my $exe= shift;
  4044. if ( $opt_callgrind)
  4045. {
  4046. mtr_add_arg($args, "--tool=callgrind");
  4047. mtr_add_arg($args, "--base=$opt_vardir/log");
  4048. }
  4049. else
  4050. {
  4051. mtr_add_arg($args, "--tool=memcheck"); # From >= 2.1.2 needs this option
  4052. mtr_add_arg($args, "--alignment=8");
  4053. mtr_add_arg($args, "--leak-check=yes");
  4054. mtr_add_arg($args, "--num-callers=16");
  4055. mtr_add_arg($args, "--suppressions=%s/valgrind.supp", $glob_mysql_test_dir)
  4056. if -f "$glob_mysql_test_dir/valgrind.supp";
  4057. }
  4058. # Add valgrind options, can be overriden by user
  4059. mtr_add_arg($args, '%s', $_) for (split(' ', $opt_valgrind_options));
  4060. mtr_add_arg($args, $$exe);
  4061. $$exe= $opt_valgrind_path || "valgrind";
  4062. if ($exe_libtool)
  4063. {
  4064. # Add "libtool --mode-execute" before the test to execute
  4065. # if running in valgrind(to avoid valgrinding bash)
  4066. unshift(@$args, "--mode=execute", $$exe);
  4067. $$exe= $exe_libtool;
  4068. }
  4069. }
  4070. ##############################################################################
  4071. #
  4072. # Usage
  4073. #
  4074. ##############################################################################
  4075. sub usage ($) {
  4076. my $message= shift;
  4077. if ( $message )
  4078. {
  4079. print STDERR "$message \n";
  4080. }
  4081. print STDERR <<HERE;
  4082. $0 [ OPTIONS ] [ TESTCASE ]
  4083. Options to control what engine/variation to run
  4084. embedded-server Use the embedded server, i.e. no mysqld daemons
  4085. ps-protocol Use the binary protocol between client and server
  4086. cursor-protocol Use the cursor protocol between client and server
  4087. (implies --ps-protocol)
  4088. view-protocol Create a view to execute all non updating queries
  4089. sp-protocol Create a stored procedure to execute all queries
  4090. compress Use the compressed protocol between client and server
  4091. ssl Use ssl protocol between client and server
  4092. skip-ssl Dont start server with support for ssl connections
  4093. bench Run the benchmark suite
  4094. small-bench Run the benchmarks with --small-tests --small-tables
  4095. with-ndbcluster Use cluster as default table type for benchmark
  4096. vs-config Visual Studio configuration used to create executables
  4097. (default: MTR_VS_CONFIG environment variable)
  4098. Options to control directories to use
  4099. benchdir=DIR The directory where the benchmark suite is stored
  4100. (default: ../../mysql-bench)
  4101. tmpdir=DIR The directory where temporary files are stored
  4102. (default: ./var/tmp).
  4103. vardir=DIR The directory where files generated from the test run
  4104. is stored (default: ./var). Specifying a ramdisk or
  4105. tmpfs will speed up tests.
  4106. mem Run testsuite in "memory" using tmpfs or ramdisk
  4107. Attempts to find a suitable location
  4108. using a builtin list of standard locations
  4109. for tmpfs (/dev/shm)
  4110. The option can also be set using environment
  4111. variable MTR_MEM=[DIR]
  4112. Options to control what test suites or cases to run
  4113. force Continue to run the suite after failure
  4114. with-ndbcluster-only Run only tests that include "ndb" in the filename
  4115. skip-ndb[cluster] Skip all tests that need cluster
  4116. skip-ndb[cluster]-slave Skip all tests that need a slave cluster
  4117. ndb-extra Run extra tests from ndb directory
  4118. do-test=PREFIX Run test cases which name are prefixed with PREFIX
  4119. start-from=PREFIX Run test cases starting from test prefixed with PREFIX
  4120. suite=NAME Run the test suite named NAME. The default is "main"
  4121. skip-rpl Skip the replication test cases.
  4122. skip-im Don't start IM, and skip the IM test cases
  4123. skip-test=PREFIX Skip test cases which name are prefixed with PREFIX
  4124. big-test Set the environment variable BIG_TEST, which can be
  4125. checked from test cases.
  4126. Options that specify ports
  4127. master_port=PORT Specify the port number used by the first master
  4128. slave_port=PORT Specify the port number used by the first slave
  4129. ndbcluster-port=PORT Specify the port number used by cluster
  4130. ndbcluster-port-slave=PORT Specify the port number used by slave cluster
  4131. mtr-build-thread=# Specify unique collection of ports. Can also be set by
  4132. setting the environment variable MTR_BUILD_THREAD.
  4133. Options for test case authoring
  4134. record TESTNAME (Re)genereate the result file for TESTNAME
  4135. check-testcases Check testcases for sideeffects
  4136. Options that pass on options
  4137. mysqld=ARGS Specify additional arguments to "mysqld"
  4138. Options to run test on running server
  4139. extern Use running server for tests
  4140. ndb-connectstring=STR Use running cluster, and connect using STR
  4141. ndb-connectstring-slave=STR Use running slave cluster, and connect using STR
  4142. user=USER User for connection to extern server
  4143. socket=PATH Socket for connection to extern server
  4144. Options for debugging the product
  4145. client-ddd Start mysqltest client in ddd
  4146. client-debugger=NAME Start mysqltest in the selected debugger
  4147. client-gdb Start mysqltest client in gdb
  4148. ddd Start mysqld in ddd
  4149. debug Dump trace output for all servers and client programs
  4150. debugger=NAME Start mysqld in the selected debugger
  4151. gdb Start the mysqld(s) in gdb
  4152. manual-debug Let user manually start mysqld in debugger, before
  4153. running test(s)
  4154. manual-gdb Let user manually start mysqld in gdb, before running
  4155. test(s)
  4156. master-binary=PATH Specify the master "mysqld" to use
  4157. slave-binary=PATH Specify the slave "mysqld" to use
  4158. strace-client Create strace output for mysqltest client
  4159. Options for coverage, profiling etc
  4160. gcov FIXME
  4161. gprof FIXME
  4162. valgrind Run the "mysqltest" and "mysqld" executables using
  4163. valgrind with options($default_valgrind_options)
  4164. valgrind-all Synonym for --valgrind
  4165. valgrind-mysqltest Run the "mysqltest" and "mysql_client_test" executable
  4166. with valgrind
  4167. valgrind-mysqld Run the "mysqld" executable with valgrind
  4168. valgrind-options=ARGS Options to give valgrind, replaces default options
  4169. valgrind-path=[EXE] Path to the valgrind executable
  4170. callgrind Instruct valgrind to use callgrind
  4171. Misc options
  4172. comment=STR Write STR to the output
  4173. notimer Don't show test case execution time
  4174. script-debug Debug this script itself
  4175. verbose More verbose output
  4176. start-and-exit Only initialize and start the servers, using the
  4177. startup settings for the specified test case (if any)
  4178. start-dirty Only start the servers (without initialization) for
  4179. the specified test case (if any)
  4180. fast Don't try to clean up from earlier runs
  4181. reorder Reorder tests to get fewer server restarts
  4182. help Get this help text
  4183. unified-diff | udiff When presenting differences, use unified diff
  4184. testcase-timeout=MINUTES Max test case run time (default $default_testcase_timeout)
  4185. suite-timeout=MINUTES Max test suite run time (default $default_suite_timeout)
  4186. warnings | log-warnings Pass --log-warnings to mysqld
  4187. sleep=SECONDS Passed to mysqltest, will be used as fixed sleep time
  4188. Deprecated options
  4189. with-openssl Deprecated option for ssl
  4190. HERE
  4191. mtr_exit(1);
  4192. }