From 5b61b92beaa95e31fdf931d2f46d3c4b658cbb0f Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 5 May 2022 00:11:03 +1200 Subject: [PATCH] Adding a test to verify that runtime.outdir can be used with output glob --- conformance_tests.yaml | 31 +++++++++++++++++++++++++++++++ tests/runtime-outdir.cwl | 14 ++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 tests/runtime-outdir.cwl diff --git a/conformance_tests.yaml b/conformance_tests.yaml index e6474210..11e417e4 100644 --- a/conformance_tests.yaml +++ b/conformance_tests.yaml @@ -3501,3 +3501,34 @@ Use of expression tool to change basename of file, then correctly staging the file using the new name. tags: [ required, command_line_tool, inline_javascript, expression_tool ] + +- label: runtime-outdir + output: { + "stuff": { + "class": "Directory", + "listing": [ + { + "basename": "baz.txt", + "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709", + "class": "File", + "size": 0 + }, + { + "basename": "foo", + "class": "Directory", + "listing": [ + { + "basename": "bar.txt", + "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709", + "class": "File", + "size": 0 + } + ] + } + ] + } + } + tool: tests/runtime-outdir.cwl + doc: | + Use of $(runtime.outdir) for outputBinding glob. + tags: [ required, command_line_tool ] diff --git a/tests/runtime-outdir.cwl b/tests/runtime-outdir.cwl new file mode 100644 index 00000000..41bb7b0b --- /dev/null +++ b/tests/runtime-outdir.cwl @@ -0,0 +1,14 @@ +cwlVersion: v1.2 +class: CommandLineTool +baseCommand: [bash, -c] +arguments: + - | + mkdir -p foo + touch baz.txt + touch foo/bar.txt +inputs: [] +outputs: + stuff: + type: Directory + outputBinding: + glob: $(runtime.outdir)