Skip to content

Commit f0f8b67

Browse files
author
Peter Amstutz
committed
Sync v1.1 conformance test suite to changes in v1.0 suite.
1 parent 50f052e commit f0f8b67

File tree

9 files changed

+119
-30
lines changed

9 files changed

+119
-30
lines changed

v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml

Lines changed: 106 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
tool: v1.1.0-dev1/cat3-tool-mediumcut.cwl
7878
doc: Test command execution in Docker with stdout redirection
7979

80-
- job:
80+
- job: v1.1.0-dev1/empty.json
8181
tool: v1.1.0-dev1/egrep-stderr.cwl
8282
doc: Test command line with stderr redirection
8383
output:
@@ -87,7 +87,7 @@
8787
size: 84
8888
location: error.txt
8989

90-
- job:
90+
- job: v1.1.0-dev1/empty.json
9191
tool: v1.1.0-dev1/egrep-stderr-shortcut.cwl
9292
doc: Test command line with stderr redirection, brief syntax
9393
output:
@@ -103,7 +103,7 @@
103103
size: 84
104104
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
105105
location: std.err
106-
job:
106+
job: v1.1.0-dev1/empty.json
107107
tool: v1.1.0-dev1/egrep-stderr-mediumcut.cwl
108108
doc: Test command line with stderr redirection, named brief syntax
109109

@@ -173,17 +173,6 @@
173173
tool: v1.1.0-dev1/wc-tool.cwl
174174
doc: Test command execution in with stdin and stdout redirection
175175

176-
- job: v1.1.0-dev1/wc-job.json
177-
output:
178-
output:
179-
class: File
180-
checksum: sha1$631bfbac524e2d04cdcc5ec33ade827fc10b06ae
181-
location: output
182-
size: 15
183-
tool: v1.1.0-dev1/wc-tool-shortcut.cwl
184-
doc: Test command execution in with stdin and stdout redirection using stdin shortcut
185-
186-
187176
- job: v1.1.0-dev1/parseInt-job.json
188177
output: {output: 42}
189178
tool: v1.1.0-dev1/parseInt-tool.cwl
@@ -309,6 +298,16 @@
309298
tool: v1.1.0-dev1/env-wf2.cwl
310299
doc: Test requirements override hints
311300

