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

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


Author: russell
Date: Thu Jul 29 16:19:34 2010
New Revision: 662

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=662
Log:
Actually, let's just track code coverage for 1.8 and trunk on Linux for now.

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=662&r1=661&r2=662
==============================================================================
--- bamboo/trunk/bin/build-asterisk.sh (original)
+++ bamboo/trunk/bin/build-asterisk.sh Thu Jul 29 16:19:34 2010
@@ -117,6 +117,12 @@
 	UNIT_TESTS=no
 fi
 
+if [ "${PLAN}" = "AST-TRUNK" ] || [ "${PLAN}" = "AST-18" ] ; then
+	CODE_COVERAGE=yes
+else
+	CODE_COVERAGE=no
+fi
+
 set -e
 
 if [ -d ${TEST_RESULTS_DIR} ] ; then
@@ -124,7 +130,11 @@
 fi
 mkdir ${TEST_RESULTS_DIR}
 
-./configure --enable-dev-mode --enable-coverage
+if [ "${CODE_COVERAGE}" = "yes" ] ; then
+	./configure --enable-dev-mode --enable-coverage
+else
+	./configure --enable-dev-mode
+fi
 
 ${MAKE} uninstall-all
 ${MAKE} menuselect.makeopts
@@ -202,4 +212,6 @@
 	cat ${TEST_RESULTS_DIR}/*.xml
 fi
 
-gen_coverage_report
+if [ "${CODE_COVERAGE}" = "yes" ] ; then
+	gen_coverage_report
+fi




More information about the asterisk-commits mailing list