set -e
-echo "Running $0 with arguments:" >&2
-for arg in "$@"; do
- echo "- $arg"
-done
+# usage: die status message...
+die () {
+ local status=${1:-1}
+ shift
+ [ $# -gt 0 ] || set -- "Error - Halting"
+ echo "$@" >&2
+ exit $status
+}
+
+# Get an ON/OFF string from a command:
+onoff() {
+ if "$@" > /dev/null ; then
+ echo ON
+ else
+ echo OFF
+ fi
+}
build_mode="$1"
echo "Build mode $build_mode on $(uname -np)" >&2
;;
*)
- if test "$(uname -o)" = "Msys"; then
- echo "On Windows, jenkins is not willing to expand variables for some reason" >&2
- echo "Force use Debug mode" >&2
- else
- echo "Unknown build_mode $build_mode"
- exit 1
- fi
+ die 1 "Unknown build_mode $build_mode"
;;
esac
GENERATOR="Unix Makefiles"
fi
-# usage: die status message...
-die () {
- local status=${1:-1}
- shift
- [ $# -gt 0 ] || set -- "Error - Halting"
- echo "$@" >&2
- exit $status
-}
-
-# Get an ON/OFF string from a command:
-onoff() {
- if "$@" > /dev/null ; then
- echo ON
- else
- echo OFF
- fi
-}
-
ulimit -c 0 || true
if [ -d $WORKSPACE/build ]
cmake -G"$GENERATOR"\
-Denable_debug=ON -Denable_documentation=OFF -Denable_coverage=OFF \
-Denable_model-checking=$(onoff test "$build_mode" = "ModelChecker") \
- -Denable_compile_optimization=$(onoff test "$build_mode" = "Debug") \
+ -Denable_compile_optimizations=$(onoff test "$build_mode" = "Debug") \
-Denable_smpi_MPICH3_testsuite=$(onoff test "$build_mode" != "DynamicAnalysis") \
-Denable_lua=$(onoff test "$build_mode" != "DynamicAnalysis") \
-Denable_mallocators=$(onoff test "$build_mode" != "DynamicAnalysis") \
/** Process Controller **/
PSGPlatform.control();
- new PSGProcessController(PSGPlatform.hostList[0],
- PSGPlatform.hostList[0].getName(), null).start();
+ if (!PSGPlatform.controlStepMap.isEmpty())
+ new PSGProcessController(PSGPlatform.hostList[0],
+ PSGPlatform.hostList[0].getName(), null).start();
/** Load and execute the initializers classes in the configuration file **/
PSGPlatform.init();
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
add_executable(bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132.c)
target_link_libraries(bug-17132 simgrid)
+endif(enable_smpi)
- set(tesh_files
- ${tesh_files}
- ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.tesh
- ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132-surf-debug.tesh
- PARENT_SCOPE)
- set(xml_files
- ${xml_files}
- PARENT_SCOPE)
- set(teshsuite_src
- ${teshsuite_src}
- ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.c
- PARENT_SCOPE)
- set(bin_files
- ${bin_files}
- PARENT_SCOPE)
- set(txt_files
- ${txt_files}
- ${CMAKE_CURRENT_SOURCE_DIR}/hostfile.txt
- ${CMAKE_CURRENT_SOURCE_DIR}/README
- PARENT_SCOPE)
+set(tesh_files
+ ${tesh_files}
+ ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.tesh
+ ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132-surf-debug.tesh
+ PARENT_SCOPE)
+set(xml_files
+ ${xml_files}
+ PARENT_SCOPE)
+set(teshsuite_src
+ ${teshsuite_src}
+ ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.c
+ PARENT_SCOPE)
+set(bin_files
+ ${bin_files}
+ PARENT_SCOPE)
+set(txt_files
+ ${txt_files}
+ ${CMAKE_CURRENT_SOURCE_DIR}/hostfile.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/README
+ PARENT_SCOPE)
-endif(enable_smpi)