Skip to content
Merged
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
7 changes: 7 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,13 @@
doc: Test valueFrom on workflow step referencing other inputs
tags: [ step_input, inline_javascript, workflow ]

- job: tests/step-valuefrom-job.json
output: {val: "a_1.b_2\n"}
tool: tests/step-valuefrom6-wf.cwl
id: valuefrom_wf_step_concat
doc: Test valueFrom on workflow step by concatenating different inputs.
tags: [ step_input, inline_javascript, workflow ]

- job: tests/record-output-job.json
output:
"orec": {
Expand Down
41 changes: 41 additions & 0 deletions tests/step-valuefrom6-wf.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.3.0-dev1
requirements:
- class: StepInputExpressionRequirement
- class: InlineJavascriptRequirement

inputs:
a: int
b: int

outputs:
val:
type: string
outputSource: step1/echo_out

steps:
step1:
run:
id: echo
class: CommandLineTool
inputs:
c:
type: string
inputBinding: {}
outputs:
echo_out:
type: string
outputBinding:
glob: "step1_out"
loadContents: true
outputEval: $(self[0].contents)
baseCommand: "echo"
stdout: step1_out

in:
a: a
b: b
c:
valueFrom: "a_$(inputs.a).b_$(inputs.b)"
out: [echo_out]