Skip to content

Commit b716213

Browse files
authored
Merge pull request #61 from tom-tan/add-tests
Add tests for the examples
2 parents 501d527 + b0b26fa commit b716213

File tree

4 files changed

+184
-0
lines changed

4 files changed

+184
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
sudo: required
2+
services:
3+
- docker
4+
15
language: python
26
python:
37
- 2.7
44.5 MB
Binary file not shown.

_includes/cwl/17-metadata/sample.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
aligned_sequences:
2+
class: File
3+
format: http://edamontology.org/format_2572
4+
path: file-formats.bam
5+
bamstats_report:
6+
class: File
7+
path: /tmp/bamstats_report.zip

_includes/cwl/conformance-test.yml

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Section 2
2+
- doc: Test for section 2
3+
job: 02-1st-example/echo-job.yml
4+
tool: 02-1st-example/1st-tool.cwl
5+
should_fail: false
6+
output: {}
7+
8+
# Section 3
9+
- doc: Test for section 3
10+
job: 03-input/inp-job.yml
11+
tool: 03-input/inp.cwl
12+
should_fail: false
13+
output: {}
14+
15+
# Section 4
116
- doc: Test for section 4
217
job: 04-output/tar-job.yml
318
tool: 04-output/tar.cwl
@@ -8,3 +23,161 @@
823
basename: hello.txt
924
location: Any
1025
size: 0
26+
27+
# Section 5
28+
- doc: Test for section 5
29+
job: 05-stdout/echo-job.yml
30+
tool: 05-stdout/stdout.cwl
31+
output:
32+
output:
33+
class: File
34+
checksum: sha1$47a013e660d408619d894b20806b1d5086aab03b
35+
basename: output.txt
36+
location: Any
37+
size: 13
38+
39+
# Section 6
40+
- doc: Test for section 6
41+
job: 06-params/tar-param-job.yml
42+
tool: 06-params/tar-param.cwl
43+
output:
44+
example_out:
45+
class: File
46+
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
47+
basename: goodbye.txt
48+
location: Any
49+
size: 0
50+
51+
# Section 7 depends on side-effects
52+
53+
# Section 8
54+
- doc: Test for section 8
55+
job: 08-arguments/arguments-job.yml
56+
tool: 08-arguments/arguments.cwl
57+
output:
58+
classfile:
59+
class: File
60+
checksum: sha1$fdb876b40ad9ebc7fee873212e02d5940588642e
61+
basename: Hello.class
62+
location: Any
63+
size: 184
64+
65+
# Section 9 depends on side-effects
66+
67+
# Section 10
68+
- doc: Test for section 10
69+
job: 10-array-outputs/array-outputs-job.yml
70+
tool: 10-array-outputs/array-outputs.cwl
71+
output:
72+
output:
73+
- class: File
74+
basename: baz.txt
75+
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
76+
location: Any
77+
size: 0
78+
- class: File
79+
basename: foo.txt
80+
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
81+
location: Any
82+
size: 0
83+
84+
# Section 11 depends on side-effects
85+
# Rest two examples in Section 11 depend on side-effects
86+
- doc: Test for section 11 (1st example)
87+
job: 11-records/record-job1.yml
88+
tool: 11-records/record.cwl
89+
should_fail: true
90+
91+
# Section 12 depends on side-effects
92+
# Section 13 depends on side-effects
93+
# Section 14 depends on side-effects
94+
95+
# Section 15
96+
- doc: Test for section 15
97+
job: 15-staging/arguments-job.yml
98+
tool: 15-staging/linkfile.cwl
99+
output:
100+
classfile:
101+
class: File
102+
checksum: sha1$fdb876b40ad9ebc7fee873212e02d5940588642e
103+
basename: Hello.class
104+
location: Any
105+
size: 184
106+
107+
# Section 16
108+
# Note: The checksum and size is always changed for every executions
109+
- doc: Test for section 16
110+
job: 16-file-formats/sample.yml
111+
tool: 16-file-formats/metadata_example.cwl
112+
output:
113+
report:
114+
class: File
115+
basename: output.txt
116+
location: Any
117+
118+
# Section 17
119+
# Note: The checksum and size is always changed for every executions
120+
- doc: Test for section 17 (1st example)
121+
job: 17-metadata/sample.yml
122+
tool: 17-metadata/metadata_example2.cwl
123+
output:
124+
report:
125+
class: File
126+
basename: output.txt
127+
location: Any
128+
129+
- doc: Test for section 17 (extended example)
130+
job: 17-metadata/sample.yml
131+
tool: 17-metadata/metadata_example3.cwl
132+
output:
133+
report:
134+
class: File
135+
basename: output.txt
136+
location: Any
137+
138+
# Section 19
139+
# See: Issue #48
140+
# - doc: Test for section 19
141+
# job: 19-custom-types/custom-types.yml
142+
# tool: 19-custom-types/costom-types.cwl
143+
# output:
144+
# i5Annotations:
145+
# class: File
146+
# basename: test_proteins.i5_annotations
147+
# location: Any
148+
# size: Any # To be fixed
149+
150+
# Section 20
151+
# See: Issue #48
152+
# - doc: Test for section 20
153+
# job: 20-software-requirements/custom-types.yml
154+
# tool: 20-software-requirements/costom-types.cwl
155+
# output:
156+
# i5Annotations:
157+
# class: File
158+
# basename: test_proteins.i5_annotations
159+
# location: Any
160+
# size: Any # To be fixed
161+
162+
# Section 21
163+
- doc: Test for section 21
164+
job: 21-1st-workflow/1st-workflow-job.yml
165+
tool: 21-1st-workflow/1st-workflow.cwl
166+
output:
167+
classout:
168+
class: File
169+
checksum: sha1$39e3219327347c05aa3e82236f83aa6d77fe6bfd
170+
basename: Hello.class
171+
location: Any
172+
size: 419
173+
174+
# Section 22
175+
- doc: Test for section 22
176+
tool: 22-nested-workflows/nestedworkflows.cwl
177+
output:
178+
classout:
179+
class: File
180+
checksum: sha1$39e3219327347c05aa3e82236f83aa6d77fe6bfd
181+
basename: Hello.class
182+
location: Any
183+
size: 419

0 commit comments

Comments
 (0)