Skip to content

Commit 979accf

Browse files
GlassOfWhiskeymr-c
authored andcommitted
Fixes #193
1 parent 37a44af commit 979accf

File tree

5 files changed

+77
-0
lines changed

5 files changed

+77
-0
lines changed

tests/iwd/iwd-passthrough5.cwl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.2
3+
doc: Given a directory, emit it unchanged
4+
requirements:
5+
InitialWorkDirRequirement:
6+
listing:
7+
- entry: $(inputs.testdir)
8+
writable: false
9+
inputs:
10+
testdir:
11+
type: Directory
12+
outputs:
13+
testdir:
14+
type: Directory
15+
outputBinding:
16+
glob: $(inputs.testdir.basename)
17+
baseCommand: "true"

tests/iwd/iwd-subdir-job.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
testdir:
2+
class: Directory
3+
path: ../testdir

tests/iwd/iwd-subdir-tool.cwl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.2
3+
doc: Given an input directory, emit a subdirectory as output
4+
requirements:
5+
InitialWorkDirRequirement:
6+
listing:
7+
- entry: $(inputs.testdir)
8+
writable: false
9+
inputs:
10+
testdir:
11+
type: Directory
12+
outputs:
13+
testdir:
14+
type: Directory
15+
outputBinding:
16+
glob: testdir/c
17+
baseCommand: "true"

tests/iwd/iwd-subdir-wf.cwl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class: Workflow
2+
cwlVersion: v1.2
3+
inputs:
4+
testdir: Directory
5+
outputs:
6+
out:
7+
type: Directory
8+
outputSource: step2/testdir
9+
steps:
10+
step1:
11+
run: iwd-subdir-tool.cwl
12+
in:
13+
testdir: testdir
14+
out: [testdir]
15+
step2:
16+
run: iwd-passthrough5.cwl
17+
in:
18+
testdir: step1/testdir
19+
out: [testdir]

tests/iwd/test-index.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,24 @@
297297
"checksum": "sha1$57f77b36009332d236b52b4beca77301b503b27c"
298298
"size": 268866
299299
tags: [ initial_work_dir, command_line_tool ]
300+
301+
- job: iwd-subdir-job.yml
302+
id: iwd-subdir
303+
tool: iwd-subdir-wf.cwl
304+
doc: "Test emitting a subdirectory from initial workdir"
305+
output:
306+
"out": {
307+
"location": "c",
308+
"basename": "c",
309+
"class": "Directory",
310+
"listing": [
311+
{
312+
"location": "d",
313+
"basename": "d",
314+
"class": "File",
315+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
316+
"size": 0
317+
}
318+
]
319+
}
320+
tags: [ initial_work_dir, command_line_tool, workflow ]

0 commit comments

Comments
 (0)