Skip to content

Commit 0fee55d

Browse files
kinowGlassOfWhiskey
authored andcommitted
Adding a test to verify that runtime.outdir can be used with output glob
1 parent ff38b41 commit 0fee55d

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
@@ -3507,3 +3507,34 @@
35073507
Use of expression tool to change basename of file, then correctly staging
35083508
the file using the new name.
35093509
tags: [ required, command_line_tool, inline_javascript, expression_tool ]
3510+
3511+
- label: runtime-outdir
3512+
output: {
3513+
"stuff": {
3514+
"class": "Directory",
3515+
"listing": [
3516+
{
3517+
"basename": "baz.txt",
3518+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
3519+
"class": "File",
3520+
"size": 0
3521+
},
3522+
{
3523+
"basename": "foo",
3524+
"class": "Directory",
3525+
"listing": [
3526+
{
3527+
"basename": "bar.txt",
3528+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
3529+
"class": "File",
3530+
"size": 0
3531+
}
3532+
]
3533+
}
3534+
]
3535+
}
3536+
}
3537+
tool: tests/runtime-outdir.cwl
3538+
doc: |
3539+
Use of $(runtime.outdir) for outputBinding glob.
3540+
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)