diff --git a/CMakeLists.txt b/CMakeLists.txt index 647779e53..aac37fb6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ # # Description # CMakeLists.txt file for implementing a test harness for the compilation -# and test of OpenFOAM-1.5-dev using Kitware CTest./CMake/CDash +# and test of OpenFOAM-1.6-ext using Kitware CTest./CMake/CDash # # The results will be submitted to the CDash server identified by the file # CTestConfig.cmake @@ -37,7 +37,7 @@ cmake_minimum_required (VERSION 2.8) -PROJECT(OpenFOAM_1.5-dev) +PROJECT(OpenFOAM_1.6-ext) #----------------------------------------------------------------------------- # Initialization of CTest specific variables @@ -92,7 +92,7 @@ SET(BUILDNAME "${BUILDNAME}-$ENV{WM_CC}${COMPILER_VERSION}") # We will support more compilers eventually. # -# Timeout for running all this: 4 hours: 4 x 3600 seconds +# Timeout for running every single test: 4 hours: 4 x 3600 seconds #SET( # DART_TESTING_TIMEOUT 14400 # CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test." @@ -133,7 +133,7 @@ if(GIT_FOUND) ) message("Git branch (mercurial): ${GIT_BRANCH_NAME}") endif() - SET(BUILDNAME "${BUILDNAME}-git-branch:${GIT_BRANCH_NAME}") + SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}") endif() # Some last minute cleanup diff --git a/CTestConfig.cmake b/CTestConfig.cmake index 743c356bb..2808a760d 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -4,10 +4,10 @@ ## # The following are required to uses Dart and the Cdash dashboard ## ENABLE_TESTING() ## INCLUDE(CTest) -set(CTEST_PROJECT_NAME "OpenFOAM-1.6-ext_testing") +set(CTEST_PROJECT_NAME "OpenFOAM-1.6-ext") set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net") -set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.6-ext_testing") +set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.6-ext") set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/etc/prefs.csh-EXAMPLE b/etc/prefs.csh-EXAMPLE index 97a4a4374..9599a5195 100644 --- a/etc/prefs.csh-EXAMPLE +++ b/etc/prefs.csh-EXAMPLE @@ -146,4 +146,13 @@ #setenv ParaView_VERSION git # eg, cvs/git version #setenv ParaView_MAJOR 3.7 + +# System identifier for the OpenFOAM CDash test harness on openfoam-extend +# +# By default, your system FQN/hostname will be used as the system identifier +# when publishing your test harness results on the OpenFOAM CDash server +# on openfoam-extend. +# You can override your identifier using this environment variable +#setenv CDASH_SUBMIT_LOCAL_HOST_ID choose_your_CDash_system_identifer + # ----------------------------------------------------------------- end-of-file diff --git a/etc/prefs.sh-EXAMPLE b/etc/prefs.sh-EXAMPLE index 18c931580..990207083 100644 --- a/etc/prefs.sh-EXAMPLE +++ b/etc/prefs.sh-EXAMPLE @@ -156,4 +156,13 @@ compilerInstall=System #export ParaView_VERSION=git # eg, cvs/git version #export ParaView_MAJOR=3.7 + +# System identifier for the OpenFOAM CDash test harness on openfoam-extend +# +# By default, your system FQN/hostname will be used as the system identifier +# when publishing your test harness results on the OpenFOAM CDash server +# on openfoam-extend. +# You can override your identifier using this environment variable +#export CDASH_SUBMIT_LOCAL_HOST_ID=choose_your_CDash_system_identifer + # ----------------------------------------------------------------- end-of-file diff --git a/testHarness/OSIG/Turbomachinery/README.txt b/testHarness/OSIG/Turbomachinery/README.txt index 82353e77b..e8e113882 100644 --- a/testHarness/OSIG/Turbomachinery/README.txt +++ b/testHarness/OSIG/Turbomachinery/README.txt @@ -31,6 +31,7 @@ # \*---------------------------------------------------------------------------*/ + Warning #1: Make sure your OpenFOAM environment is properly initialized before running the test harness. diff --git a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CMakeLists.txt b/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CMakeLists.txt index bd8595535..aac37fb6d 100644 --- a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CMakeLists.txt +++ b/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CMakeLists.txt @@ -24,7 +24,7 @@ # # Description # CMakeLists.txt file for implementing a test harness for the compilation -# and test of OpenFOAM-1.5-dev using Kitware CTest./CMake/CDash +# and test of OpenFOAM-1.6-ext using Kitware CTest./CMake/CDash # # The results will be submitted to the CDash server identified by the file # CTestConfig.cmake @@ -37,7 +37,7 @@ cmake_minimum_required (VERSION 2.8) -PROJECT(OpenFOAM_1.5-dev) +PROJECT(OpenFOAM_1.6-ext) #----------------------------------------------------------------------------- # Initialization of CTest specific variables @@ -92,7 +92,7 @@ SET(BUILDNAME "${BUILDNAME}-$ENV{WM_CC}${COMPILER_VERSION}") # We will support more compilers eventually. # -# Timeout for running all this: 4 hours: 4 x 3600 seconds +# Timeout for running every single test: 4 hours: 4 x 3600 seconds #SET( # DART_TESTING_TIMEOUT 14400 # CACHE STRING "Maximum time allowed (4 hours) before CTest will kill the test." @@ -125,7 +125,15 @@ if(GIT_FOUND) OUTPUT_VARIABLE GIT_BRANCH_NAME ) message("Git branch: ${GIT_BRANCH_NAME}") - SET(BUILDNAME "${BUILDNAME}-git-branch:${GIT_BRANCH_NAME}") + if (GIT_BRANCH_NAME STREQUAL "") + message("No git-branch. Mercurial?") + EXEC_PROGRAM(hg + ARGS branch + OUTPUT_VARIABLE GIT_BRANCH_NAME + ) + message("Git branch (mercurial): ${GIT_BRANCH_NAME}") + endif() + SET(BUILDNAME "${BUILDNAME}-git-branch=${GIT_BRANCH_NAME}") endif() # Some last minute cleanup diff --git a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend b/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend index 12f45f381..2808a760d 100644 --- a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend +++ b/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend @@ -4,10 +4,10 @@ ## # The following are required to uses Dart and the Cdash dashboard ## ENABLE_TESTING() ## INCLUDE(CTest) -set(CTEST_PROJECT_NAME "OpenFOAM-1.5-dev") +set(CTEST_PROJECT_NAME "OpenFOAM-1.6-ext") set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net") -set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.5-dev") +set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.6-ext") set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend_of-1.6-ext-testing b/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend_of-1.6-ext-testing deleted file mode 100644 index 743c356bb..000000000 --- a/testHarness/OpenFOAM/1.6-ext/CMakeFiles/CTestConfig.cmake.openfoam-extend_of-1.6-ext-testing +++ /dev/null @@ -1,13 +0,0 @@ -## This file should be placed in the root directory of your project. -## Then modify the CMakeLists.txt file in the root directory of your -## project to incorporate the testing dashboard. -## # The following are required to uses Dart and the Cdash dashboard -## ENABLE_TESTING() -## INCLUDE(CTest) -set(CTEST_PROJECT_NAME "OpenFOAM-1.6-ext_testing") -set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") - -set(CTEST_DROP_METHOD "http") -set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net") -set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.6-ext_testing") -set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/testHarness/OpenFOAM/1.6-ext/README.txt b/testHarness/OpenFOAM/1.6-ext/README.txt index fef16a438..5fc5f9bf5 100644 --- a/testHarness/OpenFOAM/1.6-ext/README.txt +++ b/testHarness/OpenFOAM/1.6-ext/README.txt @@ -48,7 +48,7 @@ a) You can set your local system identifier using the environment variable b) Install the CMakeLists.txt and CTestConfig.cmake files by executing the following commands: cp ./CMakeFiles/CMakeLists.txt $WM_PROJECT_DIR -cp ./CMakeFiles/CTestConfig.cmake.openfoam-extend_of-1.6-ext-testing $WM_PROJECT_DIR/CTestConfig.cmake +cp ./CMakeFiles/CTestConfig.cmake.openfoam-extend $WM_PROJECT_DIR/CTestConfig.cmake c) Run the test harness and push your results on the CDash server on openfoam-extend @@ -74,5 +74,5 @@ To submit your results to the CDash server on openfoam-extend, just use the file CTestConfig.cmake.openfoam-extend. If submitted to the CDash server on openfoam-extend, your results will be displayed here: -http://openfoam-extend.sourceforge.net/CDash/index.php?project=OpenFOAM-1.6-ext_testing +http://openfoam-extend.sourceforge.net/CDash/index.php?project=OpenFOAM-1.6-ext diff --git a/testHarness/README.txt b/testHarness/README.txt index d33bbe545..ba7b67f22 100644 --- a/testHarness/README.txt +++ b/testHarness/README.txt @@ -7,7 +7,7 @@ Directory Structure =================== OpenFOAM : CMake/CTest scripts for compilation and execution test harness for OpenFOAM. -OpenFOAM/1.6-dev : Test harness for OpenFOAM version 1.6-dev. See the file OpenFOAM/1.6-dev/README.txt for more information +OpenFOAM/1.6-ext : Test harness for OpenFOAM version 1.6-ext. See the file OpenFOAM/1.6-ext/README.txt for more information OSIG : CMake/CTest scripts for OpenFOAM Special Interest Group (OSIG) test harness OSIG/TurboMachinery : Test harness for the TurboMachinery OSIG. See the file OSIG/Turbomachinery/README.txt for more information. @@ -42,7 +42,7 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved. Still, I recommand always checking that these two important files are up-to-date: cp ../CMakeFiles/CMakeLists.txt $WM_PROJECT_DIR - cp ../CMakeFiles/CTestConfig.cmake.openfoam-extend_of-1.6-ext-testing $WM_PROJECT_DIR/CTestConfig.cmake + cp ../CMakeFiles/CTestConfig.cmake.openfoam-extend $WM_PROJECT_DIR/CTestConfig.cmake 7: Next, running the test loop is pretty simple: @@ -55,9 +55,7 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved. 8: The results will be published on the CDash dashboard on openfoam-extend. To see your results: - URL : http://openfoam-extend.sourceforge.net/CDash/index.php?project=OpenFOAM-1.6-ext_testing - Username : of-1.6-ext@of-extend.cdash - Password : onepasswd4all + URL : http://openfoam-extend.sourceforge.net/CDash/index.php?project=OpenFOAM-1.6-ext 9: You can customize your system identifier on the dashboard using the environment variable $CDASH_SUBMIT_LOCAL_HOST_ID. @@ -71,15 +69,6 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved. 10: In general, see the file $WM_PROJECT_DIR/testHarness/OpenFOAM/1.6-ext/README.txt for the necessary information about running the test loop. - (NB: I just found out a couple of mistakes in that file, so please use this message for now as per instructions for running the test loop. - I will fix this shortly. Sorry.) -11: As more people will start using these basic steps, I will supply more information about some other features that are available with - the test loop. - - But I need to see those baby steps first... :) - - -12: Please do not hesitate to report any problems, comments, suggestions about the test loop. - This stuff runs great on my systems, but it needs to run even better on yours. +11: Please do not hesitate to report any problems, comments, suggestions about the test loop.