10 ### Check the node installation
17 echo "$pkg is installed. Good."
19 die "please install $pkg before proceeding"
24 pkg_check valgrind pcregrep
26 ### Cleanup previous runs
28 ! [ -z "$WORKSPACE" ] || die "No WORKSPACE"
29 [ -d "$WORKSPACE" ] || die "WORKSPACE ($WORKSPACE) does not exist"
36 rm -rf "$d" || die "Could not remove $d"
38 mkdir "$d" || die "Could not create $d"
40 find $WORKSPACE -name "memcheck_test_*.memcheck" -exec rm {} \;
43 do_cleanup "$WORKSPACE/build" "$WORKSPACE/memcheck"
45 NUMPROC="$(nproc)" || NUMPROC=1
49 ### Proceed with the tests
50 ctest -D ExperimentalStart || true
52 cmake -Denable_documentation=OFF -Denable_lua=OFF -Denable_python=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=OFF -Denable_model-checking=OFF \
56 -Denable_memcheck_xml=ON -DLTO_EXTRA_FLAG="auto" $WORKSPACE
60 ctest --no-compress-output -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 grep -r -L "error>" $WORKSPACE/memcheck | xargs rm -f
67 mv Testing/$(head -n 1 < Testing/TAG)/Test.xml $WORKSPACE/DynamicAnalysis.xml