Skip to content

Commit

Permalink
stderr redirect tests use "echo" instead of checking for the usage me…
Browse files Browse the repository at this point in the history
…ssage of "egrep".
  • Loading branch information
Peter Amstutz committed Mar 2, 2017
1 parent d0fc2df commit 8ab5eb9
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 62 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,9 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy

inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]

baseCommand: [sh, -c, "echo foo 1>&2"]
stderr: std.err
Expand Up @@ -2,15 +2,8 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy

inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]
baseCommand: [sh, -c, "echo foo 1>&2"]
6 changes: 1 addition & 5 deletions v1.0/v1.0/egrep-stderr.cwl → v1.0/v1.0/stderr.cwl
Expand Up @@ -2,14 +2,10 @@
class: CommandLineTool
cwlVersion: v1.0
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy
inputs: []
outputs:
output_file:
type: File
outputBinding: {glob: error.txt}
baseCommand: egrep
successCodes: [2]
baseCommand: [sh, -c, "echo foo 1>&2"]
stderr: error.txt
18 changes: 9 additions & 9 deletions v1.1.0-dev1/conformance_test_v1.1.0-dev1.yaml
Expand Up @@ -78,33 +78,33 @@
doc: Test command execution in Docker with stdout redirection

- job: v1.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr.cwl
tool: v1.1.0-dev1/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.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr-shortcut.cwl
tool: v1.1.0-dev1/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.1.0-dev1/empty.json
tool: v1.1.0-dev1/egrep-stderr-mediumcut.cwl
tool: v1.1.0-dev1/stderr-mediumcut.cwl
doc: Test command line with stderr redirection, named brief syntax

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

inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]

baseCommand: [sh, -c, "echo foo 1>&2"]
stderr: std.err
Expand Up @@ -2,15 +2,8 @@
class: CommandLineTool
cwlVersion: v1.1.0-dev1
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy

inputs: []

outputs:
output_file:
type: stderr

baseCommand: egrep
successCodes: [2]
baseCommand: [sh, -c, "echo foo 1>&2"]
Expand Up @@ -2,14 +2,10 @@
class: CommandLineTool
cwlVersion: v1.1.0-dev1
doc: "Test of capturing stderr output in a docker container."
hints:
DockerRequirement:
dockerPull: debian:wheezy
inputs: []
outputs:
output_file:
type: File
outputBinding: {glob: error.txt}
baseCommand: egrep
successCodes: [2]
baseCommand: [sh, -c, "echo foo 1>&2"]
stderr: error.txt

0 comments on commit 8ab5eb9

Please sign in to comment.