Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
abb0bdde
Commit
abb0bdde
authored
Feb 04, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --verbose-restart
parent
f8de652f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
16 deletions
+41
-16
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+1
-1
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+12
-0
mysql-test/lib/t/Options.t
mysql-test/lib/t/Options.t
+7
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+21
-15
No files found.
mysql-test/lib/mtr_cases.pm
View file @
abb0bdde
...
...
@@ -456,7 +456,7 @@ sub collect_one_suite($)
push
(
@
{
$new_test
->
{
master_opt
}},
@
{
$comb
->
{
comb_opt
}});
push
(
@
{
$new_test
->
{
slave_opt
}},
@
{
$comb
->
{
comb_opt
}});
# Add combination name shrt name
# Add combination name sh
o
rt name
$new_test
->
{
combination
}
=
$comb
->
{
name
};
# Add the new test to new test cases list
...
...
mysql-test/lib/mtr_report.pl
View file @
abb0bdde
...
...
@@ -536,4 +536,16 @@ sub mtr_verbose (@) {
}
sub
mtr_verbose_restart
(@)
{
my
(
$server
,
@args
)
=
@_
;
my
$proc
=
$server
->
{
proc
};
# Always print to log, print to screen only when --verbose is used
_mtr_log
("
> Restart:
$proc
-
",
@args
);
if
(
$::opt_verbose_restart
)
{
print
STDERR
"
> Restart
$proc
-
",
join
("
",
@args
),"
\n
";
}
}
1
;
mysql-test/lib/t/Options.t
View file @
abb0bdde
# -*- cperl -*-
use
Test::
More
qw(no_plan)
;
use
strict
;
...
...
@@ -96,6 +97,12 @@ my @tests=
['
--max_binlog_size=1
',
'
--relay-log=/path/to/a/relay-log
',
'
--binlog-format=default
'
]
],
[
[
'
--slow-query-log=0
'
],
[
'
--slow-query-log
'
],
[
'
--slow-query-log
'
]
],
);
...
...
mysql-test/mysql-test-run.pl
View file @
abb0bdde
...
...
@@ -90,6 +90,7 @@ our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
our
$opt_suites
=
DEFAULT_SUITES
;
our
$opt_verbose
=
0
;
# Verbose output, enable with --verbose
our
$opt_verbose_restart
=
0
;
# Verbose output for restarts
my
$exe_mysqld
;
our
$exe_mysql
;
...
...
@@ -186,8 +187,6 @@ our $opt_skip_ndbcluster_slave= 0;
our
$opt_with_ndbcluster
=
0
;
our
$glob_ndbcluster_supported
=
0
;
our
$opt_ndb_extra_test
=
0
;
our
$opt_skip_master_binlog
=
0
;
our
$opt_skip_slave_binlog
=
0
;
our
$exe_ndb_mgm
=
"";
our
$exe_ndb_waiter
;
...
...
@@ -300,8 +299,6 @@ sub command_line_setup {
'
skip-ndbcluster-slave|skip-ndb-slave
'
=>
\
$opt_skip_ndbcluster_slave
,
'
ndb-extra-test
'
=>
\
$opt_ndb_extra_test
,
'
skip-master-binlog
'
=>
\
$opt_skip_master_binlog
,
'
skip-slave-binlog
'
=>
\
$opt_skip_slave_binlog
,
'
suite|suites=s
'
=>
\
$opt_suites
,
'
skip-rpl
'
=>
\&
collect_option
,
'
skip-test=s
'
=>
\&
collect_option
,
...
...
@@ -373,6 +370,7 @@ sub command_line_setup {
'
reorder
'
=>
\&
collect_option
,
'
enable-disabled
'
=>
\&
collect_option
,
'
verbose+
'
=>
\
$opt_verbose
,
'
verbose-restart
'
=>
\
$opt_verbose_restart
,
'
sleep=i
'
=>
\
$opt_sleep
,
'
start-dirty
'
=>
\
$opt_start_dirty
,
'
start
'
=>
\
$opt_start
,
...
...
@@ -2807,36 +2805,36 @@ sub server_need_restart {
if
(
using_extern
()
)
{
mtr_verbose
("
No restart: using extern
");
mtr_verbose
_restart
(
$server
,
"
no restart for --extern server
");
return
0
;
}
if
(
$opt_embedded_server
)
{
mtr_verbose
("
N
o start or restart for embedded server
");
mtr_verbose
_restart
(
$server
,
"
n
o start or restart for embedded server
");
return
0
;
}
if
(
$tinfo
->
{'
force_restart
'}
)
{
mtr_verbose
("
Restart:
forced in .opt file
");
mtr_verbose
_restart
(
$server
,
"
forced in .opt file
");
return
1
;
}
if
(
$tinfo
->
{
template_path
}
ne
$current_config_name
)
{
mtr_verbose
("
Restart:
using different config file
");
mtr_verbose
_restart
(
$server
,
"
using different config file
");
return
1
;
}
if
(
$tinfo
->
{'
master_sh
'}
||
$tinfo
->
{'
slave_sh
'}
)
{
mtr_verbose
("
Restart:
script to run
");
mtr_verbose
_restart
(
$server
,
"
sh
script to run
");
return
1
;
}
if
(
!
started
(
$server
)
)
{
mtr_verbose
("
Restart:
not started
");
mtr_verbose
_restart
(
$server
,
"
not started
");
return
1
;
}
...
...
@@ -2848,7 +2846,7 @@ sub server_need_restart {
# with differs from timezone of next test
if
(
timezone
(
$started_tinfo
)
ne
timezone
(
$tinfo
)
)
{
mtr_verbose
("
Restart: D
ifferent timezone
");
mtr_verbose
_restart
(
$server
,
"
d
ifferent timezone
");
return
1
;
}
}
...
...
@@ -2865,7 +2863,13 @@ sub server_need_restart {
if
(
!
My::Options::
same
(
$started_opts
,
$extra_opts
)
)
{
my
$use_dynamic_option_switch
=
0
;
return
1
if
(
!
$use_dynamic_option_switch
);
if
(
!
$use_dynamic_option_switch
)
{
mtr_verbose_restart
(
$server
,
"
running with different options '
"
.
join
("
",
@
{
$extra_opts
})
.
"
' != '
"
.
join
("
",
@
{
$started_opts
})
.
"
'
"
);
return
1
;
}
mtr_verbose
(
My::Options::
toStr
("
started_opts
",
@$started_opts
));
mtr_verbose
(
My::Options::
toStr
("
extra_opts
",
@$extra_opts
));
...
...
@@ -2879,7 +2883,7 @@ sub server_need_restart {
if
(
run_query
(
$tinfo
,
$server
,
$query
)){
mtr_verbose
("
Restart: running with different options '
"
.
join
("
",
@
{
$extra_opts
})
.
"
' != '
"
.
join
("
",
@
{
$s
erver
->
{'
started_opts
'}
})
.
"
'
"
);
join
("
",
@
{
$s
tarted_opts
})
.
"
'
"
);
return
1
;
}
...
...
@@ -3249,6 +3253,10 @@ sub start_mysqltest ($) {
mtr_add_arg
(
$args
,
"
--skip-ssl
");
}
if
(
defined
$tinfo
->
{'
include_file
'}
)
{
mtr_add_arg
(
$args
,
"
--include=%s
",
$tinfo
->
{'
include_file
'});
# MASV
}
# ----------------------------------------------------------------------
# export MYSQL_TEST variable containing <path>/mysqltest <args>
...
...
@@ -3561,8 +3569,6 @@ Options to control what engine/variation to run
all generated configs
Options to control directories to use
benchdir=DIR The directory where the benchmark suite is stored
(default: ../../mysql-bench)
tmpdir=DIR The directory where temporary files are stored
(default: ./var/tmp).
vardir=DIR The directory where files generated from the test run
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment