Skip to content

Commit

Permalink
Merge pull request common-workflow-language#334 from StarvingMarvin/m…
Browse files Browse the repository at this point in the history
…aster

Explicit 'args' output for three tests in draft-2, draft-3 and v1.0
  • Loading branch information
mr-c committed Nov 3, 2016
2 parents e0a5e7c + 8300e43 commit cbe1c8d
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 42 deletions.
6 changes: 5 additions & 1 deletion draft-2/draft-2/binding-test.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ inputs:
inputBinding:
position: -1

outputs: []
outputs:
- id: "#args"
type:
type: array
items: string

baseCommand: python
arguments: ["bwa", "mem"]
26 changes: 16 additions & 10 deletions draft-2/draft-2/cat1-testcli.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,24 @@
}
},
{
id: "#args.py",
type: File,
default: {
class: File,
path: args.py
},
inputBinding: {
position: -1
}
"id": "#args.py",
"type": "File",
"default": {
"class": "File",
"path": "args.py"
},
"inputBinding": {
"position": -1
}
}
],
"outputs": [],
"outputs": [{
"id": "#args",
"type": {
"type": "array",
"items": "string"
}
}],
"baseCommand": "python",
"arguments": ["cat"]
}
21 changes: 14 additions & 7 deletions draft-2/draft-2/tmap-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
}
},
{
id: "#args.py",
type: File,
default: {
class: File,
path: args.py
"id": "#args.py",
"type": "File",
"default": {
"class": "File",
"path": "args.py"
},
inputBinding: {
position: -1
"inputBinding": {
"position": -1
}
}
],
Expand All @@ -36,6 +36,13 @@
"glob": "output.sam"
},
"type": ["null", "File"]
},
{
"id": "#args",
"type": {
"type": "array",
"items": "string"
}
}
],
"requirements": [
Expand Down
6 changes: 5 additions & 1 deletion draft-3/draft-3/binding-test.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ inputs:
inputBinding:
position: -1

outputs: []
outputs:
- id: args
type:
type: array
items: string

baseCommand: python
arguments: ["bwa", "mem"]
22 changes: 14 additions & 8 deletions draft-3/draft-3/cat1-testcli.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,24 @@
}
},
{
id: "args.py",
type: File,
default: {
class: File,
path: args.py
"id": "args.py",
"type": "File",
"default": {
"class": "File",
"path": "args.py"
},
inputBinding: {
position: -1
"inputBinding": {
"position": -1
}
}
],
"outputs": [],
"outputs": [{
"id": "args",
"type": {
"type": "array",
"items": "string"
}
}],
"baseCommand": "python",
"arguments": ["cat"]
}
25 changes: 16 additions & 9 deletions draft-3/draft-3/tmap-tool.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
}
},
{
id: "#args.py",
type: File,
default: {
class: File,
path: args.py
},
inputBinding: {
position: -1
}
"id": "#args.py",
"type": "File",
"default": {
"class": "File",
"path": "args.py"
},
"inputBinding": {
"position": -1
}
}
],
"outputs": [
Expand All @@ -38,6 +38,13 @@
"glob": "output.sam"
},
"type": ["null", "File"]
},
{
"id": "args",
"type": {
"type": "array",
"items": "string"
}
}
],
"requirements": [
Expand Down
6 changes: 3 additions & 3 deletions v1.0/conformance_test_v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
tool: v1.0/cat3-tool-mediumcut.cwl
doc: Test command execution in Docker with stdout redirection

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

Expand Down
3 changes: 2 additions & 1 deletion v1.0/v1.0/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.0/v1.0/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"]
}
3 changes: 2 additions & 1 deletion v1.0/v1.0/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 cbe1c8d

Please sign in to comment.