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
57d74b5c
Commit
57d74b5c
authored
Oct 23, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0-maint
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.0-maint
parents
c240ef5b
5e2fc9a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
18 deletions
+32
-18
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+31
-17
mysql-test/t/binlog_killed.test
mysql-test/t/binlog_killed.test
+1
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
57d74b5c
...
...
@@ -255,13 +255,13 @@ our $opt_timer= 1;
our
$opt_user
;
our
$opt_valgrind
=
0
;
our
$opt_valgrind_mysqld
=
0
;
our
$opt_valgrind_mysqltest
=
0
;
our
$default_valgrind_options
=
"
--show-reachable=yes
"
;
our
$opt_valgrind_option
s
;
our
$opt_valgrind_path
;
our
$opt_callgrind
;
my
$opt_valgrind
=
0
;
my
$opt_valgrind_mysqld
=
0
;
my
$opt_valgrind_mysqltest
=
0
;
my
@default_valgrind_args
=
("
--show-reachable=yes
")
;
my
@valgrind_arg
s
;
my
$opt_valgrind_path
;
my
$opt_callgrind
;
our
$opt_stress
=
"";
our
$opt_stress_suite
=
"
main
";
...
...
@@ -575,7 +575,18 @@ sub command_line_setup () {
'
valgrind|valgrind-all
'
=>
\
$opt_valgrind
,
'
valgrind-mysqltest
'
=>
\
$opt_valgrind_mysqltest
,
'
valgrind-mysqld
'
=>
\
$opt_valgrind_mysqld
,
'
valgrind-options=s
'
=>
\
$opt_valgrind_options
,
'
valgrind-options=s
'
=>
sub
{
my
(
$opt
,
$value
)
=
@_
;
# Deprecated option unless it's what we know pushbuild uses
if
(
$value
eq
"
--gen-suppressions=all --show-reachable=yes
")
{
push
(
@valgrind_args
,
$_
)
for
(
split
('
',
$value
));
return
;
}
die
("
--valgrind-options=s is deprecated. Use
",
"
--valgrind-option=s, to be specified several
",
"
times if necessary
");
},
'
valgrind-option=s
'
=>
\
@valgrind_args
,
'
valgrind-path=s
'
=>
\
$opt_valgrind_path
,
'
callgrind
'
=>
\
$opt_callgrind
,
...
...
@@ -992,7 +1003,7 @@ sub command_line_setup () {
# --------------------------------------------------------------------------
# Check valgrind arguments
# --------------------------------------------------------------------------
if
(
$opt_valgrind
or
$opt_valgrind_path
or
defined
$opt_valgrind_option
s
)
if
(
$opt_valgrind
or
$opt_valgrind_path
or
@valgrind_arg
s
)
{
mtr_report
("
Turning on valgrind for all executables
");
$opt_valgrind
=
1
;
...
...
@@ -1017,17 +1028,18 @@ sub command_line_setup () {
$opt_valgrind_mysqld
=
1
;
# Set special valgrind options unless options passed on command line
$opt_valgrind_options
=
"
--trace-children=yes
"
unless
defined
$opt_valgrind_option
s
;
push
(
@valgrind_args
,
"
--trace-children=yes
")
unless
@valgrind_arg
s
;
}
if
(
$opt_valgrind
)
{
# Set valgrind_options to default unless already defined
$opt_valgrind_options
=
$default_valgrind_options
unless
defined
$opt_valgrind_option
s
;
push
(
@valgrind_args
,
@default_valgrind_args
)
unless
@valgrind_arg
s
;
mtr_report
("
Running valgrind with options
\"
$opt_valgrind_options
\"
");
mtr_report
("
Running valgrind with options
\"
",
join
("
",
@valgrind_args
),
"
\"
");
}
if
(
!
$opt_testcase_timeout
)
...
...
@@ -5008,7 +5020,7 @@ sub valgrind_arguments {
}
# Add valgrind options, can be overriden by user
mtr_add_arg
(
$args
,
'
%s
',
$
opt_valgrind_option
s
);
mtr_add_arg
(
$args
,
'
%s
',
$
_
)
for
(
@valgrind_arg
s
);
mtr_add_arg
(
$args
,
$$exe
);
...
...
@@ -5148,12 +5160,14 @@ Options for coverage, profiling etc
gcov FIXME
gprof FIXME
valgrind Run the "mysqltest" and "mysqld" executables using
valgrind with
options($default_valgrind_options)
valgrind with
default options
valgrind-all Synonym for --valgrind
valgrind-mysqltest Run the "mysqltest" and "mysql_client_test" executable
with valgrind
valgrind-mysqld Run the "mysqld" executable with valgrind
valgrind-options=ARGS Options to give valgrind, replaces default options
valgrind-options=ARGS Deprecated, use --valgrind-option
valgrind-option=ARGS Option to give valgrind, replaces default option(s),
can be specified more then once
valgrind-path=[EXE] Path to the valgrind executable
callgrind Instruct valgrind to use callgrind
...
...
mysql-test/t/binlog_killed.test
View file @
57d74b5c
...
...
@@ -242,7 +242,7 @@ drop function bug27563;
drop
function
bug27565
;
}
system
rm
$MYSQLTEST_VARDIR
/
tmp
/
kill_query_calling_sp
.
binlog
;
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
kill_query_calling_sp
.
binlog
;
drop
table
t1
,
t2
,
t3
;
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