Initial update of test harness.

This commit is contained in:
Hrvoje Jasak 2013-12-16 14:35:43 +00:00
parent ba3d7f689b
commit 45fc0403b3
19 changed files with 62 additions and 67 deletions

View file

@ -1,10 +1,10 @@
# /*---------------------------------------------------------------------------*\
# /*-------------------------------------------------------------------------*\
# ========= |
# \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation |
# -------------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# License
# This file is part of foam-extend.
#
@ -27,17 +27,11 @@
#
# Author:
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
# \*---------------------------------------------------------------------------*/
#
# \*-------------------------------------------------------------------------*/
MAJOR WARNING: THIS TEST HARNESS IS NOT READY YET FOR OPENFOAM-1.6-EXT
----------------------------------------------------------------------
Warning #1: Make sure your OpenFOAM environment is properly initialized before
Warning #1: Make sure your FOAM environment is properly initialized before
running the test harness.
Warning #2: Make sure to create an environment variable called $BREEDER_15_DIR

View file

@ -23,7 +23,7 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM Turbomachinery OSIG test harness
# Allrun file for running the FOAM Turbomachinery OSIG test harness
# This script will only initialize the test harness using CMake
#
# Author
@ -66,7 +66,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi

View file

@ -23,7 +23,7 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM Turbomachinery OSIG test harness
# Allrun file for running the FOAM Turbomachinery OSIG test harness
#
# Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
@ -65,7 +65,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi

View file

@ -1,11 +1,11 @@
#!/bin/bash
# /*---------------------------------------------------------------------------*\
# /*-------------------------------------------------------------------------*\
# ========= |
# \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation |
# -------------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# License
# This file is part of foam-extend.
#
@ -23,12 +23,12 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM Turbomachinery OSIG test harness
# Allrun file for running the FOAM Turbomachinery OSIG test harness
#
# Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
#
# \*---------------------------------------------------------------------------*/
# \*-------------------------------------------------------------------------*/
#set -x
@ -65,7 +65,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi

View file

@ -1,15 +1,15 @@
Description
===========
This part of the repository is for OpenFOAM test harnesses.
This part of the repository is for FOAM test harnesses.
Directory Structure
===================
OpenFOAM : CMake/CTest scripts for compilation and execution test harness for OpenFOAM.
OpenFOAM/1.6-ext : Test harness for OpenFOAM version 1.6-ext. See the file OpenFOAM/1.6-ext/README.txt for more information
FOAM : CMake/CTest scripts for compilation and execution test harness for FOAM.
foam-extend-3.0 : Test harness for foam-extend version 3.0. See the file foam-extend-3.0/README.txt for more information
OSIG : CMake/CTest scripts for OpenFOAM Special Interest Group (OSIG) test harness
OSIG : CMake/CTest scripts for FOAM Special Interest Group (OSIG) test harness
OSIG/TurboMachinery : Test harness for the TurboMachinery OSIG. See the file OSIG/Turbomachinery/README.txt for more information.
@ -21,7 +21,7 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
git checkout master # For Hrv master branch
2: Make sure your OpenFOAM environment is properly configured to run OpenFOAM.
2: Make sure your FOAM environment is properly configured to run FOAM.
3: The minimal cmake version number for running the test loop is 2.8.0. Make sure you are there.
@ -33,9 +33,9 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
ls $WM_PROJECT_DIR/testHarness # Checking availability of testHarness under this branch
5: move to the runDir directory for the OpenFOAM test harness
5: move to the runDir directory for the FOAM test harness
cd $WM_PROJECT_DIR/testHarness/OpenFOAM/1.6-ext/runDir
cd $WM_PROJECT_DIR/testHarness/foam-extend/3.0/runDir
6: Normally, if using the master branch, everything should already be setup for you to run the test harness.
@ -47,7 +47,7 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
7: Next, running the test loop is pretty simple:
cd $WM_PROJECT_DIR/testHarness/OpenFOAM/1.6-ext/runDir # you should already be there...
cd $WM_PROJECT_DIR/testHarness/foam-extend-3.0/runDir # you should already be there...
./Allclean
./Allrun_Experimental
@ -55,7 +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
URL : http://openfoam-extend.sourceforge.net/CDash/index.php?project=foam-extend-3.0
9: You can customize your system identifier on the dashboard using the environment variable $CDASH_SUBMIT_LOCAL_HOST_ID.
@ -67,7 +67,7 @@ Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
NB: Please no "forward slash" or "/" in the system ID; it looks like CDash will choke on this.
10: In general, see the file $WM_PROJECT_DIR/testHarness/OpenFOAM/1.6-ext/README.txt for the necessary information about running the
10: In general, see the file $WM_PROJECT_DIR/testHarness/foam-extend/3.0/README.txt for the necessary information about running the
test loop.

View file

