From: Arnaud Giersch Date: Thu, 3 Dec 2020 22:35:48 +0000 (+0100) Subject: Exclude examples/smpi/mc from coverage analysis. X-Git-Tag: v3.26~59 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3bd92711ac656103203476388be68eedcfdc6052?hp=4ef9207457a2e8203b3d6d42150c7225e509e2bf Exclude examples/smpi/mc from coverage analysis. --- diff --git a/sonar-project.properties b/sonar-project.properties index 6904e019c1..2f51f36407 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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 diff --git a/tools/jenkins/Coverage.sh b/tools/jenkins/Coverage.sh index 823a94665a..aeab2768ff 100755 --- a/tools/jenkins/Coverage.sh +++ b/tools/jenkins/Coverage.sh @@ -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