Skip to content

Commit

Permalink
Add a conformance test for MultipleInputFeatureRequirement on Workflo…
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Oct 20, 2022
1 parent 2d4d6d1 commit a39689a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
12 changes: 12 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3570,6 +3570,18 @@
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 ]

- label: js-input-record
# The output does not have the last \n due to the -n passed to echo
output: {
Expand Down
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 a39689a

Please sign in to comment.