Skip to content

Commit c645e3b

Browse files
author
Peter Amstutz
committed
Add test executing compound document with absolute identifiers.
1 parent 13f35aa commit c645e3b

File tree

2 files changed

+136
-1
lines changed

2 files changed

+136
-1
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
location: output.txt
326326
size: 1111
327327
tool: v1.0/revsort.cwl
328-
doc: Test sample workflows from the specification
328+
doc: Test simple workflow
329329

330330
- job: v1.0/cat-job.json
331331
output:
@@ -1077,3 +1077,13 @@
10771077
job: v1.0/cat-job.json
10781078
tool: v1.0/null-defined.cwl
10791079
doc: Test that provided parameter is not null in expression
1080+
1081+
- job: v1.0/revsort-job.json
1082+
output:
1083+
output:
1084+
class: File
1085+
checksum: sha1$b9214658cc453331b62c2282b772a5c063dbd284
1086+
location: output.txt
1087+
size: 1111
1088+
tool: v1.0/revsort-packed.cwl#main
1089+
doc: Test compound workflow document

v1.0/v1.0/revsort-packed.cwl

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"cwlVersion": "v1.0",
3+
"$graph": [
4+
{
5+
"class": "Workflow",
6+
"doc": "Reverse the lines in a document, then sort those lines.",
7+
"hints": [
8+
{
9+
"class": "DockerRequirement",
10+
"dockerPull": "debian:8"
11+
}
12+
],
13+
"inputs": [
14+
{
15+
"type": "File",
16+
"doc": "The input file to be processed.",
17+
"id": "#main/input"
18+
},
19+
{
20+
"type": "boolean",
21+
"default": true,
22+
"doc": "If true, reverse (decending) sort",
23+
"id": "#main/reverse_sort"
24+
}
25+
],
26+
"outputs": [
27+
{
28+
"type": "File",
29+
"outputSource": "#main/sorted/output",
30+
"doc": "The output with the lines reversed and sorted.",
31+
"id": "#main/output"
32+
}
33+
],
34+
"steps": [
35+
{
36+
"in": [
37+
{
38+
"source": "#main/input",
39+
"id": "#main/rev/input"
40+
}
41+
],
42+
"out": [
43+
"#main/rev/output"
44+
],
45+
"run": "#revtool.cwl",
46+
"id": "#main/rev"
47+
},
48+
{
49+
"in": [
50+
{
51+
"source": "#main/rev/output",
52+
"id": "#main/sorted/input"
53+
},
54+
{
55+
"source": "#main/reverse_sort",
56+
"id": "#main/sorted/reverse"
57+
}
58+
],
59+
"out": [
60+
"#main/sorted/output"
61+
],
62+
"run": "#sorttool.cwl",
63+
"id": "#main/sorted"
64+
}
65+
],
66+
"id": "#main"
67+
},
68+
{
69+
"class": "CommandLineTool",
70+
"doc": "Reverse each line using the `rev` command",
71+
"inputs": [
72+
{
73+
"type": "File",
74+
"inputBinding": {},
75+
"id": "#revtool.cwl/input"
76+
}
77+
],
78+
"outputs": [
79+
{
80+
"type": "File",
81+
"outputBinding": {
82+
"glob": "output.txt"
83+
},
84+
"id": "#revtool.cwl/output"
85+
}
86+
],
87+
"baseCommand": "rev",
88+
"stdout": "output.txt",
89+
"id": "#revtool.cwl"
90+
},
91+
{
92+
"class": "CommandLineTool",
93+
"doc": "Sort lines using the `sort` command",
94+
"inputs": [
95+
{
96+
"id": "#sorttool.cwl/reverse",
97+
"type": "boolean",
98+
"inputBinding": {
99+
"position": 1,
100+
"prefix": "--reverse"
101+
}
102+
},
103+
{
104+
"id": "#sorttool.cwl/input",
105+
"type": "File",
106+
"inputBinding": {
107+
"position": 2
108+
}
109+
}
110+
],
111+
"outputs": [
112+
{
113+
"id": "#sorttool.cwl/output",
114+
"type": "File",
115+
"outputBinding": {
116+
"glob": "output.txt"
117+
}
118+
}
119+
],
120+
"baseCommand": "sort",
121+
"stdout": "output.txt",
122+
"id": "#sorttool.cwl"
123+
}
124+
]
125+
}

0 commit comments

Comments
 (0)