-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1020 from benfitzpatrick/1014.initial-final-cycle…
…-point-env-tz #1014: correctly format cycle point env vars
- Loading branch information
Showing
9 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
#C: THIS FILE IS PART OF THE CYLC SUITE ENGINE. | ||
#C: Copyright (C) 2008-2014 Hilary Oliver, NIWA | ||
#C: | ||
#C: This program is free software: you can redistribute it and/or modify | ||
#C: it under the terms of the GNU General Public License as published by | ||
#C: the Free Software Foundation, either version 3 of the License, or | ||
#C: (at your option) any later version. | ||
#C: | ||
#C: This program is distributed in the hope that it will be useful, | ||
#C: but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#C: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#C: GNU General Public License for more details. | ||
#C: | ||
#C: You should have received a copy of the GNU General Public License | ||
#C: along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
#------------------------------------------------------------------------------- | ||
# job script torture test and check jobscript is generated correctly | ||
. $(dirname $0)/test_header | ||
#------------------------------------------------------------------------------- | ||
set_test_number 4 | ||
#------------------------------------------------------------------------------- | ||
install_suite $TEST_NAME_BASE cycling | ||
#------------------------------------------------------------------------------- | ||
TEST_NAME=$TEST_NAME_BASE-validate | ||
run_ok $TEST_NAME cylc validate $SUITE_NAME | ||
#------------------------------------------------------------------------------- | ||
TEST_NAME=$TEST_NAME_BASE-run | ||
suite_run_ok $TEST_NAME cylc run --reference-test --debug $SUITE_NAME | ||
#------------------------------------------------------------------------------- | ||
TEST_NAME=$TEST_NAME_BASE-foo-jobscript-match | ||
run_ok $TEST_NAME cylc jobscript $SUITE_NAME foo.20140203T00+13 | ||
sed -n '/_POINT=/p' $TEST_NAME.stdout > jobfile | ||
cmp_ok jobfile $TEST_SOURCE_DIR/cycling/foo.ref-jobfile | ||
purge_suite $SUITE_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "Hello from $0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export CYLC_SUITE_FINAL_CYCLE_POINT=20140204T1200+13 | ||
export CYLC_SUITE_INITIAL_CYCLE_POINT=20140201T0500+13 | ||
export CYLC_TASK_CYCLE_POINT=20140203T0000+13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
2014-07-16T12:18:22+01 INFO - Thread-2 start (Event Handlers) | ||
2014-07-16T12:18:22+01 INFO - Thread-3 start (Poll & Kill Commands) | ||
2014-07-16T12:18:22+01 INFO - port:7767 | ||
2014-07-16T12:18:22+01 INFO - Suite starting at 2014-07-16T12:18:22+01 | ||
2014-07-16T12:18:22+01 INFO - Log event clock: real time | ||
2014-07-16T12:18:22+01 INFO - Run mode: live | ||
2014-07-16T12:18:22+01 INFO - Start tag: 20140201T0500+13 | ||
2014-07-16T12:18:22+01 INFO - Stop tag: 20140204T1200+13 | ||
2014-07-16T12:18:22+01 INFO - Thread-4 start (Job Submission) | ||
2014-07-16T12:18:22+01 INFO - Thread-5 start (Request Handling) | ||
2014-07-16T12:18:22+01 INFO - Cold Start 20140201T0500+13 | ||
2014-07-16T12:18:22+01 INFO - [foo.20140202T0000+13] -triggered off [] | ||
2014-07-16T12:18:23+01 INFO - [foo.20140202T0000+13] -(current:ready)> foo.20140202T0000+13 submitting now | ||
2014-07-16T12:18:24+01 INFO - [foo.20140202T0000+13] -(current:ready)> foo.20140202T0000+13 submission succeeded | ||
2014-07-16T12:18:24+01 INFO - [foo.20140202T0000+13] -(current:submitted)> foo.20140202T0000+13 submit_method_id=3368 | ||
2014-07-16T12:18:25+01 INFO - [foo.20140202T0000+13] -(current:submitted)> foo.20140202T0000+13 started at 2014-07-16T12:18:24+01 | ||
2014-07-16T12:18:26+01 INFO - [foo.20140203T0000+13] -triggered off [] | ||
2014-07-16T12:18:26+01 INFO - [foo.20140202T0000+13] -(current:running)> foo.20140202T0000+13 succeeded at 2014-07-16T12:18:25+01 | ||
2014-07-16T12:18:27+01 INFO - [foo.20140203T0000+13] -(current:ready)> foo.20140203T0000+13 submitting now | ||
2014-07-16T12:18:27+01 INFO - [foo.20140203T0000+13] -(current:ready)> foo.20140203T0000+13 submission succeeded | ||
2014-07-16T12:18:27+01 INFO - [foo.20140203T0000+13] -(current:submitted)> foo.20140203T0000+13 submit_method_id=3566 | ||
2014-07-16T12:18:28+01 INFO - [foo.20140203T0000+13] -(current:submitted)> foo.20140203T0000+13 started at 2014-07-16T12:18:28+01 | ||
2014-07-16T12:18:29+01 INFO - [foo.20140204T0000+13] -triggered off [] | ||
2014-07-16T12:18:29+01 INFO - [foo.20140203T0000+13] -(current:running)> foo.20140203T0000+13 succeeded at 2014-07-16T12:18:28+01 | ||
2014-07-16T12:18:30+01 INFO - [foo.20140204T0000+13] -(current:ready)> foo.20140204T0000+13 submitting now | ||
2014-07-16T12:18:30+01 INFO - [foo.20140204T0000+13] -(current:ready)> foo.20140204T0000+13 submission succeeded | ||
2014-07-16T12:18:30+01 INFO - [foo.20140204T0000+13] -(current:submitted)> foo.20140204T0000+13 submit_method_id=3780 | ||
2014-07-16T12:18:31+01 INFO - [foo.20140205T0000+13] -holding (beyond suite stop point) 20140204T1200+13 | ||
2014-07-16T12:18:31+01 INFO - [foo.20140204T0000+13] -(current:submitted)> foo.20140204T0000+13 started at 2014-07-16T12:18:31+01 | ||
2014-07-16T12:18:32+01 INFO - [foo.20140204T0000+13] -(current:running)> foo.20140204T0000+13 succeeded at 2014-07-16T12:18:32+01 | ||
2014-07-16T12:18:32+01 INFO - Stopping: | ||
+ all tasks have spawned past the final cycle 20140204T1200+13 | ||
2014-07-16T12:18:33+01 INFO - Thread-2 exit (Event Handlers) | ||
2014-07-16T12:18:33+01 INFO - Thread-3 exit (Poll & Kill Commands) | ||
2014-07-16T12:18:33+01 INFO - Thread-4 exit (Job Submission) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
title = "job script cycling test" | ||
|
||
description = """Test the output of cycling environment variables""" | ||
|
||
[cylc] | ||
cycle point time zone = +13 | ||
[[reference test]] | ||
live mode suite timeout = 0.5 | ||
dummy mode suite timeout = 0.5 | ||
simulation mode suite timeout = 0.5 | ||
|
||
[scheduling] | ||
initial cycle point = 20140201T05 | ||
final cycle point = 20140204T11+12 | ||
[[dependencies]] | ||
[[[T00]]] | ||
graph = "foo" | ||
[runtime] | ||
[[foo]] | ||
initial scripting = echo HELLO FROM INITIAL SCRIPTING | ||
pre-command scripting = echo HELLO FROM PRE-COMMAND SCRIPTING | ||
command scripting = echo HELLO FROM COMMAND SCRIPTING | ||
post-command scripting = echo HELLO FROM POST-COMMAND SCRIPTING | ||
[[[remote]]] | ||
# force use of ssh job submission to disconnect local tasks | ||
# from the submitting suite environment. | ||
host = localhost | ||
|