diff --git a/conformance_tests.yaml b/conformance_tests.yaml index cc2cb1e..28b8be1 100644 --- a/conformance_tests.yaml +++ b/conformance_tests.yaml @@ -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 ] diff --git a/tests/itemseparator-job1.yml b/tests/itemseparator-job1.yml new file mode 100644 index 0000000..1eb2d19 --- /dev/null +++ b/tests/itemseparator-job1.yml @@ -0,0 +1,2 @@ +i: + ['b', 'd'] \ No newline at end of file diff --git a/tests/itemseparator-job2.yml b/tests/itemseparator-job2.yml new file mode 100644 index 0000000..e6a4eee --- /dev/null +++ b/tests/itemseparator-job2.yml @@ -0,0 +1,2 @@ +i: + ['b'] \ No newline at end of file diff --git a/tests/itemseparator1.cwl b/tests/itemseparator1.cwl new file mode 100644 index 0000000..70c770b --- /dev/null +++ b/tests/itemseparator1.cwl @@ -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