Skip to content

Commit 60a9635

Browse files
committed
Test for literal directory with literal subdirectory.
Test idea from @mvdbeek as part of the Galaxy CWL implementation
1 parent 381302c commit 60a9635

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

conformance_tests.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3421,3 +3421,14 @@
34213421
output1: 1
34223422
output2: 2
34233423
output3: 3
3424+
3425+
- tool: tests/cat4-from-dir.cwl
3426+
job: tests/cat-from-dir-with-literal-file-in-subdir.yaml
3427+
output:
3428+
output_file:
3429+
checksum: sha1$ef88e689559565999700d6fea7cf7ba306d04360
3430+
class: File
3431+
size: 26
3432+
label: directory_literal_with_literal_file_in_subdir_nostdin
3433+
doc: Test non-stdin reference to literal File via a nested Directory literal
3434+
tags: [ command_line_tool, required ]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dir1:
2+
class: Directory
3+
basename: cwl
4+
listing:
5+
- class: Directory
6+
basename: subdir
7+
listing:
8+
- class: File
9+
basename: literal.txt
10+
contents: "I'm a File literal; howdy!"

tests/cat4-from-dir.cwl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.2
4+
inputs:
5+
dir1:
6+
type: Directory
7+
inputBinding:
8+
valueFrom: $(self.listing[0].listing[0].path)
9+
outputs:
10+
output_file:
11+
type: File
12+
outputBinding: {glob: output.txt}
13+
baseCommand: cat
14+
stdout: output.txt

0 commit comments

Comments
 (0)