@ -23,7 +23,7 @@
#
# Description
# 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
# CTestConfig.cmake
@ -36,7 +36,7 @@
cmake_minimum_required (VERSION 2.8)
PROJECT(OpenFOAM_1.6-ext)
PROJECT(foam-extend-3.0)
#-----------------------------------------------------------------------------
# Initialization of CTest specific variables
@ -65,10 +65,10 @@ SET(
CACHE STRING "Name of the local site"
)
#Grab the OpenFOAM installation directory.
#Grab the FOAM installation directory.
SET(
OF_ROOT $ENV{WM_PROJECT_DIR}
CACHE INTERNAL "OpenFOAM root directory."
CACHE INTERNAL "FOAM root directory."
)
# Construct the build name.
@ -144,20 +144,20 @@ string(REPLACE "/" "_" SITE ${SITE})
# Build section
#-----------------------------------------------------------------------------
# Compile OpenFOAM, libs and apps
add_custom_target (OpenFOAM-$ENV{WM_PROJECT_VERSION} ALL
# Compile FOAM, libs and apps
add_custom_target (foam-extend-$ENV{WM_PROJECT_VERSION} ALL
${OF_ROOT}/Allwmake
)
set_property(
TARGET OpenFOAM-$ENV{WM_PROJECT_VERSION}
PROPERTY LABELS OpenFOAM-$ENV{WM_PROJECT_VERSION}
TARGET foam-extend-$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 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
)
@ -191,15 +191,15 @@ IF(BUILD_TESTING)
SET(testIdSuffix "_oneTimeStep")
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_TEST(
OpenFOAM-$ENV{WM_PROJECT_VERSION}_Dummy_Test true
foam-extend-$ENV{WM_PROJECT_VERSION}_Dummy_Test true
)
IF(RUN_FROM_ONE_TIMESTEP)

View file

@ -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")
set(CTEST_PROJECT_NAME "foam-extend-3.0")
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")
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=foam-extend-3.0")
set(CTEST_DROP_SITE_CDASH TRUE)

View file

@ -1,10 +1,10 @@
# /*---------------------------------------------------------------------------*\
# /*-------------------------------------------------------------------------*\
# ========= |
# \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation |
# -------------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# License
# This file is part of foam-extend.
#
@ -22,12 +22,12 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# CMake/CTest script for running the OpenFOAM tutorials
# CMake/CTest script for running the FOAM tutorials
#
# Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
#
# \*---------------------------------------------------------------------------*/
# \*-------------------------------------------------------------------------*/
# Take care of tests specific variables
IF(NOT DEFINED testIdSuffix)
@ -40,7 +40,7 @@ ENDIF(NOT DEFINED testRunTimeDirectory)
# Use the current directory for running the test cases
SET (TEST_CASE_DIR $ENV{PWD}/${testRunTimeDirectory}
CACHE INTERNAL "OpenFOAM test case directory."
CACHE INTERNAL "FOAM test case directory."
)
# Create the runTime directory for the test cases

View file

@ -1,10 +1,10 @@
# /*---------------------------------------------------------------------------*\
# /*-------------------------------------------------------------------------*\
# ========= |
# \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation |
# -------------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# License
# This file is part of foam-extend.
#
@ -22,13 +22,14 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description:
# README file for the CMake/CTest/CDash test harness for OpenFOAM.
README file for the CMake/CTest/CDash test harness for FOAM.
#
# Author:
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
# \*---------------------------------------------------------------------------*/
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved.
#
# \*-------------------------------------------------------------------------*/
Warning #1: Make sure your OpenFOAM environment is properly initialized before
Warning #1: Make sure your FOAM environment is properly initialized before
running the test harness.
Warning #2: It is recommended to use cmake version 2.8.0 or newer for
@ -73,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
http://openfoam-extend.sourceforge.net/CDash/index.php?project=foam-extend-3.0

View file

@ -23,7 +23,7 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM test harness
# Allrun file for running the FOAM test harness
# This script will only initialize the test harness using CMake
#
# Author
@ -46,7 +46,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi
@ -56,7 +56,7 @@ then
echo "Warning:"
echo " Missing file: CMakeLists.txt under \$WM_PROJECT_DIR. Stopping."
echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
echo " Please make a copy of this file under your OpenFOAM installation directory \$WM_PROJECT_DIR."
echo " Please make a copy of this file under your FOAM installation directory \$WM_PROJECT_DIR."
exit -1
fi

View file

@ -23,7 +23,7 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM test harness
# Allrun file for running the FOAM test harness
#
# Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
@ -45,7 +45,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi
@ -55,7 +55,7 @@ then
echo "Warning:"
echo " Missing file: CMakeLists.txt under \$WM_PROJECT_DIR. Stopping."
echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
echo " Please make a copy of this file under your OpenFOAM installation directory \$WM_PROJECT_DIR."
echo " Please make a copy of this file under your FOAM installation directory \$WM_PROJECT_DIR."
exit -1
fi

View file

@ -23,7 +23,7 @@
# along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
#
# Description
# Allrun file for running the OpenFOAM test harness
# Allrun file for running the FOAM test harness
#
# Author
# Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
@ -45,7 +45,7 @@ if [ -z "$WM_PROJECT_DIR" ]
then
echo "Warning:"
echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
echo " Please make sure your OpenFOAM environment is properly set up."
echo " Please make sure your FOAM environment is properly set up."
exit -1
fi
@ -55,7 +55,7 @@ then
echo "Warning:"
echo " Missing file: CMakeLists.txt under \$WM_PROJECT_DIR. Stopping."
echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
echo " Please make a copy of this file under your OpenFOAM installation directory \$WM_PROJECT_DIR."
echo " Please make a copy of this file under your FOAM installation directory \$WM_PROJECT_DIR."
exit -1
fi