Skip to content

Commit cbe1c8d

Browse files
authored
Merge pull request #334 from StarvingMarvin/master
Explicit 'args' output for three tests in draft-2, draft-3 and v1.0
2 parents e0a5e7c + 8300e43 commit cbe1c8d

10 files changed

+78
-42
lines changed

draft-2/draft-2/binding-test.cwl

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ inputs:
2222
inputBinding:
2323
position: -1
2424

25-
outputs: []
25+
outputs:
26+
- id: "#args"
27+
type:
28+
type: array
29+
items: string
2630

2731
baseCommand: python
2832
arguments: ["bwa", "mem"]

draft-2/draft-2/cat1-testcli.cwl

+16-10
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,24 @@
1717
}
1818
},
1919
{
20-
id: "#args.py",
21-
type: File,
22-
default: {
23-
class: File,
24-
path: args.py
25-
},
26-
inputBinding: {
27-
position: -1
28-
}
20+
"id": "#args.py",
21+
"type": "File",
22+
"default": {
23+
"class": "File",
24+
"path": "args.py"
25+
},
26+
"inputBinding": {
27+
"position": -1
28+
}
2929
}
3030
],
31-
"outputs": [],
31+
"outputs": [{
32+
"id": "#args",
33+
"type": {
34+
"type": "array",
35+
"items": "string"
36+
}
37+
}],
3238
"baseCommand": "python",
3339
"arguments": ["cat"]
3440
}

draft-2/draft-2/tmap-tool.cwl

+14-7
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
},
2020
{
21-
id: "#args.py",
22-
type: File,
23-
default: {
24-
class: File,
25-
path: args.py
21+
"id": "#args.py",
22+
"type": "File",
23+
"default": {
24+
"class": "File",
25+
"path": "args.py"
2626
},
27-
inputBinding: {
28-
position: -1
27+
"inputBinding": {
28+
"position": -1
2929
}
3030
}
3131
],
@@ -36,6 +36,13 @@
3636
"glob": "output.sam"
3737
},
3838
"type": ["null", "File"]
39+
},
40+
{
41+
"id": "#args",
42+
"type": {
43+
"type": "array",
44+
"items": "string"
45+
}
3946
}
4047
],
4148
"requirements": [

draft-3/draft-3/binding-test.cwl

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ inputs:
2323
inputBinding:
2424
position: -1
2525

26-
outputs: []
26+
outputs:
27+
- id: args
28+
type:
29+
type: array
30+
items: string
2731

2832
baseCommand: python
2933
arguments: ["bwa", "mem"]

draft-3/draft-3/cat1-testcli.cwl

+14-8
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,24 @@
1818
}
1919
},
2020
{
21-
id: "args.py",
22-
type: File,
23-
default: {
24-
class: File,
25-
path: args.py
21+
"id": "args.py",
22+
"type": "File",
23+
"default": {
24+
"class": "File",
25+
"path": "args.py"
2626
},
27-
inputBinding: {
28-
position: -1
27+
"inputBinding": {
28+
"position": -1
2929
}
3030
}
3131
],
32-
"outputs": [],
32+
"outputs": [{
33+
"id": "args",
34+
"type": {
35+
"type": "array",
36+
"items": "string"
37+
}
38+
}],
3339
"baseCommand": "python",
3440
"arguments": ["cat"]
3541
}

draft-3/draft-3/tmap-tool.cwl

+16-9
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
}
2121
},
2222
{
23-
id: "#args.py",
24-
type: File,
25-
default: {
26-
class: File,
27-
path: args.py
28-
},
29-
inputBinding: {
30-
position: -1
31-
}
23+
"id": "#args.py",
24+
"type": "File",
25+
"default": {
26+
"class": "File",
27+
"path": "args.py"
28+
},
29+
"inputBinding": {
30+
"position": -1
31+
}
3232
}
3333
],
3434
"outputs": [
@@ -38,6 +38,13 @@
3838
"glob": "output.sam"
3939
},
4040
"type": ["null", "File"]
41+
},
42+
{
43+
"id": "args",
44+
"type": {
45+
"type": "array",
46+
"items": "string"
47+
}
4148
}
4249
],
4350
"requirements": [

v1.0/conformance_test_v1.0.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
tool: v1.0/cat3-tool-mediumcut.cwl
7878
doc: Test command execution in Docker with stdout redirection
7979

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

v1.0/v1.0/binding-test.cwl

+2-1
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.0/v1.0/cat1-testcli.cwl

+1-1
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.0/v1.0/tmap-tool.cwl

+2-1
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)