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 # Set common test settings.
25 if [ -z "${skipflag}" ]; then
26 # create and enter directory for in/output files
29 cat <<_EOF > diag_table.yaml
30 title: test_prepend_date
31 base_date: 1 1 1 0 0 0
33 - file_name: test_non_static
42 - file_name: test_static
53 # remove any existing files that would result in false passes during checks
56 printf "&diag_manager_nml \n use_modern_diag=.true. \n/" |
cat > input.nml
57 test_expect_success
"Running diag_manager and checking that the date was prepended correctly (test $my_test_count)" '
58 mpirun -n 1 ../test_prepend_date
61 cat <<_EOF > diag_table.yaml
62 title: test_prepend_date
63 base_date: 1 1 1 0 0 0
65 - file_name: test_non_static
80 printf "&diag_manager_nml \n use_modern_diag=.true. \n/ \n &test_prepend_date_nml \n pass_diag_time=.false. \n /" |
cat > input.nml
82 test_expect_failure
"Running diag_manager with fields that have a different start time (test $my_test_count)" '
83 mpirun -n 1 ../test_prepend_date