2 # --------------------------------------------------------------------------
5 # Markus Wittmann, 2016-2017
6 # RRZE, University of Erlangen-Nuremberg, Germany
7 # markus.wittmann -at- fau.de or hpc -at- rrze.fau.de
10 # LSS, University of Erlangen-Nuremberg, Germany
12 # This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels).
14 # LbmBenchKernels is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
19 # LbmBenchKernels is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
24 # You should have received a copy of the GNU General Public License
25 # along with LbmBenchKernels. If not, see <http://www.gnu.org/licenses/>.
27 # --------------------------------------------------------------------------
33 # How many parallel processes during make.
38 if [ "$#" -lt 1 ]; then
39 echo "Compiles and runs several test cases."
41 echo "Usage: test.sh <config>"
43 echo "Select a configuration via config: linux-gcc or linux-intel."
47 if [ "$1" == "-h" -o "$1" == "-help" -o "$1" == "--help" ]; then
48 echo "Compiles and runs several test cases."
50 echo "Usage: test.sh <config>"
52 echo "Select a configuration via config: linux-gcc or linux-intel."
60 make -j $NProc PRECISION=dp CONFIG=$Config TAG=$XTag-debug
61 make -j $NProc PRECISION=dp CONFIG=$Config BUILD=$Build TAG=$XTag-v VERIFICATION=on
62 make -j $NProc PRECISION=dp CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
64 BinaryVDp="../bin/lbmbenchk-$Config-$Build-dp$XTag-v"
65 BinaryBDp="../bin/lbmbenchk-$Config-$Build-dp$XTag-b"
68 make -j $NProc PRECISION=sp CONFIG=$Config TAG=$XTag-debug
69 make -j $NProc PRECISION=sp CONFIG=$Config BUILD=$Build TAG=$XTag-v VERIFICATION=on
70 make -j $NProc PRECISION=sp CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
72 BinaryVSp="../bin/lbmbenchk-$Config-$Build-sp$XTag-v"
73 BinaryBSp="../bin/lbmbenchk-$Config-$Build-sp$XTag-b"
77 echo "# [test.sh] ./test-verification.sh \"$BinaryVDp\""
80 ./test-verification.sh "$BinaryVDp"
85 echo "# [test.sh] ./test-verification.sh \"$BinaryVSp\""
88 ./test-verification.sh "$BinaryVSp"
92 ResultDp="errors occurred"
93 ResultSp="errors occurred"
95 if [ "$ExitCodeDp" == "0" ]; then ResultDp="OK"; fi
96 if [ "$ExitCodeSp" == "0" ]; then ResultSp="OK"; fi
99 echo "# [test.sh] test double precision: $ResultDp single precision: $ResultSp"
104 if [ "$ExitCodeDp" != 0 -o "$ExitCodeSp" != 0 ]; then