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 itemSeparator #836

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions v1.0/conformance_test_v1.0.yaml
Expand Up @@ -2590,3 +2590,28 @@
doc: Test an anonymous enum inside an array inside a record, SchemaDefRequirement
tags: [command_line_tool, schema_def]


- job: v1.0/itemseparator-job1.yml
output:
o:
class: File
checksum: sha1$1f44fbdb98150d4ba212e7b2cdec6c9bda27f6ef
size: 8
tool: v1.0/itemseparator1.cwl
label: itemseparator_multiple_items
id: 198
doc: Test itemSeparator with multiple inputs in array input.
tags: [ required, command_line_tool ]


- job: v1.0/itemseparator-job2.yml
output:
o:
class: File
checksum: sha1$90ce62edf2fe4940e041a68b13e7b5f9d02bbf51
size: 4
tool: v1.0/itemseparator1.cwl
label: itemseparator_single_item
id: 199
doc: Test itemSeparator with single input in array input.
tags: [ required, command_line_tool ]
2 changes: 2 additions & 0 deletions v1.0/v1.0/itemseparator-job1.yml
@@ -0,0 +1,2 @@
i:
['b', 'd']
2 changes: 2 additions & 0 deletions v1.0/v1.0/itemseparator-job2.yml
@@ -0,0 +1,2 @@
i:
['b']
24 changes: 24 additions & 0 deletions v1.0/v1.0/itemseparator1.cwl
@@ -0,0 +1,24 @@
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: "v1.0"
doc: "Test itemSeparator with prefix"
hints:
ResourceRequirement:
ramMin: 8
coresMax: 1
inputs:
i:
type: string[]
label: Input File
doc: "Echo these strings"
inputBinding:
position: 1
prefix: a
itemSeparator: " c "
outputs:
o:
type: File
outputBinding:
glob: output.txt
baseCommand: echo
stdout: output.txt