3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 # + This file is part of enGrid. +
7 # + Copyright 2008,2009 Oliver Gloth +
9 # + enGrid is free software: you can redistribute it and/or modify +
10 # + it under the terms of the GNU General Public License as published by +
11 # + the Free Software Foundation, either version 3 of the License, or +
12 # + (at your option) any later version. +
14 # + enGrid is distributed in the hope that it will be useful, +
15 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
16 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
17 # + GNU General Public License for more details. +
19 # + You should have received a copy of the GNU General Public License +
20 # + along with enGrid. If not, see <http:#www.gnu.org/licenses/>. +
22 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25 # This is a testing script that is run every night to make sure that engrid compiles from scratch with all available configurations.
27 # This script must be run from the "engrid/src" directory.
34 source .
/scripts
/setup_paths.sh engits
yes
36 echo "BUILDING TOOLS":
37 echo "gcc = $(which gcc)"
38 echo "g++ = $(which g++)"
39 echo "qmake = $(which qmake)"
40 echo "make = $(which make)"
48 echo VTKLIBDIR
= $VTKLIBDIR
49 echo VTKINCDIR
= $VTKINCDIR
50 echo CGNSINCDIR
= $CGNSINCDIR
51 echo CGNSLIBDIR
= $CGNSLIBDIR
53 echo LD_LIBRARY_PATH
= $LD_LIBRARY_PATH
55 echo "Building netgen"
56 .
/scripts
/build-nglib.sh
60 MSG
="Building engrid.pro debug version"
62 qmake
&& make distclean
&& qmake engrid.pro
&& make $MAKEOPTIONS debug || FAILURE
=1
69 MSG
="Building engrid.pro.cgns debug version"
71 qmake
&& make distclean
&& qmake engrid.pro.cgns
&& make $MAKEOPTIONS debug || FAILURE
=1
78 MSG
="Building engrid.pro release version"
80 qmake
&& make distclean
&& qmake engrid.pro
&& make $MAKEOPTIONS release || FAILURE
=1
87 MSG
="Building engrid.pro.cgns release version"
89 qmake
&& make distclean
&& qmake engrid.pro.cgns
&& make $MAKEOPTIONS release || FAILURE
=1
96 echo "SUCCESS: Everything compiles."