]> Creatis software - creaToolsTools.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Mon, 2 Feb 2009 11:40:45 +0000 (11:40 +0000)
committerguigues <guigues>
Mon, 2 Feb 2009 11:40:45 +0000 (11:40 +0000)
ctest/README.txt
ctest/bbtk-linux.ctest [deleted file]
ctest/creaContours-linux.ctest [deleted file]
ctest/creaEnvironment-linux.ctest [deleted file]
ctest/creaImageIO-linux.ctest [deleted file]
ctest/creaMaracasVisu-linux.ctest [deleted file]
ctest/creatools-linux.ctest [moved from ctest/crea-linux.ctest with 80% similarity]

index be5eb6f96be73fe76be72d0f1ca87a91b6bf6c6d..8b446080f47aeb95cb9e9a8132980e60b65b8358 100644 (file)
@@ -5,55 +5,56 @@ of the 'creatools', test it and submit results to creatis dashboard.
  INSTRUCTIONS
 ----------------
 
-* All ctest script files in this folder have the following format : 
-  PROJECT-OS.ctest (e.g. crea-linux.ctest for crea project on linux platforms
-                         bbtk-osx.ctest   for bbtk project on OsX   platforms)
-
-* The default configuration is to build and run the tests in ${HOME}/dashboards,
-(to be created by user)
-  This location is stored by ctest in the var CTEST_DASHBOARD_ROOT 
-
-* You have to :
-
-1) Create a initial CMakeCache.txt corresponding to your machine config :
-   a) CVS Checkout the project to test
-   b) Configure the project manually with cmake (ccmake or CMakeSetup), setting 
-   your system/install specific options (libraries paths, options, build type, ...)
-   c) Copy the file 'CMakeCache.txt' from the build tree to your testing directory
-    (where you will run ctest, usually the same than CTEST_DASHBOARD_ROOT), 
-    and rename it with a meaningfull name like :
-    (PROJECT-BUILDTYPE-CMakeCache.txt, e.g. crea-debug-CMakeCache.txt)
-   d) Edit the copied file and comment out (type an initial #) all lines which
-    make explicit reference to the build directory 
-    (the directory where you configured with cmake, use the 'find' tool of your
-     editor). Typically for crea, you'll have to comment out the following lines :
- #//Value Computed by CMake
- #crea_BINARY_DIR:STATIC=/home/guigues/coding/Build/crea
- #//Value Computed by CMake
- #crea_SOURCE_DIR:STATIC=/home/guigues/coding/CreaTools/crea
- #//This is the directory where this CMakeCahe.txt was created
- #CMAKE_CACHEFILE_DIR:INTERNAL=/home/guigues/coding/Build/crea
- #//Start directory with the top level CMakeLists.txt file for this
- #// project
- #CMAKE_HOME_DIRECTORY:INTERNAL=/home/guigues/coding/CreaTools/crea
-  
-2) Copy in CTEST_DASHBOARD_ROOT the right ctest file to another filename, 
-   e.g. copy 'crea-linux.ctest' to 'crea-mymachine-debug.ctest'
-   
-3) Edit the new file and set :
-   * The architecture description, typically os+compiler with versions
-      e.g. fc9-gcc4.3.0, win32-vs8, etc.
-   * The build type, e.g. debug, release...
-   * The name of the CMakeCache.txt file to use as initial cache file (see 3) 
-   below)
-   * You can also customize the CTEST_DASHBOARD_ROOT folder 
-
-4) Run ctest with the script, typically :
-> ctest -S crea-linux-mymachine-debug.ctest -V
-The -V option sets ctest to verbose mode, use -VV if you want to see each
-command issued...
-
-* To schedule automatic build, see :
+1) Create a directory where you are going to run the tests.
+   The default directory is '${HOME}/dashboards'
+   If you change this location then you MUST change the line :
+   set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards") 
+   in your ctest file (see below)
+
+2) Copy the ctest file corresponding to your os in the test dir,
+   e.g. copy 'creatools-linux.ctest' if you are on a linux platform.
+
+3) Edit the copied file and make the necessary changes inside 
+   following the comments therein. 
+   If you changed the default test dir, do not forget to change 
+   the line set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards").
+
+4) For each project you want to test:
+   4.1) Perform an initial checkout of the project in test dir,
+       e.g. 'cvs co crea'
+   4.2) Create a build dir with name PROJECTNAME-BUILDTYPE,
+       e.g. 'crea-release'
+   4.3) Go to the build dir, configure the project with cmake 
+       (run ccmake or CMakeSetup), setting your machine
+       specific options (libraries paths, options, build type, ...)
+   4.4) Copy the 'CMakeCache.txt' file created by cmake in the test dir
+       renaming it 'PROJECTNAME-BUILDTYPE-CMakeCache.txt'
+
+5) To run a test, type in test dir:
+   'ctest -S creatools-OS.ctest,PROJECTNAME' [-V|-VV]
+   Where : * 'creatools-OS.ctest' is the name of your customized ctest file,
+          (OS is your OS type)
+          * PROJECTNAME is the name of the project to build and test
+          (e.g. crea, bbtk, ...)
+          * add -V or -VV tu run in verbose or extra-verbose mode
+
+----------------
+If you want to build the whole suite, you have to follow the projects 
+dependencies.
+When you configure manually a project with cmake,
+make sure that the path to the libraries of the suite 
+are properly set to the build directories in the test dir.
+
+A consistent build order is:
+- crea
+- bbtk (depends on crea)
+- creaEnvironment (depends on crea)
+- creaImageIO (depends on crea, bbtk)
+- creaMaracasVisu (depends on crea, bbtk)
+- creaContours (depends on crea, bbtk, creaImageIO, creaEnvironment, creaMaracasVisu)
+
+----------------
+REM: To schedule automatic build, see :
   http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest
