7 echo "Build mode $build_mode on $(uname -np)" >&2
9 # usage: die status message...
13 [ $# -gt 0 ] || set -- "Error - Halting"
18 # Get an ON/OFF string from a command:
20 if "$@" > /dev/null ; then
29 if [ -d $WORKSPACE/build ]
31 rm -rf $WORKSPACE/build
33 mkdir $WORKSPACE/build
36 cmake -Denable_documentation=OFF $WORKSPACE
38 tar xzf `cat VERSION`.tar.gz
52 die 1 "Unknown build_mode $build_mode"
56 cmake -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
57 -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
58 -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
59 -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
60 -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
61 -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
62 -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
63 -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
64 -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF \
65 -Denable_tracing=ON -Denable_java=ON
73 ctest -T test --no-compress-output || true
74 if [ -f Testing/TAG ] ; then
75 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > CTestResults.xml
76 mv CTestResults.xml $WORKSPACE
79 if [ "$build_mode" = "DynamicAnalysis" ]
81 ctest -D ContinuousStart
82 ctest -D ContinuousConfigure
83 ctest -D ContinuousBuild
84 ctest -D ContinuousMemCheck
85 ctest -D ContinuousSubmit
88 ctest -D ContinuousStart
89 ctest -D ContinuousConfigure
90 ctest -D ContinuousBuild
91 ctest -D ContinuousTest
92 ctest -D ContinuousSubmit