Skip to content

Commit 179835b

Browse files
authored
Merge pull request #319 from common-workflow-language/test-cwl-out2
Add additional test for cwl.output.json behavior.
2 parents a217bb6 + ed40737 commit 179835b

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,23 @@
659659
}
660660
}
661661
tool: v1.0/test-cwl-out.cwl
662-
doc: Test support for reading cwl.output.json when running in Docker container
662+
doc: |
663+
Test support for reading cwl.output.json when running in a Docker container
664+
and just "path" is provided.
665+
666+
- job: v1.0/empty.json
667+
output: {
668+
"foo": {
669+
"location": "foo",
670+
"class": "File",
671+
"checksum": "sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
672+
"size": 4
673+
}
674+
}
675+
tool: v1.0/test-cwl-out2.cwl
676+
doc: |
677+
Test support for reading cwl.output.json when running in a Docker container
678+
and just "location" is provided.
663679
664680
- job: v1.0/abc.json
665681
output:

v1.0/v1.0/test-cwl-out2.cwl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.0
3+
requirements:
4+
- class: ShellCommandRequirement
5+
hints:
6+
DockerRequirement:
7+
dockerPull: "debian:wheezy"
8+
9+
inputs: []
10+
11+
outputs:
12+
- id: foo
13+
type: File
14+
15+
arguments:
16+
- valueFrom: >
17+
echo foo > foo && echo '{"foo": {"location": "file://$(runtime.outdir)/foo", "class": "File"} }' > cwl.output.json
18+
shellQuote: false

0 commit comments

Comments
 (0)