Skip to content

Commit

Permalink
Sync v1.1 conformance test suite to changes in v1.0 suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Amstutz committed Mar 2, 2017
1 parent 50f052e commit f0f8b67
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 30 deletions.
125 changes: 106 additions & 19 deletions v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
tool: v1.1.0-dev1/cat3-tool-mediumcut.cwl
doc: Test command execution in Docker with stdout redirection

- job:
- job: v1.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr.cwl
doc: Test command line with stderr redirection
output:
Expand All @@ -87,7 +87,7 @@
size: 84
location: error.txt

- job:
- job: v1.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr-shortcut.cwl
doc: Test command line with stderr redirection, brief syntax
output:
Expand All @@ -103,7 +103,7 @@
size: 84
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
location: std.err
job:
job: v1.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr-mediumcut.cwl
doc: Test command line with stderr redirection, named brief syntax

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

- job: v1.1.0-dev1/wc-job.json
output:
output:
class: File
checksum: sha1$631bfbac524e2d04cdcc5ec33ade827fc10b06ae
location: output
size: 15
tool: v1.1.0-dev1/wc-tool-shortcut.cwl
doc: Test command execution in with stdin and stdout redirection using stdin shortcut


- job: v1.1.0-dev1/parseInt-job.json
output: {output: 42}
tool: v1.1.0-dev1/parseInt-tool.cwl
Expand Down Expand Up @@ -309,6 +298,16 @@
tool: v1.1.0-dev1/env-wf2.cwl
doc: Test requirements override hints

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

- job: v1.1.0-dev1/empty.json
output: {count_output: 16}
tool: v1.1.0-dev1/count-lines9-wf.cwl
Expand Down Expand Up @@ -671,7 +670,23 @@
}
}
tool: v1.1.0-dev1/test-cwl-out.cwl
doc: Test support for reading cwl.output.json when running in Docker container
doc: |
Test support for reading cwl.output.json when running in a Docker container
and just 'path' is provided.
- job: v1.1.0-dev1/empty.json
output: {
"foo": {
"location": "foo",
"class": "File",
"checksum": "sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15",
"size": 4
}
}
tool: v1.1.0-dev1/test-cwl-out2.cwl
doc: |
Test support for reading cwl.output.json when running in a Docker container
and just 'location' is provided.
- job: v1.1.0-dev1/abc.json
output:
Expand Down Expand Up @@ -785,10 +800,10 @@
- job: v1.1.0-dev1/dir4-job.yml
output: {
"outlist": {
"checksum": "sha1$2ab6f189e84753c05a23413fbf6b6fbf4c53489f",
"size": 90,
"location": "output.txt",
"class": "File"
"checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592",
"size": 20,
"location": "output.txt",
"class": "File"
}
}
tool: v1.1.0-dev1/dir4.cwl
Expand Down Expand Up @@ -905,3 +920,75 @@
"size": 12010
tool: v1.1.0-dev1/initialworkdirrequirement-docker-out.cwl
doc: Test output of InitialWorkDir

- job: v1.1.0-dev1/wc-job.json
output: {count_output: 16}
tool: v1.1.0-dev1/count-lines10-wf.cwl
doc: Test embedded subworkflow

- job: v1.1.0-dev1/docker-array-secondaryfiles-job.json
output: {
"bai_list": {
"checksum": "sha1$081fc0e57d6efa5f75eeb237aab1d04031132be6",
"location": "fai.list",
"class": "File",
"size": 386
}
}
tool: v1.1.0-dev1/docker-array-secondaryfiles.cwl
doc: Test secondaryFiles on array of files.

- job: v1.1.0-dev1/dir7.yml
output: {
"dir": {
"location": "a_directory",
"class": "Directory",
"listing": [
{
"class": "File",
"location": "whale.txt",
"checksum": "sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376",
"size": 1111
},
{
"class": "File",
"location": "hello.txt",
"checksum": "sha1$47a013e660d408619d894b20806b1d5086aab03b",
"size": 13
}
]
}
}
tool: v1.1.0-dev1/dir7.cwl
doc: Test directory literal output created by ExpressionTool

- job: v1.1.0-dev1/empty.json
output:
lit:
location: "a_file"
class: "File"
checksum: "sha1$fea23663b9c8ed71968f86415b5ec091bb111448"
size: 19
tool: v1.1.0-dev1/file-literal-ex.cwl
doc: Test file literal output created by ExpressionTool

- job: v1.1.0-dev1/empty.json
output:
"thing": {
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"location": "thing",
"class": "File",
"size": 0
}
tool: v1.1.0-dev1/docker-output-dir.cwl
doc: Test dockerOutputDirectory

- job: v1.1.0-dev1/empty.json
output:
out:
class: File
checksum: sha1$b3ec4ed1749c207e52b3a6d08c59f31d83bff519
location: out
size: 15
tool: v1.1.0-dev1/imported-hint.cwl
doc: Test hints with $import
3 changes: 2 additions & 1 deletion v1.1.0-dev1/v1.1.0-dev1/binding-test.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ inputs:
inputBinding:
position: -1

outputs: []
outputs:
args: string[]

baseCommand: python
arguments: ["bwa", "mem"]
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/cat1-testcli.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
}
],
"outputs": [],
"outputs": [{"id": "args", "type": "string[]"}],
"baseCommand": "python",
"arguments": ["cat"]
}
4 changes: 3 additions & 1 deletion v1.1.0-dev1/v1.1.0-dev1/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.1.0-dev1
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
4 changes: 2 additions & 2 deletions v1.1.0-dev1/v1.1.0-dev1/dir4.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ outputs:
type: File
outputBinding:
glob: output.txt
arguments: ["cd", "$(inputs.inf.dirname)",
arguments: ["cd", "$(inputs.inf.dirname)/xtestdir",
{shellQuote: false, valueFrom: "&&"},
"find", ".",
{shellQuote: false, valueFrom: "|"},
"sort"]
stdout: output.txt
stdout: output.txt
2 changes: 1 addition & 1 deletion v1.1.0-dev1/v1.1.0-dev1/dir5.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ outputs:
type: File
outputBinding:
glob: output.txt
arguments: ["find", ".",
arguments: ["find", "-L", ".",
{shellQuote: false, valueFrom: "|"},
"sort"]
stdout: output.txt
3 changes: 1 addition & 2 deletions v1.1.0-dev1/v1.1.0-dev1/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.1.0-dev1/v1.1.0-dev1/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
3 changes: 2 additions & 1 deletion v1.1.0-dev1/v1.1.0-dev1/tmap-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"glob": "output.sam"
},
"type": ["null", "File"]
}
},
{"id": "args", "type": "string[]"}
],
"requirements": [
{"class": "SchemaDefRequirement",
Expand Down

0 comments on commit f0f8b67

Please sign in to comment.