Skip to content

Commit 2f6a58e

Browse files
authored
Merge pull request #26 from common-workflow-language/test_glob_directory
Test glob directory
2 parents 576ebfd + b4c4c99 commit 2f6a58e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

conformance_tests.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,3 +2711,20 @@
27112711
}
27122712
]
27132713
}
2714+
2715+
- doc: Test that OutputBinding.glob accepts Directories
2716+
job: tests/empty.json
2717+
label: outputbinding_glob_directory
2718+
tool: tests/glob_directory.cwl
2719+
output:
2720+
directories:
2721+
- basename: "a_dir"
2722+
class: "Directory"
2723+
listing: []
2724+
- basename: "b_dir"
2725+
class: "Directory"
2726+
listing: []
2727+
- basename: "c_dir"
2728+
class: "Directory"
2729+
listing: []
2730+
tags: [ required, command_line_tool ]

tests/glob_directory.cwl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.1.0-dev1
3+
class: CommandLineTool
4+
5+
inputs: []
6+
baseCommand: [mkdir, a_dir, b_dir, c_dir]
7+
outputs:
8+
directories:
9+
type: Directory[]
10+
outputBinding: { glob: '[a,b,c]_dir' }

0 commit comments

Comments
 (0)