7 # usage: die status message...
11 [ $# -gt 0 ] || set -- "Error - Halting"
16 # Get an ON/OFF string from a command:
18 if "$@" > /dev/null ; then
27 if [ -d $WORKSPACE/build ]
29 rm -rf $WORKSPACE/build
31 mkdir $WORKSPACE/build
34 cmake -Denable_documentation=OFF $WORKSPACE
36 tar xzf `cat VERSION`.tar.gz
50 die 1 "Unknown build_mode $build_mode"
54 cmake -Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
55 -Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
56 -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
57 -Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
58 -Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
59 -Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
60 -Denable_memcheck=$(onoff test "$build_mode" = "DynamicAnalysis") \
61 -Denable_compile_warnings=ON -Denable_smpi=ON -Denable_lib_static=OFF \
62 -Denable_latency_bound_tracking=OFF -Denable_gtnets=OFF -Denable_jedule=OFF \
63 -Denable_tracing=ON -Denable_java=ON
71 ctest -T test --no-compress-output || true
72 if [ -f Testing/TAG ] ; then
73 xsltproc $WORKSPACE/buildtools/jenkins/ctest2junit.xsl Testing/`head -n 1 < Testing/TAG`/Test.xml > CTestResults.xml
74 mv CTestResults.xml $WORKSPACE
77 if [ "$build_mode" = "DynamicAnalysis" ]
79 ctest -D ContinuousStart
80 ctest -D ContinuousConfigure
81 ctest -D ContinuousBuild
82 ctest -D ContinuousMemCheck
83 ctest -D ContinuousSubmit
86 ctest -D ContinuousStart
87 ctest -D ContinuousConfigure
88 ctest -D ContinuousBuild
89 ctest -D ContinuousTest
90 ctest -D ContinuousSubmit