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
30 # Martin Beaudoin, Hydro-Quebec, 2010. All rights reserved
32 # \*---------------------------------------------------------------------------*/
36 # Environment variable : BREEDER_15_DIR:
38 # This environment variable must point to the location of the Breeder_1.5 section
39 # of your local working copy of the openfoam-extend Subversion repository
41 # Something like this:
43 # export BREEDER_15_DIR=/someAbsolutePath/Breeder_1.5
45 export BREEDER_OSIG_TURBOMACHINERY_DIR
=${BREEDER_15_DIR}/OSIG
/TurboMachinery
47 # This environment variable must point to the location of the test harness main directory
48 export FOAM_TEST_HARNESS_DIR
=$
(dirname $PWD)
50 # First, some sanity checks
53 # We need $BREEDER_15_DIR
54 if [ ! -n "${BREEDER_15_DIR}" ]
57 echo " Missing environment variable \$BREEDER_15_DIR. Stopping."
58 echo " Please make sure to initialize this environment variable to "
59 echo " the directory where you have installed the Breeder_1.5 section "
60 echo " of the openfoam-extend Subversion repository"
64 # We need $WM_PROJECT_DIR
65 if [ -z "$WM_PROJECT_DIR" ]
68 echo " Missing environment variable \$WM_PROJECT_DIR. Stopping."
69 echo " Please make sure your OpenFOAM environment is properly set up."
74 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CMakeLists.txt
]
77 echo " Missing file: CMakeLists.txt under \$BREEDER_15_DIR/OSIG/TurboMachinery. Stopping."
78 echo " A copy of CMakeLists.txt is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
79 echo " Please make a copy of this file under the directory \$BREEDER_15_DIR/OSIG/TurboMachinery."
83 # We also need $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake
84 if [ ! -e $BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake
]
87 echo " Missing file: CTestConfig.cmake under \$BREEDER_OSIG_TURBOMACHINERY_DIR. Stopping."
88 echo " A copy of CTestConfig.cmake for openfoam-extend is available under $FOAM_TEST_HARNESS_DIR/CMakeFiles."
89 echo " For a copy of CTestConfig.cmake for your local CDash server, contact your local CDash admin."
90 echo " Please make a copy of this file under \$BREEDER_OSIG_TURBOMACHINERY_DIR/CTestConfig.cmake."
94 # Make sure the CMake and tutorials runtime files are updated
95 # We need cmake version 2.8.0 at least
96 cmake
$BREEDER_OSIG_TURBOMACHINERY_DIR
98 # All set. Now we can run the available test harness
100 # Invoke make help for the complete list of available commands.
102 # User-demand testing.
103 # Will do: ExperimentalConfigure + ExperimentalBuild + ExperimentalTest + ExperimentalSubmit
107 # Will do: NightlyUpdate + NightylConfigure + NightlyBuild + NightlyTest + NightlySubmit