test harness enabled

This commit is contained in:
Hrvoje Jasak 2013-12-17 10:30:27 +00:00
parent 45fc0403b3
commit 9347abbb5c
3 changed files with 20 additions and 20 deletions

View file

@ -23,7 +23,7 @@
# #
# Description # Description
# CMakeLists.txt file for implementing a test harness for the compilation # CMakeLists.txt file for implementing a test harness for the compilation
# and test of OpenFOAM-1.6-ext using Kitware CTest./CMake/CDash # and test of foam-extend-3.0 using Kitware CTest./CMake/CDash
# #
# The results will be submitted to the CDash server identified by the file # The results will be submitted to the CDash server identified by the file
# CTestConfig.cmake # CTestConfig.cmake
@ -36,7 +36,7 @@
cmake_minimum_required (VERSION 2.8) cmake_minimum_required (VERSION 2.8)
PROJECT(OpenFOAM_1.6-ext) PROJECT(foam-extend-3.0)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Initialization of CTest specific variables # Initialization of CTest specific variables
@ -65,10 +65,10 @@ SET(
CACHE STRING "Name of the local site" CACHE STRING "Name of the local site"
) )
#Grab the OpenFOAM installation directory. #Grab the FOAM installation directory.
SET( SET(
OF_ROOT $ENV{WM_PROJECT_DIR} OF_ROOT $ENV{WM_PROJECT_DIR}
CACHE INTERNAL "OpenFOAM root directory." CACHE INTERNAL "FOAM root directory."
) )
# Construct the build name. # Construct the build name.
@ -144,20 +144,20 @@ string(REPLACE "/" "_" SITE ${SITE})
# Build section # Build section
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Compile OpenFOAM, libs and apps # Compile FOAM, libs and apps
add_custom_target (OpenFOAM-$ENV{WM_PROJECT_VERSION} ALL add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION} ALL
${OF_ROOT}/Allwmake ${OF_ROOT}/Allwmake
) )
set_property( set_property(
TARGET OpenFOAM-$ENV{WM_PROJECT_VERSION} TARGET foam-extend-$ENV{WM_PROJECT_VERSION}
PROPERTY LABELS OpenFOAM-$ENV{WM_PROJECT_VERSION} PROPERTY LABELS foam-extend-$ENV{WM_PROJECT_VERSION}
) )
# Compile the OpenFOAM unit tests located under applications/test # Compile the FOAM unit tests located under applications/test
# This part will not be compiled and run by default. # This part will not be compiled and run by default.
# This would be a good candidate for a sub-project # This would be a good candidate for a sub-project
add_custom_target (OpenFOAM-$ENV{WM_PROJECT_VERSION}_unitTests add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION}_unitTests
wmake all ${OF_ROOT}/applications/test wmake all ${OF_ROOT}/applications/test
) )
@ -191,15 +191,15 @@ IF(BUILD_TESTING)
SET(testIdSuffix "_oneTimeStep") SET(testIdSuffix "_oneTimeStep")
ENDIF(RUN_FROM_ONE_TIMESTEP) ENDIF(RUN_FROM_ONE_TIMESTEP)
# OpenFOAM will run against this test suite: # FOAM will run against this test suite:
# Add the suite of OpenFOAM tutorials # Add the suite of FOAM tutorials
# #
INCLUDE($ENV{FOAM_TEST_HARNESS_DIR}/CMakeFiles/OpenFOAM_Tutorials.cmake) INCLUDE($ENV{FOAM_TEST_HARNESS_DIR}/CMakeFiles/FOAM_Tutorials.cmake)
# Add a dummy test (/bin/true, just for debugging) # Add a dummy test (/bin/true, just for debugging)
ADD_TEST( ADD_TEST(
OpenFOAM-$ENV{WM_PROJECT_VERSION}_Dummy_Test true foam-extend-$ENV{WM_PROJECT_VERSION}_Dummy_Test true
) )
IF(RUN_FROM_ONE_TIMESTEP) IF(RUN_FROM_ONE_TIMESTEP)

View file

@ -4,10 +4,10 @@
## # The following are required to uses Dart and the Cdash dashboard ## # The following are required to uses Dart and the Cdash dashboard
## ENABLE_TESTING() ## ENABLE_TESTING()
## INCLUDE(CTest) ## INCLUDE(CTest)
set(CTEST_PROJECT_NAME "OpenFOAM-1.6-ext") set(CTEST_PROJECT_NAME "foam-extend-3.0")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
set(CTEST_DROP_METHOD "http") set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net") set(CTEST_DROP_SITE "openfoam-extend.sourceforge.net")
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=OpenFOAM-1.6-ext") set(CTEST_DROP_LOCATION "/CDash/submit.php?project=foam-extend-3.0")
set(CTEST_DROP_SITE_CDASH TRUE) set(CTEST_DROP_SITE_CDASH TRUE)

View file

@ -1,10 +1,10 @@
# /*---------------------------------------------------------------------------*\ # /*-------------------------------------------------------------------------*\
# ========= | # ========= |
# \\ / F ield | foam-extend: Open Source CFD # \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration | # \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright # \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation | # \\/ M anipulation |
# ------------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# License # License
# This file is part of foam-extend. # This file is part of foam-extend.
# #
@ -25,14 +25,14 @@
# CMakeLists.txt file for implementing a test harness for the # CMakeLists.txt file for implementing a test harness for the
# Turbomachinery OSIG test cases # Turbomachinery OSIG test cases
# #
# The results will be submitted to the CDash server identified by the file # The results will be submitted to the CDash server identified by
# CTestConfig.cmake # CTestConfig.cmake
# #
# Author # Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved # Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
# #
# #
# \*---------------------------------------------------------------------------*/ # \*-------------------------------------------------------------------------*/
cmake_minimum_required (VERSION 2.8) cmake_minimum_required (VERSION 2.8)