Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test on optional input in a scatter step #63

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,15 @@
doc: Test optional integer workflow inputs (unspecified)
tags: [ workflow, inline_javascript, expression_tool ]

- tool: tests/optional-input-scatter.cwl
job: tests/scatter-job1.json
output:
out: ["foo one", "foo two", "foo three", "foo four"]
id: optional_input_scatter
doc: |
Test optional step input with single scatter parameter
tags: [ scatter, workflow ]

- job: tests/io-int.json
output: {"o": 10}
tool: tests/io-int-default-wf.cwl
Expand Down
40 changes: 40 additions & 0 deletions tests/optional-input-scatter.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.3.0-dev1
class: Workflow
inputs:
inp: string[]
outputs:
out:
type: string[]
outputSource: step1/echo_out

requirements:
- class: ScatterFeatureRequirement

steps:
step1:
in:
echo_in: inp
out: [echo_out]
scatter: echo_in
run:
class: CommandLineTool
inputs:
echo_in:
type: string
inputBinding: {}
input_2:
type: File?
inputBinding: {}
outputs:
echo_out:
type: string
outputBinding:
glob: "step1_out"
loadContents: true
outputEval: $(self[0].contents)
baseCommand: "echo"
arguments:
- "-n"
- "foo"
stdout: "step1_out"
Loading