diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-08 17:05:17 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-08 17:05:17 +0200 |
commit | 127e4011853a59647c7cc8e8f0f5e662a9658a16 (patch) | |
tree | e7a91029067d9c9e4c320699fc3c82028d9fd3bf /mysql-test | |
parent | 3651933d0932e3870f1bb66bb6373e3d113ad6ad (diff) | |
download | mariadb-git-127e4011853a59647c7cc8e8f0f5e662a9658a16.tar.gz |
Move list of mysqls src dirs into lib/mtr_gcov.pl as it's only used from there
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/lib/mtr_gcov.pl | 18 | ||||
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 16 |
2 files changed, 17 insertions, 17 deletions
diff --git a/mysql-test/lib/mtr_gcov.pl b/mysql-test/lib/mtr_gcov.pl index 07aac1d2017..71d3d6a2a43 100644 --- a/mysql-test/lib/mtr_gcov.pl +++ b/mysql-test/lib/mtr_gcov.pl @@ -23,12 +23,28 @@ sub gcov_prepare () { -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 () { print "Collecting source coverage info...\n"; -f $::opt_gcov_msg and unlink($::opt_gcov_msg); -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"); foreach my $f ( (glob("*.h"), glob("*.cc"), glob("*.c")) ) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7b9a55053f0..6bb069a11f5 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -87,22 +87,6 @@ require "lib/mtr_stress.pl"; $Devel::Trace::TRACE= 1; -# Used by gcov -our @mysqld_src_dirs= - ( - "strings", - "mysys", - "include", - "extra", - "regex", - "isam", - "merge", - "myisam", - "myisammrg", - "heap", - "sql", - ); - ############################################################################## # # Default settings |