This folder provides ctest scripts to automatically build anyone of the 'creatools', test it and submit results to creatis dashboard. ---------------- INSTRUCTIONS ---------------- 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-osx.ctest' if you are on a linux or on a mac osx 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, (e.g. creatools-linux-osx.ctest) * 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) On linux or osx, see the bash script ctest-all-creatools.sh ---------------- REM: To schedule automatic build, see : http://www.vtk.org/Wiki/CMake_Scripting_Of_CTest ----------------