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:"
15 rm -rf /tmp/simgrid-java*
16 rm -rf /var/tmp/simgrid-java*
18 find "$WORKSPACE" -name "hs_err_pid*.log" -exec rm -f {} +
25 ### Check the node installation
32 echo "$pkg is installed. Good."
34 die "please install $pkg before proceeding"
39 pkg_check valgrind pcregrep
41 ### Cleanup previous runs
48 rm -rf "$d" || die "Could not remove $d"
50 mkdir "$d" || die "Could not create $d"
52 find "$WORKSPACE" -name "memcheck_test_*.memcheck" -exec rm {} \;
55 do_cleanup "$WORKSPACE/build" "$WORKSPACE/memcheck"
57 NUMPROC="$(nproc)" || NUMPROC=1
61 ### Proceed with the tests
62 ctest -D ExperimentalStart || true
64 cmake -Denable_documentation=OFF -Denable_lua=OFF -Denable_python=OFF \
65 -Denable_compile_optimizations=OFF -Denable_compile_warnings=ON \
66 -Denable_jedule=OFF -Denable_mallocators=OFF \
67 -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_model-checking=OFF \
68 -Denable_memcheck_xml=ON -DLTO_EXTRA_FLAG="auto" "$WORKSPACE"
72 ctest --no-compress-output -D ExperimentalTest -j$NUMPROC || true
75 if [ -f Testing/TAG ] ; then
76 find "$WORKSPACE" -iname "*.memcheck" -exec mv {} "$WORKSPACE"/memcheck \;
77 #remove all "empty" files
78 grep -r -L "error>" "$WORKSPACE"/memcheck | xargs rm -f
79 mv Testing/"$(head -n 1 < Testing/TAG)"/Test.xml "$WORKSPACE"/DynamicAnalysis.xml