Skip to content

Commit e61e6e2

Browse files
LanderOttomr-c
authored andcommitted
This commit adds a test of a optional list
1 parent 7cc0c1c commit e61e6e2

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

conformance_tests.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,20 @@
872872
Test optional output file and optional secondaryFile on output.
873873
tags: [ docker, command_line_tool ]
874874

875+
- tool: tests/optional-list-output.cwl
876+
job: tests/any-type-job.json
877+
output:
878+
files: null
879+
log:
880+
location: output.txt
881+
size: 6
882+
class: "File"
883+
checksum: "sha1$f572d396fae9206628714fb2ce00f72e94f2258f"
884+
id: output_optional_list
885+
doc: >-
886+
Test optional list of files.
887+
tags: [ command_line_tool ]
888+
875889
- job: tests/empty.json
876890
output:
877891
out: "\n"

tests/optional-list-output.cwl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.3.0-dev1
4+
inputs:
5+
input3:
6+
type: string
7+
inputBinding: {position: 1}
8+
outputs:
9+
log:
10+
type: File
11+
outputBinding:
12+
glob: output.txt
13+
files:
14+
type: File[]?
15+
outputBinding:
16+
glob: bumble*.txt
17+
baseCommand: echo
18+
stdout: output.txt

0 commit comments

Comments
 (0)