Skip to content

Commit

Permalink
Add a conformance test for MultipleInputFeatureRequirement on Workflo…
Browse files Browse the repository at this point in the history
…w outputs
  • Loading branch information
kinow committed Jun 21, 2022
1 parent 8b7a2d8 commit e64d342
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
13 changes: 12 additions & 1 deletion conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3561,4 +3561,15 @@
`echo a && echo b > out.txt`, but instead will produce the correct `echo a && echo b`,
and capture the output correctly.
tags: [ shell_command, command_line_tool ]


- label: multiple-input-feature-requirement
output: {
"hello_world_in_two_lines": [
"hello\n",
"world\n"
]
}
tool: tests/multiple_input_feature_requirement.cwl
doc: |
MultipleInputFeatureRequirement on workflow outputs.
tags: [ workflow, multiple_input ]
29 changes: 29 additions & 0 deletions tests/multiple_input_feature_requirement.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cwlVersion: v1.2
class: Workflow

requirements:
- class: MultipleInputFeatureRequirement

inputs: []

steps:
step1:
run: echo-tool.cwl
in:
in:
default: hello
out: [out]
step2:
run: echo-tool.cwl
in:
in:
default: world
out: [out]

outputs:
hello_world_in_two_lines:
type:
type: array
items: string
# Only allowed with MultipleInputFeatureRequirement
outputSource: [step1/out, step2/out]

0 comments on commit e64d342

Please sign in to comment.