]> Creatis software - creaToolsTools.git/commitdiff
Cosmetics
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 8 Jan 2009 11:41:52 +0000 (11:41 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 8 Jan 2009 11:41:52 +0000 (11:41 +0000)
ctest/README.txt
ctest/crea-linux.ctest

index 8d449f10b0c0d8da24db4441f7e3147a8b931165..b20cf455b7dbcd599e9a7f39638e45ca34b07bf4 100644 (file)
@@ -1,24 +1,33 @@
-This folder provides ctest scripts to automatically build a creatool, 
-test and submit results to creatis dashboard.
+This folder provides ctest scripts to automatically build anyone 
+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)
+  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}/dashboard
+* 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) 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 of the build tree to your testing directory (where you will run ctest, usually the same than CTEST_DASHBOARD_ROOT) giving it a proper name (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, I commented out the following lines :
+   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), 
+    giving it a meaningfull name 
+    (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
@@ -30,20 +39,23 @@ test and submit results to creatis dashboard.
  #CMAKE_HOME_DIRECTORY:INTERNAL=/home/guigues/coding/CreaTools/crea
 
    
-2) Copy the right ctest file to another filename, 
+2) Copy in CTEST_DASHBOARD_ROOT the right ctest file to another filename, 
    e.g. copy crea-linux to crea-mymachine-debug.ctest
-   Typically put it in CTEST_DASHBOARD_ROOT
+   
 
 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)
+   * 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 :
   http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest
index 41ad6c97976ef8fab6a740ab89d9bc4250fcf84f..5137e919fb35e2f3c874f9931b77f2da94b85ec9 100644 (file)
@@ -10,20 +10,26 @@ cmake_minimum_required(VERSION 2.6)
 
 #################################################################
 ## MANDATORY 
-set(arch "fc9")
+##  You MUST modify the following lines, according to what you use.
+set(arch "fc9-gcc4.1.2")
 set(buildtype "debug")
 set(CMakeCacheFile "crea-debug-CMakeCache.txt")
 #################################################################
 
 #################################################################
-## CAN BE CHANGED : 
+## MAY BE CHANGED : 
 set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/dashboards")
 set(MODEL Experimental)
 set(NUMBER_OF_CPU 2)
 #################################################################
 
 #################################################################
-# NOTHING FOR USER BELOW 
+## The following lines must NOT be modified!
+## NOTHING FOR USER BELOW
+## NO RATS ALLOWED!
+## HANDS OFF!
+## ;-)
 set(project_name "crea")
 
 set(CTEST_SITE "$ENV{HOSTNAME}")