+----------------
+
diff --git a/ctest/bbtk-linux.ctest b/ctest/bbtk-linux.ctest
deleted file mode 100644 (file)
index 70393a9..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-# LG 06/01/08
-# Adapted from vtk dashboard : arkadia.kitware all-debug-g++
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
-cmake_minimum_required(VERSION 2.6)
-
-set(project_name "bbtk")
-
-#################################################################
-## MANDATORY 
-##  You MUST modify the following lines, according to what you use.
-set(arch "fc9-gcc4.1.2")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
-#################################################################
-
-#################################################################
-## MAY BE CHANGED : 
-set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
-set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
-#################################################################
-
-#################################################################
-## The following lines must NOT be modified!
-## NOTHING FOR USER BELOW
-## NO RATS ALLOWED!
-## HANDS OFF!
-## ;-)
-
-
-set(CTEST_SITE "$ENV{HOSTNAME}")
-set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
-
-set(source_dir ${project_name})
-#set(extra_source_dir "VTKData")
-set(build_dir ${CTEST_BUILD_NAME})
-set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
-
-set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_COMMAND "make -j${NUMBER_OF_CPU}")
-
-
-set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${build_dir}")
-
-set(CTEST_COVERAGE_COMMAND "/usr/bin/gcov") # REQUIRED with new ctest script style.
-
-# --coverage: -fprofile-arcs -ftest-coverage (when compiling)
-# --coverage: -lgcov (when linking)
-
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
-# Common C/C++ flags:
-set(advanced_flags)
-#set(advanced_flags"-Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wconversion")
-
-set(cov_options "-fprofile-arcs -ftest-coverage")
-
-set(common_flags "-fdiagnostics-show-option -Wall -Wextra -Wshadow ${advanced_flags} ${cov_options}")
-
-# C specific flags:
-set(advanced_c_flags)
-#set(advanced_c_flags "-Wtraditional-conversion")
-
-# C++ specific flags:
-set(advanced_cxx_flags)
-#set(advanced_cxx_flags "-Wstrict-null-sentinel -Wsign-conversion -Wsign-promo")
-
-
-configure_file( 
-  ${CTEST_SCRIPT_DIRECTORY}/${CMakeCacheFile}
-  ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt 
-  COPY_ONLY)
-
-
-set(CTEST_UPDATE_COMMAND "cvs")
-
-# set any extra directories to do an update on
-if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-  message("Initial checkout of ${project_name}")
-  execute_process(
-    COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 co ${project_name}
-    WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}"
-    )
-else(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
- execute_process(
-  COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 up "-PdA"
-  WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}"
-  )
-endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-
-ctest_start(${MODEL})
-ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
-ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
-
-# save LD_LIBRARY_PATH
-#set(saved_ld_library_path "$ENV{LD_LIBRARY_PATH}")
-
-# Change it so that JavaRegression test can pass.
-#set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
-# restore LD_LIBRARY_PATH
-#set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
-
-#ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_submit()
diff --git a/ctest/creaContours-linux.ctest b/ctest/creaContours-linux.ctest
deleted file mode 100644 (file)
index 8a7fd63..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# LG 06/01/08
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
-cmake_minimum_required(VERSION 2.6)
-
-
-#################################################################
-## MANDATORY 
-set(project_name "creaContours")
-set(arch "fc9-gcc4.3.0-8")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
-#################################################################
-
-#################################################################
-## CAN BE CHANGED : 
-set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
-set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
-#################################################################
-
-#################################################################
-# NOTHING FOR USER BELOW 
-
-set(CTEST_SITE "$ENV{HOSTNAME}")
-set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
-
-set(source_dir ${project_name})
-#set(extra_source_dir "VTKData")
-set(build_dir ${project_name}-${buildtype})
-set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
-
-set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_COMMAND "make -j${NUMBER_OF_CPU}")
-
-
-set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${build_dir}")
-
-set(CTEST_COVERAGE_COMMAND "/usr/bin/gcov") # REQUIRED with new ctest script style.
-
-# --coverage: -fprofile-arcs -ftest-coverage (when compiling)
-# --coverage: -lgcov (when linking)
-
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
-# Common C/C++ flags:
-set(advanced_flags)
-#set(advanced_flags"-Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wconversion")
-
-set(cov_options "-fprofile-arcs -ftest-coverage")
-
-set(common_flags "-fdiagnostics-show-option -Wall -Wextra -Wshadow ${advanced_flags} ${cov_options}")
-
-# C specific flags:
-set(advanced_c_flags)
-#set(advanced_c_flags "-Wtraditional-conversion")
-
-# C++ specific flags:
-set(advanced_cxx_flags)
-#set(advanced_cxx_flags "-Wstrict-null-sentinel -Wsign-conversion -Wsign-promo")
-
-
-configure_file( 
-  ${CTEST_SCRIPT_DIRECTORY}/${CMakeCacheFile}
-  ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt 
-  COPY_ONLY)
-
-
-set(CTEST_UPDATE_COMMAND "cvs")
-
-# set any extra directories to do an update on
-if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-  message("Initial checkout of ${project_name}")
-  execute_process(
-    COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 co ${project_name}
-    WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}"
-    )
-else(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
- execute_process(
-  COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 up "-PdA"
-  WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}"
-  )
-endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-
-ctest_start(${MODEL})
-ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
-ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
-
-# save LD_LIBRARY_PATH
-#set(saved_ld_library_path "$ENV{LD_LIBRARY_PATH}")
-
-# Change it so that JavaRegression test can pass.
-#set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-#ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
-# restore LD_LIBRARY_PATH
-#set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
-
-#ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_submit()
diff --git a/ctest/creaEnvironment-linux.ctest b/ctest/creaEnvironment-linux.ctest
deleted file mode 100644 (file)
index fb4ebbd..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# LG 06/01/08
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
-cmake_minimum_required(VERSION 2.6)
-
-
-#################################################################
-## MANDATORY 
-set(project_name "creaEnvironment")
-set(arch "fc9-gcc4.3.0-8")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
-#################################################################
-
-#################################################################
-## CAN BE CHANGED : 
-set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
-set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
-#################################################################
-
-#################################################################
-# NOTHING FOR USER BELOW 
-
-set(CTEST_SITE "$ENV{HOSTNAME}")
-set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
-
-set(source_dir ${project_name})
-#set(extra_source_dir "VTKData")
-set(build_dir ${project_name}-${buildtype})
-set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
-
-set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_COMMAND "make -j${NUMBER_OF_CPU}")
-
-
-set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${build_dir}")
-
-set(CTEST_COVERAGE_COMMAND "/usr/bin/gcov") # REQUIRED with new ctest script style.
-
-# --coverage: -fprofile-arcs -ftest-coverage (when compiling)
-# --coverage: -lgcov (when linking)
-
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
-# Common C/C++ flags:
-set(advanced_flags)
-#set(advanced_flags"-Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wconversion")
-
-set(cov_options "-fprofile-arcs -ftest-coverage")
-
-set(common_flags "-fdiagnostics-show-option -Wall -Wextra -Wshadow ${advanced_flags} ${cov_options}")
-
-# C specific flags:
-set(advanced_c_flags)
-#set(advanced_c_flags "-Wtraditional-conversion")
-
-# C++ specific flags:
-set(advanced_cxx_flags)
-#set(advanced_cxx_flags "-Wstrict-null-sentinel -Wsign-conversion -Wsign-promo")
-
-
-configure_file( 
-  ${CTEST_SCRIPT_DIRECTORY}/${CMakeCacheFile}
-  ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt 
-  COPY_ONLY)
-
-
-set(CTEST_UPDATE_COMMAND "cvs")
-
-# set any extra directories to do an update on
-if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-  message("Initial checkout of ${project_name}")
-  execute_process(
-    COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 co ${project_name}
-    WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}"
-    )
-else(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
- execute_process(
-  COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 up "-PdA"
-  WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}"
-  )
-endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-
-ctest_start(${MODEL})
-ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
-ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
-
-# save LD_LIBRARY_PATH
-#set(saved_ld_library_path "$ENV{LD_LIBRARY_PATH}")
-
-# Change it so that JavaRegression test can pass.
-#set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-#ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
-# restore LD_LIBRARY_PATH
-#set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
-
-#ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_submit()
diff --git a/ctest/creaImageIO-linux.ctest b/ctest/creaImageIO-linux.ctest
deleted file mode 100644 (file)
index 8462bf4..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# LG 06/01/08
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
-cmake_minimum_required(VERSION 2.6)
-
-
-#################################################################
-## MANDATORY 
-set(project_name "creaImageIO")
-set(arch "fc9-gcc4.3.0-8")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
-#################################################################
-
-#################################################################
-## CAN BE CHANGED : 
-set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
-set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
-#################################################################
-
-#################################################################
-# NOTHING FOR USER BELOW 
-
-set(CTEST_SITE "$ENV{HOSTNAME}")
-set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
-
-set(source_dir ${project_name})
-#set(extra_source_dir "VTKData")
-set(build_dir ${project_name}-${buildtype})
-set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
-
-set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_COMMAND "make -j${NUMBER_OF_CPU}")
-
-
-set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${build_dir}")
-
-set(CTEST_COVERAGE_COMMAND "/usr/bin/gcov") # REQUIRED with new ctest script style.
-
-# --coverage: -fprofile-arcs -ftest-coverage (when compiling)
-# --coverage: -lgcov (when linking)
-
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
-# Common C/C++ flags:
-set(advanced_flags)
-#set(advanced_flags"-Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wconversion")
-
-set(cov_options "-fprofile-arcs -ftest-coverage")
-
-set(common_flags "-fdiagnostics-show-option -Wall -Wextra -Wshadow ${advanced_flags} ${cov_options}")
-
-# C specific flags:
-set(advanced_c_flags)
-#set(advanced_c_flags "-Wtraditional-conversion")
-
-# C++ specific flags:
-set(advanced_cxx_flags)
-#set(advanced_cxx_flags "-Wstrict-null-sentinel -Wsign-conversion -Wsign-promo")
-
-
-configure_file( 
-  ${CTEST_SCRIPT_DIRECTORY}/${CMakeCacheFile}
-  ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt 
-  COPY_ONLY)
-
-
-set(CTEST_UPDATE_COMMAND "cvs")
-
-# set any extra directories to do an update on
-if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-  message("Initial checkout of ${project_name}")
-  execute_process(
-    COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 co ${project_name}
-    WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}"
-    )
-else(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
- execute_process(
-  COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 up "-PdA"
-  WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}"
-  )
-endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-
-ctest_start(${MODEL})
-ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
-ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
-
-# save LD_LIBRARY_PATH
-#set(saved_ld_library_path "$ENV{LD_LIBRARY_PATH}")
-
-# Change it so that JavaRegression test can pass.
-#set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-#ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
-# restore LD_LIBRARY_PATH
-#set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
-
-#ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_submit()
diff --git a/ctest/creaMaracasVisu-linux.ctest b/ctest/creaMaracasVisu-linux.ctest
deleted file mode 100644 (file)
index 0ce1682..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-# LG 06/01/08
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
-cmake_minimum_required(VERSION 2.6)
-
-
-#################################################################
-## MANDATORY 
-set(project_name "creaMaracasVisu")
-set(arch "fc9-gcc4.3.0-8")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
-#################################################################
-
-#################################################################
-## CAN BE CHANGED : 
-set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
-set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
-#################################################################
-
-#################################################################
-# NOTHING FOR USER BELOW 
-
-set(CTEST_SITE "$ENV{HOSTNAME}")
-set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
-
-set(source_dir ${project_name})
-#set(extra_source_dir "VTKData")
-set(build_dir ${project_name}-${buildtype})
-set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
-
-set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
-set(CTEST_BUILD_COMMAND "make -j${NUMBER_OF_CPU}")
-
-
-set(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${build_dir}")
-
-set(CTEST_COVERAGE_COMMAND "/usr/bin/gcov") # REQUIRED with new ctest script style.
-
-# --coverage: -fprofile-arcs -ftest-coverage (when compiling)
-# --coverage: -lgcov (when linking)
-
-ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
-
-# Common C/C++ flags:
-set(advanced_flags)
-#set(advanced_flags"-Wpointer-arith -Winvalid-pch -Wcast-align -Wwrite-strings -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wconversion")
-
-set(cov_options "-fprofile-arcs -ftest-coverage")
-
-set(common_flags "-fdiagnostics-show-option -Wall -Wextra -Wshadow ${advanced_flags} ${cov_options}")
-
-# C specific flags:
-set(advanced_c_flags)
-#set(advanced_c_flags "-Wtraditional-conversion")
-
-# C++ specific flags:
-set(advanced_cxx_flags)
-#set(advanced_cxx_flags "-Wstrict-null-sentinel -Wsign-conversion -Wsign-promo")
-
-
-configure_file( 
-  ${CTEST_SCRIPT_DIRECTORY}/${CMakeCacheFile}
-  ${CTEST_BINARY_DIRECTORY}/CMakeCache.txt 
-  COPY_ONLY)
-
-
-set(CTEST_UPDATE_COMMAND "cvs")
-
-# set any extra directories to do an update on
-if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-  message("Initial checkout of ${project_name}")
-  execute_process(
-    COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 co ${project_name}
-    WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}"
-    )
-else(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
- execute_process(
-  COMMAND "${CTEST_UPDATE_COMMAND}" -q -z3 up "-PdA"
-  WORKING_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${source_dir}"
-  )
-endif(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${source_dir}")
-
-ctest_start(${MODEL})
-ctest_update(SOURCE "${CTEST_SOURCE_DIRECTORY}")
-ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_read_custom_files("${CTEST_BINARY_DIRECTORY}")
-ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
-
-# save LD_LIBRARY_PATH
-#set(saved_ld_library_path "$ENV{LD_LIBRARY_PATH}")
-
-# Change it so that JavaRegression test can pass.
-#set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-#ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
-# restore LD_LIBRARY_PATH
-#set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
-
-#ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_submit()
similarity index 80%
rename from ctest/crea-linux.ctest
rename to ctest/creatools-linux.ctest
index 8d6ac9a8161ca8704dd20783104d72b2d3ac490c..466340ddb789b39f903f80e448adb5b19eafa544 100644 (file)
@@ -1,27 +1,42 @@
-# LG 06/01/08
-#
-# Style note: to distinguish between variables recognized by cmake/ctest and
-#             user-defined variables, user-defined ones are declared lower case
-# Style note: lower case flavor of the cmake commands is used.
-
 cmake_minimum_required(VERSION 2.6)
 
-set(project_name "crea")
+#################################################################
+# LG+SV 30/01/08
+# To use it :
+# > ctest -S creatools-linux.ctest,PROJECT [-V|-VV] 
+# where PROJECT is the name of the project to build and test
+# e.g. crea, bbtk, creaImageIO, etc.
+# add -V or -VV tu run in verbose or extra-verbose mode
+#################################################################
+
+#################################################################
+if(NOT CTEST_SCRIPT_ARG)
+message(FATAL_ERROR "You must pass the name of the project to test !")
+endif(NOT CTEST_SCRIPT_ARG)
+set(project_name ${CTEST_SCRIPT_ARG})
+#################################################################
 
 #################################################################
 ## MANDATORY 
 ##  You MUST modify the following lines, according to what you use.
 
-set(arch "fc9-gcc4.1.2")
-set(buildtype "debug")
-set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
+# The name of your machine
+set(CTEST_SITE "IV-SV-268")
+
+# The architecture of your system
+set(arch "ubuntu-8.10-gcc4.3.2")
+
+# The type of build (as specified in the CMakeCache created)
+set(buildtype "release")
+
 #################################################################
 
 #################################################################
 ## MAY BE CHANGED : 
 set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
 set(MODEL Experimental)
-set(NUMBER_OF_CPU 2)
+set(NUMBER_OF_CPU 4)
+set(CMakeCacheFile "${project_name}-${buildtype}-CMakeCache.txt")
 #################################################################
 
 #################################################################
@@ -32,12 +47,13 @@ set(NUMBER_OF_CPU 2)
 ## ;-)
 
 
-set(CTEST_SITE "$ENV{HOSTNAME}")
+#set(CTEST_SITE "$ENV{HOSTNAME}")
+#MESSAGE(FATAL_ERROR $ENV{HOSTNAME})
 set(CTEST_BUILD_NAME "${project_name}-${CTEST_SITE}-${arch}-${buildtype}")
 
 set(source_dir ${project_name})
 #set(extra_source_dir "VTKData")
-set(build_dir ${CTEST_BUILD_NAME})
+set(build_dir "${project_name}-${buildtype}")
 set(CTEST_TEST_TIMEOUT 140) # 70 seconds. 70 seconds is probably not enough when coverage is ON.
 
 set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
@@ -140,10 +156,10 @@ ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}")
 
 # Change it so that JavaRegression test can pass.
 #set(ENV{LD_LIBRARY_PATH} "/usr/lib/jvm/java-6-sun/jre/lib/i386/xawt:${saved_ld_libray_path}")
-ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
-ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
+#ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}")
+#ctest_coverage(BUILD "${CTEST_BINARY_DIRECTORY}")
 # restore LD_LIBRARY_PATH
 #set(ENV{LD_LIBRARY_PATH} "${saved_ld_library_path}")
 
 #ctest_memcheck(BUILD "${CTEST_BINARY_DIRECTORY}")
-#ctest_submit()
+ctest_submit()