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
8e199d9a
Commit
8e199d9a
authored
Dec 09, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made it easier to valgrind mysqltest
parent
fe2ec190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
6 deletions
+27
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+27
-6
No files found.
mysql-test/mysql-test-run.pl
View file @
8e199d9a
...
@@ -151,6 +151,7 @@ our $path_client_bindir;
...
@@ -151,6 +151,7 @@ our $path_client_bindir;
our
$path_language
;
our
$path_language
;
our
$path_timefile
;
our
$path_timefile
;
our
$path_manager_log
;
# Used by mysqldadmin
our
$path_manager_log
;
# Used by mysqldadmin
our
$path_mysqltest_log
;
our
$path_slave_load_tmpdir
;
# What is this?!
our
$path_slave_load_tmpdir
;
# What is this?!
our
$path_my_basedir
;
our
$path_my_basedir
;
our
$opt_vardir
;
# A path but set directly on cmd line
our
$opt_vardir
;
# A path but set directly on cmd line
...
@@ -270,6 +271,7 @@ our $opt_user;
...
@@ -270,6 +271,7 @@ our $opt_user;
our
$opt_user_test
;
our
$opt_user_test
;
our
$opt_valgrind
;
our
$opt_valgrind
;
our
$opt_valgrind_mysqld
;
our
$opt_valgrind_mysqltest
;
our
$opt_valgrind_mysqltest
;
our
$opt_valgrind_all
;
our
$opt_valgrind_all
;
our
$opt_valgrind_options
;
our
$opt_valgrind_options
;
...
@@ -742,6 +744,7 @@ sub command_line_setup () {
...
@@ -742,6 +744,7 @@ sub command_line_setup () {
# "somestring" option is name/path of valgrind executable
# "somestring" option is name/path of valgrind executable
# Take executable path from any of them, if any
# Take executable path from any of them, if any
$opt_valgrind_mysqld
=
$opt_valgrind
;
$opt_valgrind
=
$opt_valgrind_mysqltest
if
$opt_valgrind_mysqltest
;
$opt_valgrind
=
$opt_valgrind_mysqltest
if
$opt_valgrind_mysqltest
;
$opt_valgrind
=
$opt_valgrind_all
if
$opt_valgrind_all
;
$opt_valgrind
=
$opt_valgrind_all
if
$opt_valgrind_all
;
...
@@ -885,6 +888,7 @@ sub command_line_setup () {
...
@@ -885,6 +888,7 @@ sub command_line_setup () {
}
}
$path_timefile
=
"
$opt_vardir
/log/mysqltest-time
";
$path_timefile
=
"
$opt_vardir
/log/mysqltest-time
";
$path_mysqltest_log
=
"
$opt_vardir
/log/mysqltest.log
";
}
}
...
@@ -929,7 +933,19 @@ sub executable_setup () {
...
@@ -929,7 +933,19 @@ sub executable_setup () {
}
}
else
else
{
{
$exe_mysqltest
=
mtr_exe_exists
("
$path_client_bindir
/mysqltest
");
if
(
$opt_valgrind_mysqltest
)
{
# client/mysqltest might be a libtool .sh script, so look for real exe
# to avoid valgrinding bash ;)
$exe_mysqltest
=
mtr_exe_exists
("
$path_client_bindir
/.libs/lt-mysqltest
",
"
$path_client_bindir
/.libs/mysqltest
",
"
$path_client_bindir
/mysqltest
");
}
else
{
$exe_mysqltest
=
mtr_exe_exists
("
$path_client_bindir
/mysqltest
");
}
$exe_mysql_client_test
=
$exe_mysql_client_test
=
mtr_exe_exists
("
$glob_basedir
/tests/mysql_client_test
",
mtr_exe_exists
("
$glob_basedir
/tests/mysql_client_test
",
"
/usr/bin/false
");
"
/usr/bin/false
");
...
@@ -1859,6 +1875,11 @@ sub run_testcase ($) {
...
@@ -1859,6 +1875,11 @@ sub run_testcase ($) {
}
}
report_failure_and_restart
(
$tinfo
);
report_failure_and_restart
(
$tinfo
);
}
}
# Save info from this testcase run to mysqltest.log
mtr_tofile
(
$path_mysqltest_log
,"
CURRENT TEST
$tname
\n
");
my
$testcase_log
=
mtr_fromfile
(
$path_timefile
);
mtr_tofile
(
$path_mysqltest_log
,
$testcase_log
);
}
}
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -2019,7 +2040,7 @@ sub mysqld_arguments ($$$$$) {
...
@@ -2019,7 +2040,7 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--language=%s
",
$prefix
,
$path_language
);
mtr_add_arg
(
$args
,
"
%s--language=%s
",
$prefix
,
$path_language
);
mtr_add_arg
(
$args
,
"
%s--tmpdir=
$opt_tmpdir
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--tmpdir=
$opt_tmpdir
",
$prefix
);
if
(
defined
$opt_valgrind
)
if
(
defined
$opt_valgrind
_mysqld
)
{
{
mtr_add_arg
(
$args
,
"
%s--skip-safemalloc
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--skip-safemalloc
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--skip-bdb
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--skip-bdb
",
$prefix
);
...
@@ -2245,7 +2266,7 @@ sub mysqld_start ($$$$) {
...
@@ -2245,7 +2266,7 @@ sub mysqld_start ($$$$) {
mtr_init_args
(
\
$args
);
mtr_init_args
(
\
$args
);
if
(
defined
$opt_valgrind
)
if
(
defined
$opt_valgrind
_mysqld
)
{
{
valgrind_arguments
(
$args
,
\
$exe
);
valgrind_arguments
(
$args
,
\
$exe
);
}
}
...
@@ -2699,6 +2720,7 @@ sub valgrind_arguments {
...
@@ -2699,6 +2720,7 @@ sub valgrind_arguments {
mtr_add_arg
(
$args
,
split
('
',
$opt_valgrind_options
));
mtr_add_arg
(
$args
,
split
('
',
$opt_valgrind_options
));
}
}
mtr_add_arg
(
$args
,
$$exe
);
mtr_add_arg
(
$args
,
$$exe
);
$$exe
=
$opt_valgrind
||
"
valgrind
";
$$exe
=
$opt_valgrind
||
"
valgrind
";
...
@@ -2778,9 +2800,8 @@ Options for coverage, profiling etc
...
@@ -2778,9 +2800,8 @@ Options for coverage, profiling etc
gcov FIXME
gcov FIXME
gprof FIXME
gprof FIXME
valgrind[=EXE] Run the "mysqltest" executable as well as the "mysqld"
valgrind[=EXE] Run the "mysqld" server using valgrind, optionally
server using valgrind, optionally specifying the
specifying the executable path/name
executable path/name
valgrind-mysqltest[=EXE] In addition, run the "mysqltest" executable with valgrind
valgrind-mysqltest[=EXE] In addition, run the "mysqltest" executable with valgrind
valgrind-all[=EXE] Adds verbose flag, and --show-reachable to valgrind
valgrind-all[=EXE] Adds verbose flag, and --show-reachable to valgrind
valgrind-options=ARGS Extra options to give valgrind
valgrind-options=ARGS Extra options to give valgrind
...
...
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