[svn r630] Remove some useless files generated by GCOV.
1.1 --- a/gmyth/tests/Makefile.am Thu May 03 15:26:31 2007 +0100
1.2 +++ b/gmyth/tests/Makefile.am Thu May 03 15:55:19 2007 +0100
1.3 @@ -85,5 +85,6 @@
1.4
1.5 CLEANFILES = $(BUILT_SOURCES) \
1.6 *.gcda \
1.7 - *.gcno
1.8 + *.gcno \
1.9 + *.gcov
1.10
2.1 --- a/gmyth/tests/coverage.py Thu May 03 15:26:31 2007 +0100
2.2 +++ b/gmyth/tests/coverage.py Thu May 03 15:55:19 2007 +0100
2.3 @@ -12,15 +12,20 @@
2.4 print "GMyth base build directory - %s" % a.groups()[0]
2.5 return a.groups()[0]
2.6
2.7 +def remove_all_gcov_info(base_dir):
2.8 + os.system('for gfile in `find ' + base_dir + ' -name \"*.gcov\" --print`; do rm -f $gfile; done')
2.9 +
2.10 def gen_cov_info(build_dir):
2.11 + # remove all the useless GCOV information
2.12 + remove_all_gcov_info(build_dir)
2.13 if os.path.exists('coverage'):
2.14 shutil.rmtree('coverage')
2.15 os.mkdir('coverage')
2.16 os.chdir('coverage')
2.17 #base_dir = '../' + os.environ['top_srcdir'] + '/src'
2.18 #base_dir = build_dir + '/tests'
2.19 - os.system('lcov -d ' + build_dir + ' -b ' + build_dir + '/src --compat-libtool -z')
2.20 - os.system('lcov -d ' + build_dir + ' -b ' + build_dir + '/src --compat-libtool -c -o gmyth.info')
2.21 + os.system('lcov -d ' + build_dir + '/src -b ' + build_dir + '/src --compat-libtool -z')
2.22 + os.system('lcov -d ' + build_dir + '/src -b ' + build_dir + '/src --compat-libtool -c -o gmyth.info')
2.23 #os.system('lcov -d ' + build_dir + ' -z')
2.24 #os.system('lcov -d ' + build_dir + ' -c -o gmyth.info')
2.25 os.system('genhtml gmyth.info')