Skip to content

Commit 7679adb

Browse files
authored
Merge pull request #308 from common-workflow-language/embedded-subworkflow-test
Add test for embedded subworkflow
2 parents e22a9c2 + 1582677 commit 7679adb

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,3 +883,8 @@
883883
"size": 12010
884884
tool: v1.0/initialworkdirrequirement-docker-out.cwl
885885
doc: Test output of InitialWorkDir
886+
887+
- job: v1.0/wc-job.json
888+
output: {count_output: 16}
889+
tool: v1.0/count-lines10-wf.cwl
890+
doc: Test embedded subworkflow

v1.0/v1.0/count-lines10-wf.cwl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env cwl-runner
2+
class: Workflow
3+
cwlVersion: v1.0
4+
inputs:
5+
file1: File
6+
outputs:
7+
count_output: {type: int, outputSource: step1/count_output}
8+
requirements:
9+
SubworkflowFeatureRequirement: {}
10+
steps:
11+
step1:
12+
in: {file1: file1}
13+
out: [count_output]
14+
run:
15+
class: Workflow
16+
inputs:
17+
file1: File
18+
outputs:
19+
count_output: {type: int, outputSource: step2/output}
20+
steps:
21+
step1: {run: wc-tool.cwl, in: {file1: file1}, out: [output]}
22+
step2: {run: parseInt-tool.cwl, in: {file1: step1/output}, out: [output]}

0 commit comments

Comments
 (0)