Skip to content

Commit

Permalink
Add test for embedded subworkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Amstutz committed Sep 8, 2016
1 parent 1c05584 commit 779c2d4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v1.0/conformance_test_v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -883,3 +883,8 @@
"size": 12010
tool: v1.0/initialworkdirrequirement-docker-out.cwl
doc: Test output of InitialWorkDir

- job: v1.0/wc-job.json
output: {count_output: 16}
tool: v1.0/count-lines10-wf.cwl
doc: Test embedded subworkflow
37 changes: 37 additions & 0 deletions v1.0/v1.0/count-lines10-wf.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0

inputs:
file1: File

outputs:
count_output:
type: int
outputSource: step1/count_output

requirements:
- class: SubworkflowFeatureRequirement

steps:
step1:
in:
file1: file1
out: [count_output]
run:
class: Workflow
inputs:
file1: File
outputs:
count_output:
type: int
outputSource: step2/output
steps:
step1:
run: wc-tool.cwl
in: {file1: file1}
out: [output]
step2:
run: parseInt-tool.cwl
in: {file1: step1/output}
out: [output]

0 comments on commit 779c2d4

Please sign in to comment.