X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dda91eacaae468bcab4a7e4d28c9a1c1afc34951..4b8be43e2c03939bc780b6112d841d8b839a79bb:/tools/jenkins/DynamicAnalysis.sh diff --git a/tools/jenkins/DynamicAnalysis.sh b/tools/jenkins/DynamicAnalysis.sh index af4353d3aa..53ec6d494f 100755 --- a/tools/jenkins/DynamicAnalysis.sh +++ b/tools/jenkins/DynamicAnalysis.sh @@ -20,7 +20,7 @@ do_cleanup() { ### Check the node installation -for pkg in valgrind +for pkg in valgrind pcregrep do if command -v $pkg then @@ -42,6 +42,8 @@ do mkdir "$d" || die "Could not create $d" done +NUMPROC="$(nproc)" || NUMPROC=1 + cd $WORKSPACE/build ### Proceed with the tests @@ -50,18 +52,18 @@ ctest -D ExperimentalStart || true cmake -Denable_documentation=OFF -Denable_lua=OFF \ -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \ -Denable_jedule=OFF -Denable_mallocators=OFF \ - -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \ + -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_model-checking=OFF \ -Denable_memcheck_xml=ON $WORKSPACE -ctest -D ExperimentalBuild -V -ctest -D ExperimentalTest || true -unset VALGRIND_COMMAND -unset VALGRIND_COMMAND_OPTIONS +make -j$NUMPROC +ctest -D ExperimentalTest -j$NUMPROC || true cd $WORKSPACE/build if [ -f Testing/TAG ] ; then - find . -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \; - mv Testing/`head -n 1 < Testing/TAG`/DynamicAnalysis.xml $WORKSPACE + find $WORKSPACE -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \; + #remove all "empty" files + pcregrep -r -l -M "status\>\n\n\