| 1 |
#!/usr/bin/env bash |
| 2 |
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE. |
| 3 |
# Copyright (C) NIWA & British Crown (Met Office) & Contributors. |
| 4 |
# |
| 5 |
# This program is free software: you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation, either version 3 of the License, or |
| 8 |
# (at your option) any later version. |
| 9 |
# |
| 10 |
# This program is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
# GNU General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
# Test for handling task proxy sequence bounds error. #2735 |
| 19 |
|
| 20 |
. "$(dirname "$0")/test_header" |
| 21 |
set_test_number 4 |
| 22 |
|
| 23 |
cat > flow.cylc <<__END__ |
| 24 |
[scheduler] |
| 25 |
UTC mode = True |
| 26 |
[scheduling] |
| 27 |
initial cycle point = 2000 |
| 28 |
[[graph]] |
| 29 |
R1//1999 = t1 |
| 30 |
[runtime] |
| 31 |
[[t1]] |
| 32 |
script = true |
| 33 |
__END__ |
| 34 |
|
| 35 |
TEST_NAME="${TEST_NAME_BASE}-single" |
| 36 |
run_ok "$TEST_NAME" cylc validate . |
| 37 |
cmp_ok "${TEST_NAME}.stderr" <<'__ERR__' |
| 38 |
WARNING - R1/P0Y/19990101T0000Z: sequence out of bounds for initial cycle point 20000101T0000Z |
| 39 |
__ERR__ |
| 40 |
|
| 41 |
cat > flow.cylc <<__END__ |
| 42 |
[scheduler] |
| 43 |
UTC mode = True |
| 44 |
[scheduling] |
| 45 |
initial cycle point = 2000 |
| 46 |
[[graph]] |
| 47 |
R1//1996, R1//1997, R1//1998, R1//1999 = t1 |
| 48 |
[runtime] |
| 49 |
[[t1]] |
| 50 |
script = true |
| 51 |
__END__ |
| 52 |
|
| 53 |
TEST_NAME="${TEST_NAME_BASE}-multiple" |
| 54 |
run_ok "$TEST_NAME" cylc validate . |
| 55 |
contains_ok "${TEST_NAME}.stderr" <<__ERR__ |
| 56 |
WARNING - multiple sequences out of bounds for initial cycle point 20000101T0000Z: |
| 57 |
${LOG_INDENT}R1/P0Y/19960101T0000Z, R1/P0Y/19970101T0000Z, R1/P0Y/19980101T0000Z, |
| 58 |
${LOG_INDENT}R1/P0Y/19990101T0000Z |
| 59 |
__ERR__ |
| 60 |
|
| 61 |
exit |