Skip to content

Commit 5abc3d3

Browse files
kinowmr-c
authored andcommitted
Adding a test to verify that runtime.outdir can be used with output glob
1 parent cef8fb7 commit 5abc3d3

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

conformance_tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3501,3 +3501,34 @@
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+
"basename": "bar.txt",
3522+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
3523+
"class": "File",
3524+
"size": 0
3525+
}
3526+
]
3527+
}
3528+
]
3529+
}
3530+
}
3531+
tool: tests/runtime-outdir.cwl
3532+
doc: |
3533+
Use of $(runtime.outdir) for outputBinding glob.
3534+
tags: [ required, command_line_tool ]

tests/runtime-outdir.cwl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cwlVersion: v1.2
2+
class: CommandLineTool
3+
baseCommand: [bash, -c]
4+
arguments:
5+
- |
6+
mkdir -p foo
7+
touch baz.txt
8+
touch foo/bar.txt
9+
inputs: []
10+
outputs:
11+
stuff:
12+
type: Directory
13+
outputBinding:
14+
glob: $(runtime.outdir)

0 commit comments

Comments
 (0)