fix test.sh
[LbmBenchmarkKernelsPublic.git] / src / test.sh
CommitLineData
10988083
MW
1#!/bin/bash -l
2# --------------------------------------------------------------------------
3#
4# Copyright
5# Markus Wittmann, 2016-2017
6# RRZE, University of Erlangen-Nuremberg, Germany
7# markus.wittmann -at- fau.de or hpc -at- rrze.fau.de
8#
9# Viktor Haag, 2016
10# LSS, University of Erlangen-Nuremberg, Germany
11#
12# This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels).
13#
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.
18#
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.
23#
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/>.
26#
27# --------------------------------------------------------------------------
28set -u
29set -e
30
31XTag="-test"
32
33Build=release
34
483c13d2
MW
35if [ "$#" -lt 1 ]; then
36 echo "Compiles and runs several test cases."
37 echo ""
38 echo "Usage: test.sh <config>"
39 echo ""
40 echo "Select a configuration via config: linux-gcc or linux-intel."
41 exit 1
42fi
43
44if [ "$1" == "-h" -o "$1" == "-help" -o "$1" == "--help" ]; then
45 echo "Compiles and runs several test cases."
46 echo ""
47 echo "Usage: test.sh <config>"
48 echo ""
49 echo "Select a configuration via config: linux-gcc or linux-intel."
50 exit 1
51fi
52
53Config="$1"
10988083
MW
54
55make clean-all
56make -j CONFIG=$Config TAG=$XTag-debug
57make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v
58make -j CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
59
60BinaryV="../bin/lbmbenchk-$Config-$Build$XTag-v"
61BinaryB="../bin/lbmbenchk-$Config-$Build$XTag-b"
62
63./test-verification.sh "$BinaryV"
This page took 0.067041 seconds and 5 git commands to generate.