8 [ -n "$WORKSPACE" ] || die "No WORKSPACE"
9 [ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
11 echo "XXXX Cleanup previous attempts. Remaining content of /tmp:"
21 ### Check the node installation
28 echo "$pkg is installed. Good."
30 die "please install $pkg before proceeding"
35 pkg_check valgrind pcregrep
37 ### Cleanup previous runs
44 rm -rf "$d" || die "Could not remove $d"
46 mkdir "$d" || die "Could not create $d"
48 find "$WORKSPACE" -name "memcheck_test_*.memcheck" -exec rm {} \;
51 do_cleanup "$WORKSPACE/build" "$WORKSPACE/memcheck"
53 NUMPROC="$(nproc)" || NUMPROC=1
57 ### Proceed with the tests
58 ctest -D ExperimentalStart || true
60 cmake -Denable_documentation=OFF -Denable_python=OFF \
61 -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
62 -Denable_mallocators=OFF \
63 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \
65 -Denable_memcheck_xml=ON -DLTO_EXTRA_FLAG="auto" "$WORKSPACE"
69 ctest --no-compress-output -D ExperimentalTest -j$NUMPROC || true
72 if [ -f Testing/TAG ] ; then
73 find "$WORKSPACE" -iname "*.memcheck" -exec mv {} "$WORKSPACE"/memcheck \;
74 #remove all "empty" files
75 grep -r -L "error>" "$WORKSPACE"/memcheck | xargs rm -f
76 mv Testing/"$(head -n 1 < Testing/TAG)"/Test.xml "$WORKSPACE"/DynamicAnalysis.xml