Skip to content

Commit

Permalink
Merge pull request common-workflow-language#308 from common-workflow-…
Browse files Browse the repository at this point in the history
…language/embedded-subworkflow-test

Add test for embedded subworkflow
  • Loading branch information
tetron committed Sep 12, 2016
2 parents e22a9c2 + 1582677 commit 7679adb
Show file tree
Hide file tree
Showing 2 changed files with 27 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
22 changes: 22 additions & 0 deletions v1.0/v1.0/count-lines10-wf.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env cwl-runner
class: Workflow
cwlVersion: v1.0
inputs:
file1: File
outputs:
count_output: {type: int, outputSource: step1/count_output}
requirements:
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 7679adb

Please sign in to comment.