Skip to content

Commit 9ba0d38

Browse files
author
Peter Amstutz
committed
Add test using value of inputs post-scatter.
1 parent 41c119b commit 9ba0d38

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

draft-4/conformance_test_draft-4.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,12 @@
673673
tool: "draft-4/scatter-valuefrom-wf4.cwl#main"
674674
doc: Test workflow scatter with two scatter parameters and dotproduct join method and valueFrom on step input
675675

676+
- job: draft-4/scatter-valuefrom-job1.json
677+
output:
678+
out: ["foo one one", "foo two two", "foo three three", "foo four four"]
679+
tool: draft-4/scatter-valuefrom-wf5.cwl
680+
doc: Test workflow scatter with single scatter parameter and valueFrom on step input
681+
676682
- job: draft-4/conflict-job.json
677683
output: {
678684
"fileout": {
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: cwl:draft-4.dev3
3+
class: Workflow
4+
inputs:
5+
inp:
6+
type:
7+
type: array
8+
items:
9+
type: record
10+
name: instr
11+
fields:
12+
- name: instr
13+
type: string
14+
outputs:
15+
out:
16+
type:
17+
type: array
18+
items: string
19+
outputSource: step1/echo_out
20+
21+
requirements:
22+
- class: ScatterFeatureRequirement
23+
- class: StepInputExpressionRequirement
24+
25+
steps:
26+
step1:
27+
in:
28+
echo_in:
29+
source: inp
30+
valueFrom: $(self.instr)
31+
first:
32+
source: inp
33+
valueFrom: $(inputs.echo_in.instr)
34+
out: [echo_out]
35+
scatter: echo_in
36+
run:
37+
class: CommandLineTool
38+
inputs:
39+
first:
40+
type: string
41+
inputBinding:
42+
position: 1
43+
echo_in:
44+
type: string
45+
inputBinding:
46+
position: 2
47+
outputs:
48+
echo_out:
49+
type: string
50+
outputBinding:
51+
glob: "step1_out"
52+
loadContents: true
53+
outputEval: $(self[0].contents)
54+
baseCommand: "echo"
55+
arguments:
56+
- "-n"
57+
- "foo"
58+
stdout: "step1_out"

0 commit comments

Comments
 (0)