Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for the examples #61

Merged
merged 7 commits into from
Dec 30, 2017
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
sudo: required
services:
- docker

language: python
python:
- 2.7
Expand Down
Binary file added _includes/cwl/17-metadata/file-formats.bam
Binary file not shown.
7 changes: 7 additions & 0 deletions _includes/cwl/17-metadata/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
aligned_sequences:
class: File
format: http://edamontology.org/format_2572
path: file-formats.bam
bamstats_report:
class: File
path: /tmp/bamstats_report.zip
156 changes: 156 additions & 0 deletions _includes/cwl/conformance-test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Section 2 depends on side-effects
# Section 3 depends on side-effects

# Section 4
- doc: Test for section 4
job: 04-output/tar-job.yml
tool: 04-output/tar.cwl
Expand All @@ -8,3 +12,155 @@
basename: hello.txt
location: Any
size: 0

# Section 5
- doc: Test for section 5
job: 05-stdout/echo-job.yml
tool: 05-stdout/stdout.cwl
output:
output:
class: File
checksum: sha1$47a013e660d408619d894b20806b1d5086aab03b
basename: output.txt
location: Any
size: 13

# Section 6
- doc: Test for section 6
job: 06-params/tar-param-job.yml
tool: 06-params/tar-param.cwl
output:
example_out:
class: File
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
basename: goodbye.txt
location: Any
size: 0

# Section 7 depends on side-effects

# Section 8
# Note: Skip checking size and checksum of the resulted file because it depends on the external compiler.
- doc: Test for section 8
job: 08-arguments/arguments-job.yml
tool: 08-arguments/arguments.cwl
output:
classfile:
class: File
basename: Hello.class
location: Any

# Section 9 depends on side-effects

# Section 10
# Note: fragile! The order of `foo.txt` and `baz.txt` cannot be determined.
- doc: Test for section 10
job: 10-array-outputs/array-outputs-job.yml
tool: 10-array-outputs/array-outputs.cwl
output:
output:
- class: File
basename: baz.txt
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
location: Any
size: 0
- class: File
basename: foo.txt
checksum: sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709
location: Any
size: 0

# Section 11 depends on side-effects
# Note: One of the tests in this section is expected to be failed
# Rest of the examples depend on side-effects

# Section 12 depends on side-effects
# Section 13 depends on side-effects
# Section 14 depends on side-effects

# Section 15
# Note: Skip checking size and checksum of the resulted file because it depends on the external compiler.
- doc: Test for section 15
job: 15-staging/arguments-job.yml
tool: 15-staging/linkfile.cwl
output:
classfile:
class: File
basename: Hello.class
location: Any

# Section 16
# Note: The checksum and size is always changed for every executions
- doc: Test for section 16
job: 16-file-formats/sample.yml
tool: 16-file-formats/metadata_example.cwl
output:
report:
class: File
basename: output.txt
location: Any

# Section 17
# Note: The checksum and size is always changed for every executions
- doc: Test for section 17 (1st example)
job: 17-metadata/sample.yml
tool: 17-metadata/metadata_example2.cwl
output:
report:
class: File
basename: output.txt
location: Any

- doc: Test for section 17 (extended example)
job: 17-metadata/sample.yml
tool: 17-metadata/metadata_example3.cwl
output:
report:
class: File
basename: output.txt
location: Any

# Section 19
# See: Issue #48
# - doc: Test for section 19
# job: 19-custom-types/custom-types.yml
# tool: 19-custom-types/costom-types.cwl
# output:
# i5Annotations:
# class: File
# basename: test_proteins.i5_annotations
# location: Any
# size: Any # To be fixed

# Section 20
# See: Issue #48
# - doc: Test for section 20
# job: 20-software-requirements/custom-types.yml
# tool: 20-software-requirements/costom-types.cwl
# output:
# i5Annotations:
# class: File
# basename: test_proteins.i5_annotations
# location: Any
# size: Any # To be fixed

# Section 21
# Note: Skip checking size and checksum of the resulted file because it depends on the external compiler.
- doc: Test for section 21
job: 21-1st-workflow/1st-workflow-job.yml
tool: 21-1st-workflow/1st-workflow.cwl
output:
classout:
class: File
basename: Hello.class
location: Any

# Section 22
# Note: Skip checking size and checksum of the resulted file because it depends on the external compiler.
- doc: Test for section 22
tool: 22-nested-workflows/nestedworkflows.cwl
output:
classout:
class: File
basename: Hello.class
location: Any