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
104748dd
Commit
104748dd
authored
Jun 16, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
parents
8a4ff637
0a15f9d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
24 deletions
+26
-24
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+26
-24
No files found.
mysql-test/mysql-test-run.pl
View file @
104748dd
...
...
@@ -286,7 +286,7 @@ our $opt_user_test;
our
$opt_valgrind
=
0
;
our
$opt_valgrind_mysqld
=
0
;
our
$opt_valgrind_mysqltest
=
0
;
our
$
opt_valgrind_all
=
0
;
our
$
default_valgrind_options
=
"
-v --show-reachable=yes
"
;
our
$opt_valgrind_options
;
our
$opt_valgrind_path
;
...
...
@@ -597,10 +597,9 @@ sub command_line_setup () {
# Coverage, profiling etc
'
gcov
'
=>
\
$opt_gcov
,
'
gprof
'
=>
\
$opt_gprof
,
'
valgrind
'
=>
\
$opt_valgrind
,
'
valgrind
|valgrind-all
'
=>
\
$opt_valgrind
,
'
valgrind-mysqltest
'
=>
\
$opt_valgrind_mysqltest
,
'
valgrind-mysqld
'
=>
\
$opt_valgrind_mysqld
,
'
valgrind-all
'
=>
\
$opt_valgrind_all
,
'
valgrind-options=s
'
=>
\
$opt_valgrind_options
,
'
valgrind-path=s
'
=>
\
$opt_valgrind_path
,
...
...
@@ -807,20 +806,32 @@ sub command_line_setup () {
$opt_with_ndbcluster
=
0
;
}
#
Turn on valgrinding of all executables if "valgrind" or "valgrind-all"
if
(
$opt_valgrind
or
$opt_valgrind_
all
)
#
Check valgrind arguments
if
(
$opt_valgrind
or
$opt_valgrind_
path
or
defined
$opt_valgrind_options
)
{
mtr_report
("
Turning on valgrind for all executables
");
$opt_valgrind
=
1
;
$opt_valgrind_mysqld
=
1
;
$opt_valgrind_mysqltest
=
1
;
}
elsif
(
$opt_valgrind_mysqld
or
$opt_valgrind_mysqltest
)
elsif
(
$opt_valgrind_mysqld
)
{
# If test's are run for a specific executable, turn on
# verbose and show-reachable
mtr_report
("
Turning on valgrind for mysqld(s) only
");
$opt_valgrind
=
1
;
$opt_valgrind_all
=
1
;
}
elsif
(
$opt_valgrind_mysqltest
)
{
mtr_report
("
Turning on valgrind for mysqltest only
");
$opt_valgrind
=
1
;
}
if
(
$opt_valgrind
)
{
# Set valgrind_options to default unless already defined
$opt_valgrind_options
=
$default_valgrind_options
unless
defined
$opt_valgrind_options
;
mtr_report
("
Running valgrind with options
\"
$opt_valgrind_options
\"
");
}
if
(
!
$opt_testcase_timeout
)
...
...
@@ -3409,17 +3420,8 @@ sub valgrind_arguments {
mtr_add_arg
(
$args
,
"
--suppressions=%s/valgrind.supp
",
$glob_mysql_test_dir
)
if
-
f
"
$glob_mysql_test_dir
/valgrind.supp
";
if
(
$opt_valgrind_all
)
{
mtr_add_arg
(
$args
,
"
-v
");
mtr_add_arg
(
$args
,
"
--show-reachable=yes
");
}
if
(
$opt_valgrind_options
)
{
mtr_add_arg
(
$args
,
'
%s
',
$_
)
for
(
split
('
',
$opt_valgrind_options
));
}
# Add valgrind options, can be overriden by user
mtr_add_arg
(
$args
,
'
%s
',
$_
)
for
(
split
('
',
$opt_valgrind_options
));
mtr_add_arg
(
$args
,
$$exe
);
...
...
@@ -3519,12 +3521,12 @@ Options for coverage, profiling etc
gcov FIXME
gprof FIXME
valgrind Run the "mysqltest" and "mysqld" executables using
valgrind
valgrind-all Same as "valgrind" but will also add "verbose" and "--show-reachable"
flags to
valgrind
valgrind Run the "mysqltest" and "mysqld" executables using
valgrind with options($default_valgrind_options)
valgrind-all Synonym for --
valgrind
valgrind-mysqltest Run the "mysqltest" executable with valgrind
valgrind-mysqld Run the "mysqld" executable with valgrind
valgrind-options=ARGS
Extra options to give valgrind
valgrind-options=ARGS
Options to give valgrind, replaces default options
valgrind-path=[EXE] Path to the valgrind executable
Misc options
...
...
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