Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Exclude examples/smpi/mc from coverage analysis.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Dec 2020 22:35:48 +0000 (23:35 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Dec 2020 22:43:04 +0000 (23:43 +0100)
sonar-project.properties
tools/jenkins/Coverage.sh

index 6904e01..2f51f36 100644 (file)
@@ -194,11 +194,13 @@ sonar.cfamily.threads=4
 sonar.cfamily.gcov.reportsPath=Testing/CoverageInfo
 # Files to ignore from coverage analysis:
 #   - foreign test suites
+#   - examples in smpi/mc (coverage doesn't work with model checker)
 #   - XML files
 #   - Python files used to generate either simcalls or deployment files
 #   - Any java source code (it's deprecated now)
 #   - MSG (deprecated too)
-sonar.coverage.exclusions=teshsuite/smpi/isp/**,teshsuite/smpi/mpich3-test/**,**/*.xml,src/simix/simcalls.py,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
+sonar.coverage.exclusions=teshsuite/smpi/isp/**,teshsuite/smpi/mpich3-test/**,examples/smpi/mc/**,**/*.xml,src/simix/simcalls.py,**/generate.py,**/*.java,src/bindings/java/**,src/msg/**,include/msg/**,examples/deprecated/**,teshsuite/msg/**
+
 # Encoding of the source files
 sonar.sourceEncoding=UTF-8
 
index 823a946..aeab276 100755 (executable)
@@ -97,7 +97,7 @@ if [ -f Testing/TAG ] ; then
 
   cd "$WORKSPACE"
   #convert all gcov reports to xml cobertura reports
-  gcovr -r . --xml-pretty -e teshsuite -u -o "$BUILDFOLDER"/xml_coverage.xml
+  gcovr -r . --xml-pretty -e teshsuite -e examples/smpi/NAS -e examples/smpi/mc -u -o "$BUILDFOLDER"/xml_coverage.xml
   xsltproc "$WORKSPACE"/tools/jenkins/ctest2junit.xsl build/Testing/"$( head -n 1 < build/Testing/TAG )"/Test.xml > CTestResults_memcheck.xml
 
   #generate sloccount report