2 # /*-------------------------------------------------------------------------*\
4 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
6 # \\ / A nd | Copyright held by original author
8 # -----------------------------------------------------------------------------
10 # This file is part of OpenFOAM.
12 # OpenFOAM is free software; you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by the
14 # Free Software Foundation; either version 2 of the License, or (at your
15 # option) any later version.
17 # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
18 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 # You should have received a copy of the GNU General Public License
23 # along with OpenFOAM; if not, write to the Free Software Foundation,
24 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 # Allrun file for running the OpenFOAM test harness
30 # Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
33 # \*-------------------------------------------------------------------------*/
37 # This environment variable must point to the location of the test harness
39 export FOAM_TEST_HARNESS_DIR
=$
(dirname $PWD)
41 # First, some sanity checks
44 # We need $WM_PROJECT_DIR
45 if [ -z "$WM_PROJECT_DIR" ]
48 echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
49 echo " Please make sure your OpenFOAM environment is properly set up."
53 # We need $WM_PROJECT_DIR/CMakeLists.txt
54 if [ ! -e $WM_PROJECT_DIR/CMakeLists.txt
]
57 echo " Missing file: CMakeLists.txt under \$WM_PROJECT_DIR. Stopping."
58 echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
59 echo " Please make a copy of this file under your OpenFOAM installation directory \$WM_PROJECT_DIR."
63 # We also need $WM_PROJECT_DIR/CTestConfig.cmake
64 if [ ! -e $WM_PROJECT_DIR/CTestConfig.cmake
]
67 echo " Missing file: CTestConfig.cmake under \$WM_PROJECT_DIR. Stopping."
68 echo " A copy of CTestConfig.cmake for openfoam-extend is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
69 echo " For a copy of CTestConfig.cmake for your local CDash server, contact your local CDash admin."
70 echo " Please make a copy of this file under \$WM_PROJECT_DIR/CTestConfig.cmake."
74 # Make sure the CMake and tutorials runtime files are updated
75 # We need cmake version 2.8.0 at least
78 # All set. Now we can run the available test harness
80 # Invoke make help for the complete list of available commands.
82 # User-demand testing.
83 # Will do: ExperimentalConfigure + ExperimentalBuild + ExperimentalTest + ExperimentalSubmit
87 # Will do: NightlyUpdate + NightylConfigure + NightlyBuild + NightlyTest + NightlySubmit