Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions _episodes/14-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,22 @@ Now invoke `cwl-runner` with the tool wrapper and the input object on the
command line:

~~~
$ cwltool createfile.cwl echo-job.yml
[job 140528604979344] /home/example$ cat example.conf
CONFIGVAR=Hello world!
$ cwl-runner createfile.cwl echo-job.yml
[job createfile.cwl] /home/example$ cat \
example.conf > /home/example/output.txt
[job createfile.cwl] completed success
{
"example_out": {
"location": "file:///home/example/output.txt",
"basename": "output.txt",
"class": "File",
"checksum": "sha1$5d3f955d1bb862ec618bc2f7ca4c5fa29fa39e89",
"size": 22,
"path": "/home/example/output.txt"
}
}
Final process status is success
{}
$ cat output.txt
CONFIGVAR=Hello world!
~~~
{: .output}
5 changes: 4 additions & 1 deletion _includes/cwl/14-runtime/createfile.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ requirements:

inputs:
message: string
outputs: []
outputs:
example_out:
type: stdout
stdout: output.txt
12 changes: 11 additions & 1 deletion _includes/cwl/conformance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,17 @@
location: Any
size: 36

# Section 14 depends on side-effects
# Section 14
- doc: Test for section 14
job: 14-runtime/echo-job.yml
tool: 14-runtime/createfile.cwl
output:
example_out:
class: File
checksum: sha1$5d3f955d1bb862ec618bc2f7ca4c5fa29fa39e89
basename: output.txt
location: Any
size: 22

# Section 15
- doc: Test for section 15
Expand Down