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 #54

Open
wants to merge 1 commit 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3258,3 +3258,24 @@
hash-prefixed "main"
tags: [ required, command_line_tool ]

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

- job: tests/itemseparator-job2.yml
output:
o:
class: File
checksum: sha1$90ce62edf2fe4940e041a68b13e7b5f9d02bbf51
size: 4
tool: tests/itemseparator1.cwl
label: itemseparator_single_item
doc: Test itemSeparator with single input in array input.
tags: [ required, command_line_tool ]
2 changes: 2 additions & 0 deletions tests/itemseparator-job1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
i:
['b', 'd']
2 changes: 2 additions & 0 deletions tests/itemseparator-job2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
i:
['b']
24 changes: 24 additions & 0 deletions tests/itemseparator1.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env cwl-runner
class: CommandLineTool
cwlVersion: v1.1.0-dev1
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