mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
mysql-test-run.pl:
Added --restart-cleanup option drop-on-restart.inc: DROP commands to cleanup on restart new file mysqltest.c: Added option --include=<sql-file>
This commit is contained in:
@ -143,6 +143,7 @@ our $glob_use_running_server= 0;
|
||||
our $glob_use_running_ndbcluster= 0;
|
||||
our $glob_use_running_ndbcluster_slave= 0;
|
||||
our $glob_use_embedded_server= 0;
|
||||
our $glob_mysqld_restart= 0;
|
||||
our @glob_test_mode;
|
||||
|
||||
our $using_ndbcluster_master= 0;
|
||||
@ -162,6 +163,7 @@ our $path_mysqltest_log;
|
||||
our $path_my_basedir;
|
||||
our $opt_vardir; # A path but set directly on cmd line
|
||||
our $opt_tmpdir; # A path but set directly on cmd line
|
||||
our $opt_restart_cleanup; # Source a file with SQL drop statements
|
||||
|
||||
our $opt_usage;
|
||||
our $opt_suite;
|
||||
@ -626,14 +628,15 @@ sub command_line_setup () {
|
||||
|
||||
# Misc
|
||||
'big-test' => \$opt_big_test,
|
||||
'comment=s' => \$opt_comment,
|
||||
'debug' => \$opt_debug,
|
||||
'fast' => \$opt_fast,
|
||||
'comment=s' => \$opt_comment,
|
||||
'local' => \$opt_local,
|
||||
'local-master' => \$opt_local_master,
|
||||
'netware' => \$opt_netware,
|
||||
'old-master' => \$opt_old_master,
|
||||
'reorder' => \$opt_reorder,
|
||||
'restart-cleanup' => \$opt_restart_cleanup,
|
||||
'script-debug' => \$opt_script_debug,
|
||||
'sleep=i' => \$opt_sleep,
|
||||
'socket=s' => \$opt_socket,
|
||||
@ -2242,6 +2245,7 @@ sub report_failure_and_restart ($) {
|
||||
{
|
||||
stop_masters_slaves();
|
||||
}
|
||||
$glob_mysqld_restart= 1;
|
||||
print "Resuming Tests\n\n";
|
||||
}
|
||||
|
||||
@ -3063,6 +3067,12 @@ sub run_mysqltest ($) {
|
||||
mtr_add_arg($args, "--sleep=%d", $opt_sleep);
|
||||
}
|
||||
|
||||
if ( $opt_restart_cleanup and $glob_mysqld_restart )
|
||||
{
|
||||
mtr_add_arg($args, "--include=%s", "include/drop-on-restart.inc");
|
||||
$glob_mysqld_restart= 0;
|
||||
}
|
||||
|
||||
if ( $opt_debug )
|
||||
{
|
||||
mtr_add_arg($args, "--debug=d:t:A,%s/log/mysqltest.trace", $opt_vardir);
|
||||
|
Reference in New Issue
Block a user