Skip to content

Commit 0ee8436

Browse files
authored
Merge pull request #29 from common-workflow-language/20190124_v1.0_refresh
refresh conformance tests from v1.0.x
2 parents b1a61c2 + 6f555d3 commit 0ee8436

31 files changed

+843
-27
lines changed

conformance_tests.yaml

Lines changed: 288 additions & 23 deletions
Large diffs are not rendered by default.

tests/anon_enum_inside_array.cwl

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
cwlVersion: v1.1.0-dev1
2+
class: CommandLineTool
3+
inputs:
4+
first:
5+
type:
6+
type: record
7+
fields:
8+
species:
9+
- type: enum
10+
symbols: [homo_sapiens, mus_musculus]
11+
- "null"
12+
second:
13+
type:
14+
- "null"
15+
- type: enum
16+
symbols: [homo_sapiens, mus_musculus]
17+
baseCommand: echo
18+
arguments:
19+
- prefix: first
20+
valueFrom: $(inputs.first.species)
21+
- prefix: second
22+
valueFrom: $(inputs.second)
23+
outputs:
24+
result: stdout
25+

tests/anon_enum_inside_array.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
first:
2+
species: mus_musculus
3+
second: homo_sapiens
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cwlVersion: v1.1.0-dev1
2+
class: CommandLineTool
3+
requirements:
4+
SchemaDefRequirement:
5+
types:
6+
- name: vcf2maf_params
7+
type: record
8+
fields:
9+
species:
10+
- "null"
11+
- type: enum
12+
symbols: [homo_sapiens, mus_musculus]
13+
ncbi_build:
14+
- "null"
15+
- type: enum
16+
symbols: [GRCh37, GRCh38, GRCm38]
17+
inputs:
18+
first: vcf2maf_params
19+
baseCommand: echo
20+
arguments:
21+
- prefix: species
22+
valueFrom: $(inputs.first.species)
23+
- prefix: ncbi_build
24+
valueFrom: $(inputs.first.ncbi_build)
25+
outputs:
26+
result: stdout
27+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
first: # "vcf2maf_params" record type.
2+
species: homo_sapiens # enum; valid values: "homo_sapiens", "mus_musculus" (optional)
3+
ncbi_build: GRCh37 # enum; valid values: "GRCh37", "GRCh38", "GRCm38" (optional)
4+

tests/basename-fields-job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cwlVersion: v1.0
1+
cwlVersion: v1.1.0-dev1
22
tool:
33
class: File
44
path: echo-tool.cwl # could have been any file, this isn't a secret CWL feature :-)

tests/cat-from-dir-job.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dir1:
2+
class: Directory
3+
basename: cwl
4+
listing:
5+
- class: File
6+
path: hello.txt
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dir1:
2+
class: Directory
3+
basename: cwl
4+
listing:
5+
- class: File
6+
basename: literal.txt
7+
contents: "I'm a File literal; howdy!"

tests/cat-from-dir.cwl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
class: CommandLineTool
4+
cwlVersion: v1.1.0-dev1
5+
6+
inputs:
7+
dir1: Directory
8+
9+
outputs:
10+
output:
11+
type: stdout
12+
13+
baseCommand: [cat]
14+
15+
stdin: $(inputs.dir1.listing[0].path)

tests/cat3-from-dir.cwl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.1.0-dev1
4+
inputs:
5+
dir1:
6+
type: Directory
7+
inputBinding:
8+
valueFrom: $(self.listing[0].path)
9+
outputs:
10+
output_file:
11+
type: File
12+
outputBinding: {glob: output.txt}
13+
baseCommand: cat
14+
stdout: output.txt

0 commit comments

Comments
 (0)