[asterisk-commits] russell: testsuite/bamboo/trunk r661 - /bamboo/trunk/bin/build-asterisk.sh

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 29 16:14:22 CDT 2010


Author: russell
Date: Thu Jul 29 16:14:18 2010
New Revision: 661

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=661
Log:
Always try to generate a coverage report

Modified:
    bamboo/trunk/bin/build-asterisk.sh

Modified: bamboo/trunk/bin/build-asterisk.sh
URL: http://svnview.digium.com/svn/testsuite/bamboo/trunk/bin/build-asterisk.sh?view=diff&rev=661&r1=660&r2=661
==============================================================================
--- bamboo/trunk/bin/build-asterisk.sh (original)
+++ bamboo/trunk/bin/build-asterisk.sh Thu Jul 29 16:14:18 2010
@@ -86,6 +86,11 @@
 		return
 	fi
 
+	if [ ! -f main/asterisk.gcda ] ; then
+		echo "*** This version of Asterisk does not support code coverage analysis."
+		return
+	fi
+
 	sudo lcov --directory `pwd` --capture --output-file asterisk.info
 
 	# 
@@ -119,11 +124,7 @@
 fi
 mkdir ${TEST_RESULTS_DIR}
 
-if [ "${PLAN}" = "AST-COVERAGETEST" ] ; then
-	./configure --enable-dev-mode --enable-coverage
-else
-	./configure --enable-dev-mode
-fi
+./configure --enable-dev-mode --enable-coverage
 
 ${MAKE} uninstall-all
 ${MAKE} menuselect.makeopts
@@ -201,6 +202,4 @@
 	cat ${TEST_RESULTS_DIR}/*.xml
 fi
 
-if [ "${PLAN}" = "AST-COVERAGETEST" ] ; then
-	gen_coverage_report
-fi
+gen_coverage_report




More information about the asterisk-commits mailing list