3 #***********************************************************************
4 #* GNU Lesser General Public License
6 #* This file is part of the GFDL Flexible Modeling System (FMS).
8 #* FMS is free software: you can redistribute it and/or modify it under
9 #* the terms of the GNU Lesser General Public License as published by
10 #* the Free Software Foundation, either version 3 of the License, or (at
11 #* your option) any later version.
13 #* FMS is distributed in the hope that it will be useful, but WITHOUT
14 #* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 #* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 #* You should have received a copy of the GNU Lesser General Public
19 #* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
20 #***********************************************************************
22 # Copyright 2021 Seth Underwood
24 # Set common test settings.
27 # Prepare the directory to run the tests.
30 TESTS_SUCCESS
='--get-axis-modulo --get-axis-modulo-times --get-axis-cart --lon-in-range --frac-index --nearest-index-increasing --nearest-index-decreasing --axis-edges-increasing --axis_edges-decreasing --tranlon --interp-1d-1d --interp-1d-2d --interp-1d-3d'
31 TESTS_FAIL
='--frac-index-fail --nearest-index-fail'
33 # TODO: Enable these tests after tranlon's memory corruption bug is fixed.
34 SKIP_TESTS
="test_axis_utils2.19 test_axis_utils2.20"
38 for t
in $TESTS_SUCCESS
40 r4cmd
="./test_axis_utils_r4 $t"
41 r8cmd
="./test_axis_utils_r8 $t"
43 test_expect_success
"Testing axis utils: $r4cmd" "mpirun -n 1 $r4cmd"
44 test_expect_success
"Testing axis utils: $r8cmd" "mpirun -n 1 $r8cmd"
49 r4cmd
="./test_axis_utils_r4 $t"
50 r8cmd
="./test_axis_utils_r8 $t"
52 test_expect_failure
"Testing axis utils: $r4cmd" "mpirun -n 1 $r4cmd"
53 test_expect_failure
"Testing axis utils: $r8cmd" "mpirun -n 1 $r8cmd"