Skip to content

Commit e39618e

Browse files
committed
Adding a test to verify that runtime.outdir can be used with output glob
1 parent f0edcc4 commit e39618e

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

conformance_tests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,3 +3501,33 @@
35013501
Use of expression tool to change basename of file, then correctly staging
35023502
the file using the new name.
35033503
tags: [ required, command_line_tool, inline_javascript, expression_tool ]
3504+
3505+
- label: runtime-outdir
3506+
output: {
3507+
"stuff": {
3508+
"class": "Directory",
3509+
"listing": [
3510+
{
3511+
"basename": "baz.txt",
3512+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
3513+
"class": "File",
3514+
"size": 0
3515+
},
3516+
{
3517+
"basename": "foo",
3518+
"class": "Directory",
3519+
"listing": []
3520+
},
3521+
{
3522+
"basename": "foo.bar.txt",
3523+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
3524+
"class": "File",
3525+
"size": 0
3526+
}
3527+
]
3528+
}
3529+
}
3530+
tool: tests/runtime-outdir.cwl
3531+
doc: |
3532+
Use of $(runtime.outdir) for outputBinding glob.
3533+
tags: [ required, command_line_tool, shell_command ]

tests/runtime-outdir.cwl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cwlVersion: v1.2
2+
class: CommandLineTool
3+
inputs: []
4+
outputs:
5+
stuff:
6+
type: Directory
7+
outputBinding:
8+
glob: $(runtime.outdir)
9+
requirements:
10+
ShellCommandRequirement: {}
11+
arguments: [{shellQuote: false, valueFrom: "mkdir -p foo && touch baz.txt && touch foo.bar.txt"}]

0 commit comments

Comments
 (0)