Skip to content

Commit 8cad6f1

Browse files
author
Peter Amstutz
committed
Add test for requirements/hints on workflow steps.
1 parent e22a9c2 commit 8cad6f1

File tree

5 files changed

+37
-5
lines changed

5 files changed

+37
-5
lines changed

Diff for: v1.0/conformance_test_v1.0.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,16 @@
287287
tool: v1.0/env-wf2.cwl
288288
doc: Test requirements override hints
289289

290+
- job: v1.0/env-job.json
291+
output:
292+
out:
293+
class: File
294+
checksum: sha1$cdc1e84968261d6a7575b5305945471f8be199b6
295+
location: out
296+
size: 9
297+
tool: v1.0/env-wf3.cwl
298+
doc: Test requirements on workflow steps
299+
290300
- job: v1.0/empty.json
291301
output: {count_output: 16}
292302
tool: v1.0/count-lines9-wf.cwl

Diff for: v1.0/v1.0/cat5-tool.cwl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env cwl-runner
2+
$namespaces:
3+
ex: http://example.com/
24
cwlVersion: v1.0
35
class: CommandLineTool
46
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
57
hints:
68
DockerRequirement:
79
dockerPull: "debian:wheezy"
8-
BlibberBlubberFakeRequirement:
10+
ex:BlibberBlubberFakeRequirement:
911
fakeField: fraggleFroogle
1012
inputs:
1113
file1:

Diff for: v1.0/v1.0/env-wf1.cwl

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ outputs:
1111
outputSource: step1/out
1212

1313
requirements:
14-
- class: SubworkflowFeatureRequirement
15-
- class: EnvVarRequirement
14+
EnvVarRequirement:
1615
envDef:
1716
TEST_ENV: override
1817

Diff for: v1.0/v1.0/env-wf2.cwl

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ outputs:
1111
outputSource: step1/out
1212

1313
requirements:
14-
- class: SubworkflowFeatureRequirement
15-
- class: EnvVarRequirement
14+
EnvVarRequirement:
1615
envDef:
1716
TEST_ENV: override
1817

Diff for: v1.0/v1.0/env-wf3.cwl

+22
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+
5+
inputs:
6+
in: string
7+
8+
outputs:
9+
out:
10+
type: File
11+
outputSource: step1/out
12+
13+
steps:
14+
step1:
15+
run: env-tool2.cwl
16+
requirements:
17+
EnvVarRequirement:
18+
envDef:
19+
TEST_ENV: override
20+
in:
21+
in: in
22+
out: [out]

0 commit comments

Comments
 (0)