# HG changeset patch # User rosfran # Date 1178204119 -3600 # Node ID f41dd580496b8ed805e159f10e9797c7182ac717 # Parent 33f0001923c408529c82fdeab90818ea054eb93c [svn r630] Remove some useless files generated by GCOV. diff -r 33f0001923c4 -r f41dd580496b gmyth/tests/Makefile.am --- a/gmyth/tests/Makefile.am Thu May 03 15:26:31 2007 +0100 +++ b/gmyth/tests/Makefile.am Thu May 03 15:55:19 2007 +0100 @@ -85,5 +85,6 @@ CLEANFILES = $(BUILT_SOURCES) \ *.gcda \ - *.gcno + *.gcno \ + *.gcov diff -r 33f0001923c4 -r f41dd580496b gmyth/tests/coverage.py --- a/gmyth/tests/coverage.py Thu May 03 15:26:31 2007 +0100 +++ b/gmyth/tests/coverage.py Thu May 03 15:55:19 2007 +0100 @@ -12,15 +12,20 @@ print "GMyth base build directory - %s" % a.groups()[0] return a.groups()[0] +def remove_all_gcov_info(base_dir): + os.system('for gfile in `find ' + base_dir + ' -name \"*.gcov\" --print`; do rm -f $gfile; done') + def gen_cov_info(build_dir): + # remove all the useless GCOV information + remove_all_gcov_info(build_dir) if os.path.exists('coverage'): shutil.rmtree('coverage') os.mkdir('coverage') os.chdir('coverage') #base_dir = '../' + os.environ['top_srcdir'] + '/src' #base_dir = build_dir + '/tests' - os.system('lcov -d ' + build_dir + ' -b ' + build_dir + '/src --compat-libtool -z') - os.system('lcov -d ' + build_dir + ' -b ' + build_dir + '/src --compat-libtool -c -o gmyth.info') + os.system('lcov -d ' + build_dir + '/src -b ' + build_dir + '/src --compat-libtool -z') + os.system('lcov -d ' + build_dir + '/src -b ' + build_dir + '/src --compat-libtool -c -o gmyth.info') #os.system('lcov -d ' + build_dir + ' -z') #os.system('lcov -d ' + build_dir + ' -c -o gmyth.info') os.system('genhtml gmyth.info')