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 Turbomachinery OSIG test harness
28 # This script will only initialize the test harness using CMake
31 # Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
33 # \*---------------------------------------------------------------------------*/
37 # Environment variable : BREEDER_15_DIR:
39 # This environment variable must point to the location of the Breeder_1.5 section
40 # of your local working copy of the openfoam-extend Subversion repository
42 # Something like this:
44 # export BREEDER_15_DIR=/someAbsolutePath/Breeder_1.5
46 export BREEDER_OSIG_TURBOMACHINERY_DIR
=${BREEDER_15_DIR}/OSIG
/TurboMachinery
48 # This environment variable must point to the location of the test harness main directory
49 export FOAM_TEST_HARNESS_DIR
=$
(dirname $PWD)
51 # First, some sanity checks
54 # We need $BREEDER_15_DIR
55 if [ ! -n "${BREEDER_15_DIR}" ]
58 echo " Missing environment variable \$BREEDER_15_DIR. Stopping."
59 echo " Please make sure to initialize this environment variable to "
60 echo " the directory where you have installed the Breeder_1.5 section "
61 echo " of the openfoam-extend Subversion repository"
65 # We need $WM_PROJECT_DIR
66 if [ -z "$WM_PROJECT_DIR" ]
69 echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
70 echo " Please make sure your OpenFOAM environment is properly set up."
75 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CMakeLists.txt
]
78 echo " Missing file: CMakeLists.txt under \$BREEDER_15_DIR/OSIG/TurboMachinery. Stopping."
79 echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
80 echo " Please make a copy of this file under the directory \$BREEDER_15_DIR/OSIG/TurboMachinery."
84 # We also need $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake
85 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake
]
88 echo " Missing file: CTestConfig.cmake under \$BREEDER_OSIG_TURBOMACHINERY_DIR. Stopping."
89 echo " A copy of CTestConfig.cmake for openfoam-extend is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
90 echo " For a copy of CTestConfig.cmake for your local CDash server, contact your local CDash admin."
91 echo " Please make a copy of this file under \$BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake."
95 # Make sure the CMake and tutorials runtime files are updated
96 # We need cmake version 2.8.0 at least
97 cmake
$BREEDER_OSIG_TURBOMACHINERY_DIR
99 # All set. Now we can run the available test harness
101 # Invoke make help for the complete list of available commands.
103 # User-demand testing.
104 # Will do: ExperimentalConfigure + ExperimentalBuild + ExperimentalTest + ExperimentalSubmit
108 # Will do: NightlyUpdate + NightylConfigure + NightlyBuild + NightlyTest + NightlySubmit