Skip to content

Commit

Permalink
Merge pull request common-workflow-language#314 from common-workflow-…
Browse files Browse the repository at this point in the history
…language/test-requirements-on-steps

Add test for requirements/hints on workflow steps.
  • Loading branch information
tetron committed Sep 15, 2016
2 parents 7679adb + 8cad6f1 commit e831c20
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
10 changes: 10 additions & 0 deletions v1.0/conformance_test_v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@
tool: v1.0/env-wf2.cwl
doc: Test requirements override hints

- job: v1.0/env-job.json
output:
out:
class: File
checksum: sha1$cdc1e84968261d6a7575b5305945471f8be199b6
location: out
size: 9
tool: v1.0/env-wf3.cwl
doc: Test requirements on workflow steps

- job: v1.0/empty.json
output: {count_output: 16}
tool: v1.0/count-lines9-wf.cwl
Expand Down
4 changes: 3 additions & 1 deletion v1.0/v1.0/cat5-tool.cwl
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/env cwl-runner
$namespaces:
ex: http://example.com/
cwlVersion: v1.0
class: CommandLineTool
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
hints:
DockerRequirement:
dockerPull: "debian:wheezy"
BlibberBlubberFakeRequirement:
ex:BlibberBlubberFakeRequirement:
fakeField: fraggleFroogle
inputs:
file1:
Expand Down
3 changes: 1 addition & 2 deletions v1.0/v1.0/env-wf1.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ outputs:
outputSource: step1/out

requirements:
- class: SubworkflowFeatureRequirement
- class: EnvVarRequirement
EnvVarRequirement:
envDef:
TEST_ENV: override

Expand Down
3 changes: 1 addition & 2 deletions v1.0/v1.0/env-wf2.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ outputs:
outputSource: step1/out

requirements:
- class: SubworkflowFeatureRequirement
- class: EnvVarRequirement
EnvVarRequirement:
envDef:
TEST_ENV: override

Expand Down
22 changes: 22 additions & 0 deletions v1.0/v1.0/env-wf3.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:
in: string

outputs:
out:
type: File
outputSource: step1/out

steps:
step1:
run: env-tool2.cwl
requirements:
EnvVarRequirement:
envDef:
TEST_ENV: override
in:
in: in
out: [out]

0 comments on commit e831c20

Please sign in to comment.