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