11 for d in "$WORKSPACE/build" "$WORKSPACE/memcheck"
15 rm -rf "$d" || die "Could not remote $d"
18 find $WORKSPACE -name "memcheck_test_*.memcheck" -exec rm {} \;
21 ### Check the node installation
23 for pkg in valgrind pcregrep
27 echo "$pkg is installed. Good."
29 die "please install $pkg before proceeding"
33 ### Cleanup previous runs
35 ! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
36 [ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
40 for d in "$WORKSPACE/build" "$WORKSPACE/memcheck"
42 mkdir "$d" || die "Could not create $d"
45 NUMPROC="$(nproc)" || NUMPROC=1
49 ### Proceed with the tests
50 ctest -D ExperimentalStart || true
52 cmake -Denable_documentation=OFF -Denable_lua=OFF \
53 -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
54 -Denable_jedule=OFF -Denable_mallocators=OFF \
55 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_model-checking=OFF \
56 -Denable_memcheck_xml=ON $WORKSPACE
60 ctest -D ExperimentalTest -j$NUMPROC || true
63 if [ -f Testing/TAG ] ; then
64 find $WORKSPACE -iname "*.memcheck" -exec mv {} $WORKSPACE/memcheck \;
65 #remove all "empty" files
66 pcregrep -r -l -M "status\>\n\n\<errorcounts" $WORKSPACE/memcheck/* | xargs rm -f
67 mv Testing/`head -n 1 < Testing/TAG`/Test.xml $WORKSPACE/DynamicAnalysis.xml