From f6cfd7725a95df667530dac137764d8b32224e85 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 3 Jan 2007 20:54:44 +0100 Subject: [PATCH] updates for coverage scripts --- buildscripts/build-coverage.sh | 27 +++++-- buildscripts/coverage.py | 142 +++++++++++++++++++++++++++------ 2 files changed, 136 insertions(+), 33 deletions(-) diff --git a/buildscripts/build-coverage.sh b/buildscripts/build-coverage.sh index 13a073188b..6f48d18f0e 100755 --- a/buildscripts/build-coverage.sh +++ b/buildscripts/build-coverage.sh @@ -10,18 +10,23 @@ fi if test "$fresh" = "yes"; then - ./configure --enable-config=cov --disable-optimising - make conf=cov -j2 clean - perl -i~ -pe 's/-pipe /-fprofile-arcs -ftest-coverage -pipe /g' config-cov.make - perl -i~ -pe 's/ -ldl / -lgcov -ldl /g' config-cov.make + ./configure --enable-config=cov --disable-optimising \ + && make conf=cov -j2 clean \ + && perl -i~ -pe 's/-pipe /-fprofile-arcs -ftest-coverage -pipe /g' config-cov.make \ + && perl -i~ -pe 's/ -ldl / -lgcov -ldl /g' config-cov.make else find -name '*.gcda' -exec rm '{}' ';' fi -make conf=cov -j2 -make conf=cov test-clean LILYPOND_JOBS= -make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log +make conf=cov -j2 && \ + make conf=cov test-real-clean LILYPOND_JOBS= && \ + make conf=cov test LILYPOND_JOBS= >& out-cov/test-run.log + +if test "$?" != "0"; then + tail -100 out-cov/test-run.log + exit 1 +fi rm -rf out-cov mkdir out-cov @@ -36,4 +41,10 @@ do gcov -o ../lily/out-cov/ -p $a > $a.gcov-summary done -python buildscripts/coverage.py +cat <