diff --git a/conformance_tests.yaml b/conformance_tests.yaml index 4762de8..2cad4f7 100644 --- a/conformance_tests.yaml +++ b/conformance_tests.yaml @@ -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": { diff --git a/tests/step-valuefrom6-wf.cwl b/tests/step-valuefrom6-wf.cwl new file mode 100644 index 0000000..54cacd7 --- /dev/null +++ b/tests/step-valuefrom6-wf.cwl @@ -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]