Skip to content

Commit 3be7e7c

Browse files
LanderOttomr-c
authored andcommitted
Added test on glob when is a list
1 parent 4653247 commit 3be7e7c

File tree

7 files changed

+56
-0
lines changed

7 files changed

+56
-0
lines changed

conformance_tests.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -3393,6 +3393,37 @@
33933393
}
33943394
tags: [ required, command_line_tool ]
33953395

3396+
- id: glob_list
3397+
tool: tests/glob-list.cwl
3398+
job: tests/dir-job1.yml
3399+
doc: Test the glob can be a list
3400+
output: {
3401+
"result": [
3402+
{
3403+
"basename": "a.txt",
3404+
"checksum": "sha1$2ef7bde608ce5404e97d5f042f95f89f1c232871",
3405+
"class": "File",
3406+
"location": Any,
3407+
"size": 12
3408+
},
3409+
{
3410+
"basename": "c.txt",
3411+
"checksum": "sha1$64d7a4802661604891785536e490635a8406f103",
3412+
"class": "File",
3413+
"location": Any,
3414+
"size": 36
3415+
},
3416+
{
3417+
"basename": "b.csv",
3418+
"checksum": "sha1$34bd0059091490789ffcd3fe421df8d4e5388b76",
3419+
"class": "File",
3420+
"location": Any,
3421+
"size": 7
3422+
}
3423+
]
3424+
}
3425+
tags: [ required, command_line_tool ]
3426+
33963427
- id: capture_files
33973428
tool: tests/capture-files.cwl
33983429
job: tests/dir-job.yml

tests/dir-job1.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
indir:
2+
class: Directory
3+
location: testdir1

tests/glob-list.cwl

+18
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World!

tests/testdir1/b.csv

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1,2
2+
3,4

tests/testdir1/c.txt

+1
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)