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:"
13 rm -f /tmp/simgrid-mc-*
22 ### Check the node installation
29 echo "$pkg is installed. Good."
31 die "please install $pkg before proceeding"
36 pkg_check valgrind pcregrep
38 ### Cleanup previous runs
45 rm -rf "$d" || die "Could not remove $d"
47 mkdir "$d" || die "Could not create $d"
49 find "$WORKSPACE" -name "memcheck_test_*.memcheck" -exec rm {} \;
52 do_cleanup "$WORKSPACE/build" "$WORKSPACE/memcheck"
54 NUMPROC="$(nproc)" || NUMPROC=1
58 ### Proceed with the tests
59 ctest -D ExperimentalStart || true
61 cmake -Denable_documentation=OFF -Denable_python=OFF \
62 -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
63 -Denable_mallocators=OFF \
64 -Denable_smpi=ON -Denable_testsuite_smpi_MPICH3=OFF -Denable_testsuite_McMini=OFF -Denable_model-checking=OFF \
66 -Denable_memcheck_xml=ON -DLTO_EXTRA_FLAG="auto" "$WORKSPACE"
70 ctest --no-compress-output -D ExperimentalTest -j$NUMPROC || true
73 if [ -f Testing/TAG ] ; then
74 find "$WORKSPACE" -iname "*.memcheck" -exec mv {} "$WORKSPACE"/memcheck \;
75 #remove all "empty" files
76 grep -r -L "error>" "$WORKSPACE"/memcheck | xargs rm -f
77 mv Testing/"$(head -n 1 < Testing/TAG)"/Test.xml "$WORKSPACE"/DynamicAnalysis.xml