2
# Copyright (C) 2004, 2006 MySQL AB
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; version 2 of the License.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
# This is a library file used by the Perl version of mysql-test-run,
18
# and is part of the translation of the Bourne shell script with the
23
# These are not to be prefixed with "mtr_"
28
##############################################################################
32
##############################################################################
36
`find $::glob_basedir -name \*.gcov \
37
-or -name \*.da | xargs rm`;
58
print "Collecting source coverage info...\n";
59
-f $::opt_gcov_msg and unlink($::opt_gcov_msg);
60
-f $::opt_gcov_err and unlink($::opt_gcov_err);
61
foreach my $d ( @mysqld_src_dirs )
63
chdir("$::glob_basedir/$d");
64
foreach my $f ( (glob("*.h"), glob("*.cc"), glob("*.c")) )
66
`$::opt_gcov $f 2>>$::opt_gcov_err >>$::opt_gcov_msg`;
68
chdir($::glob_mysql_test_dir);
70
print "gcov info in $::opt_gcov_msg, errors in $::opt_gcov_err\n";