301+
- job: v1.1.0-dev1/env-job.json
302+
output:
303+
out:
304+
class: File
305+
checksum: sha1$cdc1e84968261d6a7575b5305945471f8be199b6
306+
location: out
307+
size: 9
308+
tool: v1.1.0-dev1/env-wf3.cwl
309+
doc: Test requirements on workflow steps
310+
312311
- job: v1.1.0-dev1/empty.json
313312
output: {count_output: 16}
314313
tool: v1.1.0-dev1/count-lines9-wf.cwl
@@ -671,7 +670,23 @@
671670
}
672671
}
673672
tool: v1.1.0-dev1/test-cwl-out.cwl
674-
doc: Test support for reading cwl.output.json when running in Docker container
673+
doc: |
674+
Test support for reading cwl.output.json when running in a Docker container
675+
and just 'path' is provided.
676+
677+
- job: v1.1.0-dev1/empty.json
678+
output: {
679+
"foo": {
680+
"location": "foo",
681+
"class": "File",
682+
"checksum": "sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
683+
"size": 4
684+
}
685+
}
686+
tool: v1.1.0-dev1/test-cwl-out2.cwl
687+
doc: |
688+
Test support for reading cwl.output.json when running in a Docker container
689+
and just 'location' is provided.
675690
676691
- job: v1.1.0-dev1/abc.json
677692
output:
@@ -785,10 +800,10 @@
785800
- job: v1.1.0-dev1/dir4-job.yml
786801
output: {
787802
"outlist": {
788-
"checksum": "sha1$2ab6f189e84753c05a23413fbf6b6fbf4c53489f",
789-
"size": 90,
790-
"location": "output.txt",
791-
"class": "File"
803+
"checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592",
804+
"size": 20,
805+
"location": "output.txt",
806+
"class": "File"
792807
}
793808
}
794809
tool: v1.1.0-dev1/dir4.cwl
@@ -905,3 +920,75 @@
905920
"size": 12010
906921
tool: v1.1.0-dev1/initialworkdirrequirement-docker-out.cwl
907922
doc: Test output of InitialWorkDir
923+
924+
- job: v1.1.0-dev1/wc-job.json
925+
output: {count_output: 16}
926+
tool: v1.1.0-dev1/count-lines10-wf.cwl
927+
doc: Test embedded subworkflow
928+
929+
- job: v1.1.0-dev1/docker-array-secondaryfiles-job.json
930+
output: {
931+
"bai_list": {
932+
"checksum": "sha1$081fc0e57d6efa5f75eeb237aab1d04031132be6",
933+
"location": "fai.list",
934+
"class": "File",
935+
"size": 386
936+
}
937+
}
938+
tool: v1.1.0-dev1/docker-array-secondaryfiles.cwl
939+
doc: Test secondaryFiles on array of files.
940+
941+
- job: v1.1.0-dev1/dir7.yml
942+
output: {
943+
"dir": {
944+
"location": "a_directory",
945+
"class": "Directory",
946+
"listing": [
947+
{
948+
"class": "File",
949+
"location": "whale.txt",
950+
"checksum": "sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376",
951+
"size": 1111
952+
},
953+
{
954+
"class": "File",
955+
"location": "hello.txt",
956+
"checksum": "sha1$47a013e660d408619d894b20806b1d5086aab03b",
957+
"size": 13
958+
}
959+
]
960+
}
961+
}
962+
tool: v1.1.0-dev1/dir7.cwl
963+
doc: Test directory literal output created by ExpressionTool
964+
965+
- job: v1.1.0-dev1/empty.json
966+
output:
967+
lit:
968+
location: "a_file"
969+
class: "File"
970+
checksum: "sha1$fea23663b9c8ed71968f86415b5ec091bb111448"
971+
size: 19
972+
tool: v1.1.0-dev1/file-literal-ex.cwl
973+
doc: Test file literal output created by ExpressionTool
974+
975+
- job: v1.1.0-dev1/empty.json
976+
output:
977+
"thing": {
978+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
979+
"location": "thing",
980+
"class": "File",
981+
"size": 0
982+
}
983+
tool: v1.1.0-dev1/docker-output-dir.cwl
984+
doc: Test dockerOutputDirectory
985+
986+
- job: v1.1.0-dev1/empty.json
987+
output:
988+
out:
989+
class: File
990+
checksum: sha1$b3ec4ed1749c207e52b3a6d08c59f31d83bff519
991+
location: out
992+
size: 15
993+
tool: v1.1.0-dev1/imported-hint.cwl
994+
doc: Test hints with $import

v1.1.0-dev1/v1.1.0-dev1/binding-test.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ inputs:
2323
inputBinding:
2424
position: -1
2525

26-
outputs: []
26+
outputs:
27+
args: string[]
2728

2829
baseCommand: python
2930
arguments: ["bwa", "mem"]

v1.1.0-dev1/v1.1.0-dev1/cat1-testcli.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
}
3131
],
32-
"outputs": [],
32+
"outputs": [{"id": "args", "type": "string[]"}],
3333
"baseCommand": "python",
3434
"arguments": ["cat"]
3535
}

v1.1.0-dev1/v1.1.0-dev1/cat5-tool.cwl

Lines changed: 3 additions & 1 deletion
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.1.0-dev1
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:

v1.1.0-dev1/v1.1.0-dev1/dir4.cwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ outputs:
99
type: File
1010
outputBinding:
1111
glob: output.txt
12-
arguments: ["cd", "$(inputs.inf.dirname)",
12+
arguments: ["cd", "$(inputs.inf.dirname)/xtestdir",
1313
{shellQuote: false, valueFrom: "&&"},
1414
"find", ".",
1515
{shellQuote: false, valueFrom: "|"},
1616
"sort"]
17-
stdout: output.txt
17+
stdout: output.txt

v1.1.0-dev1/v1.1.0-dev1/dir5.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ outputs:
1111
type: File
1212
outputBinding:
1313
glob: output.txt
14-
arguments: ["find", ".",
14+
arguments: ["find", "-L", ".",
1515
{shellQuote: false, valueFrom: "|"},
1616
"sort"]
1717
stdout: output.txt

v1.1.0-dev1/v1.1.0-dev1/env-wf1.cwl

Lines changed: 1 addition & 2 deletions
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

v1.1.0-dev1/v1.1.0-dev1/env-wf2.cwl

Lines changed: 1 addition & 2 deletions
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

v1.1.0-dev1/v1.1.0-dev1/tmap-tool.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"glob": "output.sam"
3939
},
4040
"type": ["null", "File"]
41-
}
41+
},
42+
{"id": "args", "type": "string[]"}
4243
],
4344
"requirements": [
4445
{"class": "SchemaDefRequirement",

0 commit comments

Comments
 (0)