Skip to content

Commit 84cfedb

Browse files
LanderOttomr-c
authored andcommitted
Added test on glob when is a list
1 parent 0b1919f commit 84cfedb

File tree

7 files changed

+56
-0
lines changed

7 files changed

+56
-0
lines changed

conformance_tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3402,6 +3402,37 @@
34023402
}
34033403
tags: [ required, command_line_tool ]
34043404

3405+
- id: glob_list
3406+
tool: tests/glob-list.cwl
3407+
job: tests/dir-job1.yml
3408+
doc: Test the glob can be a list
3409+
output: {
3410+
"result": [
3411+
{
3412+
"basename": "a.txt",
3413+
"checksum": "sha1$2ef7bde608ce5404e97d5f042f95f89f1c232871",
3414+
"class": "File",
3415+
"location": Any,
3416+
"size": 12
3417+
},
3418+
{
3419+
"basename": "c.txt",
3420+
"checksum": "sha1$64d7a4802661604891785536e490635a8406f103",
3421+
"class": "File",
3422+
"location": Any,
3423+
"size": 36
3424+
},
3425+
{
3426+
"basename": "b.csv",
3427+
"checksum": "sha1$34bd0059091490789ffcd3fe421df8d4e5388b76",
3428+
"class": "File",
3429+
"location": Any,
3430+
"size": 7
3431+
}
3432+
]
3433+
}
3434+
tags: [ required, command_line_tool ]
3435+
34053436
- id: capture_files
34063437
tool: tests/capture-files.cwl
34073438
job: tests/dir-job.yml

tests/dir-job1.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indir:
2+
class: Directory
3+
location: testdir1

tests/glob-list.cwl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
cwlVersion: v1.3.0-dev1
2+
class: CommandLineTool
3+
baseCommand: [cp, -r]
4+
arguments:
5+
- position: 2
6+
valueFrom: $(runtime.outdir)
7+
inputs:
8+
indir:
9+
type: Directory
10+
inputBinding:
11+
position: 1
12+
outputs:
13+
result:
14+
type: File[]
15+
outputBinding:
16+
glob:
17+
- "$(inputs.indir.basename)/*.txt"
18+
- "$(inputs.indir.basename)/*.csv"

tests/testdir1/a.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World!

tests/testdir1/b.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1,2
2+
3,4

tests/testdir1/c.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello from Common Workflow Language!

tests/testdir1/d

Whitespace-only changes.

0 commit comments

Comments
 (0)