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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2c912f9d
Commit
2c912f9d
authored
May 19, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mtr_verbose to print more verbose output when --verbose flag is used
parent
0c9c9ef6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
mysql-test/lib/mtr_process.pl
mysql-test/lib/mtr_process.pl
+4
-5
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+7
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+8
-5
No files found.
mysql-test/lib/mtr_process.pl
View file @
2c912f9d
...
...
@@ -661,14 +661,13 @@ sub mtr_wait_blocking($) {
# Return if no processes defined
return
if
!
%
$admin_pids
;
# mtr_report
("mtr_wait_blocking");
mtr_verbose
("
mtr_wait_blocking
");
# Wait for all the started processes to exit
# As mysqladmin is such a simple program, we trust it to terminate itself.
# I.e. we wait blocking, and wait wait for them all before we go on.
foreach
my
$pid
(
keys
%
{
$admin_pids
})
{
# mtr_report("pid: $pid");
my
$ret_pid
=
waitpid
(
$pid
,
0
);
}
...
...
@@ -708,7 +707,7 @@ sub mtr_mysqladmin_start($$$) {
my
$pid
=
mtr_spawn
(
$::exe_mysqladmin
,
$args
,
"",
$path_mysqladmin_log
,
$path_mysqladmin_log
,
"",
{
append_log_file
=>
1
});
# mtr_report
("mtr_mysqladmin_start, pid: $pid");
mtr_verbose
("
mtr_mysqladmin_start, pid:
$pid
");
return
$pid
;
}
...
...
@@ -733,7 +732,7 @@ sub mtr_ndbmgm_start($$) {
my
$pid
=
mtr_spawn
(
$::exe_ndb_mgm
,
$args
,
"",
"
/dev/null
",
"
/dev/null
",
"",
{});
# mtr_report
("mtr_ndbmgm_start, pid: $pid");
mtr_verbose
("
mtr_ndbmgm_start, pid:
$pid
");
return
$pid
;
}
...
...
@@ -926,7 +925,7 @@ sub sleep_until_file_created ($$$) {
sub
mtr_kill_processes
($)
{
my
$pids
=
shift
;
# mtr_report
("mtr_kill_processes " . join(" ", @$pids));
mtr_verbose
("
mtr_kill_processes
"
.
join
("
",
@$pids
));
foreach
my
$sig
(
15
,
9
)
{
my
$retries
=
10
;
...
...
mysql-test/lib/mtr_report.pl
View file @
2c912f9d
...
...
@@ -21,6 +21,7 @@ sub mtr_warning (@);
sub
mtr_error
(@);
sub
mtr_child_error
(@);
sub
mtr_debug
(@);
sub
mtr_verbose
(@);
##############################################################################
...
...
@@ -342,5 +343,11 @@ sub mtr_debug (@) {
print
STDERR
"
####:
",
join
("
",
@_
),"
\n
";
}
}
sub
mtr_verbose
(@)
{
if
(
$::opt_verbose
)
{
print
STDERR
"
>
",
join
("
",
@_
),"
\n
";
}
}
1
;
mysql-test/mysql-test-run.pl
View file @
2c912f9d
...
...
@@ -168,6 +168,7 @@ our $opt_suite;
our
$opt_netware
;
our
$opt_script_debug
=
0
;
# Script debugging, enable with --script-debug
our
$opt_verbose
=
1
;
# Verbose output, enable with --verbose
# Options FIXME not all....
...
...
@@ -656,6 +657,7 @@ sub command_line_setup () {
'
old-master
'
=>
\
$opt_old_master
,
'
reorder
'
=>
\
$opt_reorder
,
'
script-debug
'
=>
\
$opt_script_debug
,
'
verbose
'
=>
\
$opt_verbose
,
'
sleep=i
'
=>
\
$opt_sleep
,
'
socket=s
'
=>
\
$opt_socket
,
'
start-dirty
'
=>
\
$opt_start_dirty
,
...
...
@@ -1635,7 +1637,7 @@ sub ndbcluster_wait_started($){
"
--ndb-connectstring=
$cluster
->{'connect_string'}
",
"
--timeout=60
"],
"",
$path_waiter_log
,
$path_waiter_log
,
"");
# mtr_report
("ndbcluster_wait_started, returns: $res") if $res;
mtr_verbose
("
ndbcluster_wait_started, returns:
$res
")
if
$res
;
return
$res
;
}
...
...
@@ -1662,7 +1664,7 @@ sub ndb_mgmd_start ($) {
# Remember pid of ndb_mgmd
$cluster
->
{'
pid
'}
=
$pid
;
# mtr_report
("ndb_mgmd_start, pid: $pid");
mtr_verbose
("
ndb_mgmd_start, pid:
$pid
");
return
$pid
;
}
...
...
@@ -1694,7 +1696,7 @@ sub ndbd_start ($$$) {
# Add pid to list of pids for this cluster
$cluster
->
{'
ndbds
'}
->
[
$idx
]
->
{'
pid
'}
=
$pid
;
# mtr_report
("ndbd_start, pid: $pid");
mtr_verbose
("
ndbd_start, pid:
$pid
");
return
$pid
;
}
...
...
@@ -1704,7 +1706,7 @@ sub ndbcluster_start ($$) {
my
$cluster
=
shift
;
my
$extra_args
=
shift
;
# mtr_report
("ndbcluster_start '$cluster->{'name'}'");
mtr_verbose
("
ndbcluster_start '
$cluster
->{'name'}'
");
if
(
$glob_use_running_ndbcluster
)
{
...
...
@@ -2806,7 +2808,7 @@ sub mysqld_start ($$$) {
# Remember pid of the started process
$mysqld
->
{'
pid
'}
=
$pid
;
# mtr_report
("mysqld pid: $pid");
mtr_verbose
("
mysqld pid:
$pid
");
return
$pid
;
}
...
...
@@ -3948,6 +3950,7 @@ Misc options
comment=STR Write STR to the output
notimer Don't show test case execution time
script-debug Debug this script itself
verbose More verbose output
start-and-exit Only initialize and start the servers, using the
startup settings for the specified test case (if any)
start-dirty Only start the servers (without initialization) for
...
...
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