mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 08:15:31 +02:00
Move list of mysqls src dirs into lib/mtr_gcov.pl as it's only used from there
This commit is contained in:
parent
3651933d09
commit
127e401185
2 changed files with 17 additions and 17 deletions
|
|
@ -23,12 +23,28 @@ sub gcov_prepare () {
|
||||||
-or -name \*.da | xargs rm`;
|
-or -name \*.da | xargs rm`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Used by gcov
|
||||||
|
our @mysqld_src_dirs=
|
||||||
|
(
|
||||||
|
"strings",
|
||||||
|
"mysys",
|
||||||
|
"include",
|
||||||
|
"extra",
|
||||||
|
"regex",
|
||||||
|
"isam",
|
||||||
|
"merge",
|
||||||
|
"myisam",
|
||||||
|
"myisammrg",
|
||||||
|
"heap",
|
||||||
|
"sql",
|
||||||
|
);
|
||||||
|
|
||||||
sub gcov_collect () {
|
sub gcov_collect () {
|
||||||
|
|
||||||
print "Collecting source coverage info...\n";
|
print "Collecting source coverage info...\n";
|
||||||
-f $::opt_gcov_msg and unlink($::opt_gcov_msg);
|
-f $::opt_gcov_msg and unlink($::opt_gcov_msg);
|
||||||
-f $::opt_gcov_err and unlink($::opt_gcov_err);
|
-f $::opt_gcov_err and unlink($::opt_gcov_err);
|
||||||
foreach my $d ( @::mysqld_src_dirs )
|
foreach my $d ( @mysqld_src_dirs )
|
||||||
{
|
{
|
||||||
chdir("$::glob_basedir/$d");
|
chdir("$::glob_basedir/$d");
|
||||||
foreach my $f ( (glob("*.h"), glob("*.cc"), glob("*.c")) )
|
foreach my $f ( (glob("*.h"), glob("*.cc"), glob("*.c")) )
|
||||||
|
|
|
||||||
|
|
@ -87,22 +87,6 @@ require "lib/mtr_stress.pl";
|
||||||
|
|
||||||
$Devel::Trace::TRACE= 1;
|
$Devel::Trace::TRACE= 1;
|
||||||
|
|
||||||
# Used by gcov
|
|
||||||
our @mysqld_src_dirs=
|
|
||||||
(
|
|
||||||
"strings",
|
|
||||||
"mysys",
|
|
||||||
"include",
|
|
||||||
"extra",
|
|
||||||
"regex",
|
|
||||||
"isam",
|
|
||||||
"merge",
|
|
||||||
"myisam",
|
|
||||||
"myisammrg",
|
|
||||||
"heap",
|
|
||||||
"sql",
|
|
||||||
);
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
#
|
#
|
||||||
# Default settings
|
# Default settings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue