Skip to content

Commit 2b98c03

Browse files
author
Peter Amstutz
committed
Test case for creating empty writable directory using InitialWorkDirRequirement
1 parent 50f052e commit 2b98c03

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,3 +981,22 @@
981981
size: 15
982982
tool: v1.0/imported-hint.cwl
983983
doc: Test hints with $import
984+
985+
- job: v1.0/empty.json
986+
output:
987+
out: {
988+
"basename": "emptyWritableDir",
989+
"listing": [
990+
{
991+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
992+
"basename": "blurg",
993+
"location": "blurg",
994+
"class": "File",
995+
"size": 0
996+
}
997+
],
998+
"location": "emptyWritableDir",
999+
"class": "Directory"
1000+
}
1001+
tool: v1.0/writable-dir.cwl
1002+
doc: Test empty writable dir with InitialWorkDirRequirement

v1.0/v1.0/writable-dir.cwl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
cwlVersion: v1.0
2+
class: CommandLineTool
3+
requirements:
4+
InlineJavascriptRequirement: {}
5+
InitialWorkDirRequirement:
6+
listing:
7+
- entryname: emptyWritableDir
8+
writable: true
9+
entry: "$({class: 'Directory', listing: []})"
10+
inputs: []
11+
outputs:
12+
out:
13+
type: Directory
14+
outputBinding:
15+
glob: emptyWritableDir
16+
arguments: [touch, emptyWritableDir/blurg]

0 commit comments

Comments
 (0)