Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[ci-skip] try to help gcovr find files (it needs to be run in the same dir as gcc)
authorAugustin Degomme <26892-adegomme@users.noreply.framagit.org>
Wed, 10 Aug 2022 20:56:52 +0000 (20:56 +0000)
committerAugustin Degomme <26892-adegomme@users.noreply.framagit.org>
Wed, 10 Aug 2022 20:56:52 +0000 (20:56 +0000)
tools/jenkins/Coverage.sh

index 91c8915..0fcfc59 100755 (executable)
@@ -108,9 +108,10 @@ if [ -f Testing/TAG ] ; then
   /usr/bin/python3-coverage combine
   /usr/bin/python3-coverage xml -i -o ./python_coverage.xml
 
-  cd "$WORKSPACE"
   #convert all gcov reports to xml cobertura reports
-  gcovr -r . --xml-pretty -e teshsuite -e build/MBI -e examples/smpi/NAS -e examples/smpi/mc -u -o "$BUILDFOLDER"/xml_coverage.xml
+  gcovr -r . --xml-pretty -e "$WORKSPACE"/teshsuite -e MBI -e "$WORKSPACE"/examples/smpi/NAS -e "$WORKSPACE"/examples/smpi/mc -u -o xml_coverage.xml
+
+  cd "$WORKSPACE"
   xsltproc "$WORKSPACE"/tools/jenkins/ctest2junit.xsl build/Testing/"$( head -n 1 < build/Testing/TAG )"/Test.xml > CTestResults_memcheck.xml
 
   #generate sloccount report