Skip to content

Commit 779c2d4

Browse files
author
Peter Amstutz
committed
Add test for embedded subworkflow
1 parent 1c05584 commit 779c2d4

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env cwl-runner
2+
class: Workflow
3+
cwlVersion: v1.0
4+
5+
inputs:
6+
file1: File
7+
8+
outputs:
9+
count_output:
10+
type: int
11+
outputSource: step1/count_output
12+
13+
requirements:
14+
- class: SubworkflowFeatureRequirement
15+
16+
steps:
17+
step1:
18+
in:
19+
file1: file1
20+
out: [count_output]
21+
run:
22+
class: Workflow
23+
inputs:
24+
file1: File
25+
outputs:
26+
count_output:
27+
type: int
28+
outputSource: step2/output
29+
steps:
30+
step1:
31+
run: wc-tool.cwl
32+
in: {file1: file1}
33+
out: [output]
34+
step2:
35+
run: parseInt-tool.cwl
36+
in: {file1: step1/output}
37+
out: [output]

0 commit comments

Comments
 (0)