Skip to content

Commit

Permalink
Merge pull request common-workflow-language#400 from common-workflow-…
Browse files Browse the repository at this point in the history
…language/v1.1.0-dev1

Sync v1.1 conformance test suite to changes in v1.0 suite.
  • Loading branch information
mr-c committed Mar 3, 2017
2 parents a90334a + e6dc6e4 commit aa44386
Show file tree
Hide file tree
Showing 37 changed files with 423 additions and 104 deletions.
18 changes: 9 additions & 9 deletions v1.0/conformance_test_v1.0.yaml
Expand Up @@ -78,33 +78,33 @@
doc: Test command execution in Docker with stdout redirection

- job: v1.0/empty.json
tool: v1.0/egrep-stderr.cwl
tool: v1.0/stderr.cwl
doc: Test command line with stderr redirection
output:
output_file:
class: File
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
size: 84
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
size: 4
location: error.txt

- job: v1.0/empty.json
tool: v1.0/egrep-stderr-shortcut.cwl
tool: v1.0/stderr-shortcut.cwl
doc: Test command line with stderr redirection, brief syntax
output:
output_file:
class: File
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
size: 84
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
size: 4
location: Any

- output:
output_file:
class: File
size: 84
checksum: sha1$cec7b8746a78c42060c96505887449bca0142976
size: 4
checksum: sha1$f1d2d2f924e986ac86fdf7b36c94bcdf32beec15
location: std.err
job: v1.0/empty.json
tool: v1.0/egrep-stderr-mediumcut.cwl
tool: v1.0/stderr-mediumcut.cwl
doc: Test command line with stderr redirection, named brief syntax

- job: v1.0/cat-job.json
Expand Down
Expand Up @@ -2,17 +2,12 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy

requirements:
ShellCommandRequirement: {}
inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]

arguments:
- { valueFrom: "echo foo 1>&2", shellQuote: False }
stderr: std.err
Expand Up @@ -2,15 +2,11 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy

requirements:
ShellCommandRequirement: {}
inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]
arguments:
- { valueFrom: "echo foo 1>&2", shellQuote: False }
9 changes: 4 additions & 5 deletions v1.0/v1.0/egrep-stderr.cwl → v1.0/v1.0/stderr.cwl
Expand Up @@ -2,14 +2,13 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy
requirements:
ShellCommandRequirement: {}
inputs: []
outputs:
output_file:
type: File
outputBinding: {glob: error.txt}
baseCommand: egrep
successCodes: [2]
arguments:
- { valueFrom: "echo foo 1>&2", shellQuote: False }
stderr: error.txt
1 change: 0 additions & 1 deletion v1.1.0-dev1/CommandLineTool.yml
Expand Up @@ -747,7 +747,6 @@ $graph:
- name: package
type: string
doc: "The common name of the software to be configured."
jsonldPredicate: "@id"
- name: version
type: string[]?
doc: "The (optional) version of the software to configured."
Expand Down
1 change: 0 additions & 1 deletion v1.1.0-dev1/Process.yml
Expand Up @@ -595,7 +595,6 @@ $graph:
doc: |
Specify valid types of data that may be assigned to this parameter.
- name: OutputParameter
type: record
extends: Parameter
Expand Down
26 changes: 18 additions & 8 deletions v1.1.0-dev1/UserGuide.yml
Expand Up @@ -183,7 +183,7 @@
The value of `position` is used to determine where parameter should
appear on the command line. Positions are relative to one another, not
abosolute. As a result, positions do not have to be sequential, three
absolute. As a result, positions do not have to be sequential, three
parameters with positions `[1, 3, 5]` will result in the same command
line as `[1, 2, 3]`. More than one parameter can have the same position
(ties are broken using the parameter name), and the position field itself
Expand Down Expand Up @@ -290,8 +290,8 @@
- |
## Parameter references
In a previous example, we used extracted a file using the "tar" program.
However, that example was very limited becuase it assumed that the file
In a previous example, we extracted a file using the "tar" program.
However, that example was very limited because it assumed that the file
we were interested in was called "hello.txt". In this example, you will
see how to reference the value of input parameters dynamically from other
fields.
Expand Down Expand Up @@ -356,7 +356,7 @@
containers are also purposefully isolated from the host system, so in
order to run a tool inside a Docker container there is additional work to
ensure that input files are available inside the container and output
files can be recovered from the contianer. CWL can perform this work
files can be recovered from the container. CWL can perform this work
automatically, allowing you to use Docker to simplify your software
management while avoiding the complexity of invoking and managing Docker
containers.
Expand Down Expand Up @@ -466,7 +466,7 @@
tool is actually executed. The `$(runtime.outdir)` parameter is the path
to the designated output directory. Other parameters include
`$(runtime.tmpdir)`, `$(runtime.ram)`, `$(runtime.cores)`,
`$(runtime.ram)`, `$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
`$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
the [Runtime Environment](CommandLineTool.html#Runtime_environment)
section of the CWL specification for details.
Expand Down Expand Up @@ -522,7 +522,7 @@
- |
```
*array-outpust-job.yml*
*array-outputs-job.yml*
```
- $include: examples/array-outputs-job.yml
- |
Expand Down Expand Up @@ -662,6 +662,16 @@
- |
```
As this tool does not require any `inputs` we can run it with an (almost) empty job file:
*empty.yml*
```
{}
|
```
We can then run `expression.cwl`:
```
$ cwl-runner expression.cwl empty.yml
[job 140000594593168] /home/example$ echo -A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
Expand Down Expand Up @@ -796,7 +806,7 @@
class: Workflow
```
The 'cwlVersion` field indicates the version of the CWL spec used by the
The `cwlVersion` field indicates the version of the CWL spec used by the
document. The `class` field indicates this document describes a workflow.
Expand All @@ -820,7 +830,7 @@
The `outputs` section describes the outputs of the workflow. This is a
list of output parameters where each parameter consists of an identifier
and a data type. The `source` connects the output parameter `classfile`
and a data type. The `outputSource` connects the output parameter `classfile`
of the `compile` step to the workflow output parameter `classout`.
```
Expand Down
2 changes: 1 addition & 1 deletion v1.1.0-dev1/concepts.md
Expand Up @@ -89,7 +89,7 @@ preprocessing steps described in the
[Semantic Annotations for Linked Avro Data (SALAD) Specification](SchemaSalad.html).
An implementation may formally validate the structure of a CWL document using
SALAD schemas located at
https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-4
https://github.com/common-workflow-language/common-workflow-language/tree/master/v1.1.0-dev1

## Identifiers

Expand Down

0 comments on commit aa44386

Please sign in to comment.