Debian Codegraph @

tests/functional/cylc-show/05-complex.t

raw
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 cylc show for a basic task.
19 . "$(dirname "$0")/test_header"
20 #-------------------------------------------------------------------------------
21 set_test_number 3
22 #-------------------------------------------------------------------------------
23 install_workflow "${TEST_NAME_BASE}" "${TEST_NAME_BASE}"
24 TEST_SHOW_OUTPUT_PATH="$PWD/${TEST_NAME_BASE}-show.stdout"
25 #-------------------------------------------------------------------------------
26 TEST_NAME="${TEST_NAME_BASE}-validate"
27 run_ok "${TEST_NAME}" cylc validate \
28 --set="TEST_OUTPUT_PATH='$TEST_SHOW_OUTPUT_PATH'" "${WORKFLOW_NAME}"
29 #-------------------------------------------------------------------------------
30 TEST_NAME="${TEST_NAME_BASE}-run"
31 run_ok "${TEST_NAME}" cylc play \
32 --no-detach --set="TEST_OUTPUT_PATH='$TEST_SHOW_OUTPUT_PATH'" "${WORKFLOW_NAME}"
33 #-------------------------------------------------------------------------------
34 TEST_NAME="${TEST_NAME_BASE}-show"
35 contains_ok "${TEST_SHOW_OUTPUT_PATH}" << '__OUT__'
36 title: (not given)
37 description: (not given)
38 URL: (not given)
39 state: running
40 prerequisites: ('⨯': not satisfied)
41 ✓ 1 & 2 & (3 | (4 & 5)) & 0
42 ✓ 0 = 19991231T0000Z/f succeeded
43 ✓ 1 = 20000101T0000Z/a succeeded
44 ✓ 2 = 20000101T0000Z/b succeeded
45 ✓ 3 = 20000101T0000Z/c succeeded
46 ✓ 4 = 20000101T0000Z/d succeeded
47 ✓ 5 = 20000101T0000Z/e succeeded
48 outputs: ('⨯': not completed)
49 ⨯ 20000101T0000Z/f expired
50 ✓ 20000101T0000Z/f submitted
51 ⨯ 20000101T0000Z/f submit-failed
52 ✓ 20000101T0000Z/f started
53 ⨯ 20000101T0000Z/f succeeded
54 ⨯ 20000101T0000Z/f failed
55 output completion: incomplete
56 ⨯ ┆ succeeded
57 19991231T0000Z/f succeeded
58 20000101T0000Z/a succeeded
59 20000101T0000Z/b succeeded
60 20000101T0000Z/c succeeded
61 20000101T0000Z/d succeeded
62 20000101T0000Z/e succeeded
63 title: (not given)
64 description: (not given)
65 URL: (not given)
66 state: running
67 prerequisites: ('⨯': not satisfied)
68 ✓ 1 & 2 & (3 | (4 & 5)) & 0
69 ✓ 0 = 20000101T0000Z/f succeeded
70 ✓ 1 = 20000102T0000Z/a succeeded
71 ✓ 2 = 20000102T0000Z/b succeeded
72 ✓ 3 = 20000102T0000Z/c succeeded
73 ✓ 4 = 20000102T0000Z/d succeeded
74 ✓ 5 = 20000102T0000Z/e succeeded
75 outputs: ('⨯': not completed)
76 ⨯ 20000102T0000Z/f expired
77 ✓ 20000102T0000Z/f submitted
78 ⨯ 20000102T0000Z/f submit-failed
79 ✓ 20000102T0000Z/f started
80 ⨯ 20000102T0000Z/f succeeded
81 ⨯ 20000102T0000Z/f failed
82 output completion: incomplete
83 ⨯ ┆ succeeded
84 20000101T0000Z/f succeeded
85 20000102T0000Z/a succeeded
86 20000102T0000Z/b succeeded
87 20000102T0000Z/c succeeded
88 20000102T0000Z/d succeeded
89 20000102T0000Z/e succeeded
90 __OUT__
91 #-------------------------------------------------------------------------------
92 purge