Skip to content

Commit d432fa1

Browse files
authored
Merge branch '1.2.1_proposed' into dir_with_executable_file
2 parents 84596c7 + f368628 commit d432fa1

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

conformance_tests.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3474,10 +3474,18 @@
34743474
checksum: sha1$0074b1841ab5103cc0442f739d9fb41a33b602ee
34753475
tags: [ step_input, workflow ]
34763476

3477+
- id: nested_types
3478+
job: tests/nested_types.yaml
3479+
tool: tests/nested_types.cwl
3480+
doc: demonstrate usage of nested types
3481+
output:
3482+
their_name: "Foo Bar"
3483+
tags: [ require, command_line_tool ]
3484+
34773485
- id: input_directory_with_executable_file
34783486
job: tests/input_dir_with_executable_file.yaml
34793487
tool: tests/input_dir_with_executable_file.cwl
34803488
doc: Executable files in input directories retain their execute permissions
34813489
output:
34823490
args: [ "1", "two", "3" ]
3483-
tags: [ required, command_line_tool ]
3491+
tags: [ required, command_line_tool ]

tests/nested_types.cwl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.2
3+
class: CommandLineTool
4+
5+
requirements:
6+
SchemaDefRequirement:
7+
types:
8+
- name: name
9+
type: record
10+
fields:
11+
- name: first
12+
type: string
13+
- name: last
14+
type: string
15+
- name: person
16+
type: record
17+
fields:
18+
- name: name
19+
type: name
20+
- name: age
21+
type: int
22+
inputs:
23+
my_person: person
24+
25+
outputs:
26+
their_name: string
27+
28+
baseCommand: echo
29+
30+
stdout: cwl.output.json
31+
32+
arguments:
33+
- '{"their_name": "$(inputs.my_person.name.first) $(inputs.my_person.name.last)" }'

tests/nested_types.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
my_person:
2+
name:
3+
first: Foo
4+
last: Bar
5+
age: 42

0 commit comments

Comments
 (0)