Skip to content

Commit eb9449f

Browse files
author
Peter Amstutz
committed
Adding directory feature tests.
1 parent 9dfbb8e commit eb9449f

File tree

7 files changed

+71
-1
lines changed

7 files changed

+71
-1
lines changed

draft-4/conformance_test_draft-4.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,4 +735,28 @@
735735
],
736736
}
737737
tool: draft-4/dir3.cwl
738-
doc: Test directory input in Docker
738+
doc: Test directory input in Docker
739+
740+
- job: draft-4/dir4-job.yml
741+
output:
742+
"outlist": {
743+
"size": 20,
744+
"location": "output.txt",
745+
"checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592",
746+
"class": "File"
747+
}
748+
tool: draft-4/dir4.cwl
749+
doc: Test directories in secondaryFiles
750+
751+
- job: draft-4/dir-job.yml
752+
output: {
753+
"outlist": {
754+
"checksum": "sha1$907a866a3e0b7f1fc5a2222531c5fb9063704438",
755+
"path": "/home/peter/work/common-workflow-language/draft-4/draft-4/output.txt",
756+
"size": 33,
757+
"location": "file:///home/peter/work/common-workflow-language/draft-4/draft-4/output.txt",
758+
"class": "File"
759+
}
760+
}
761+
tool: draft-4/dir5.cwl
762+
doc: Test dynamic initial work dir

draft-4/draft-4/dir4-job.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
inf:
2+
class: File
3+
location: hello.tar
4+
secondaryFiles:
5+
- class: File
6+
location: index.py
7+
- entryname: testdir
8+
entry:
9+
class: Directory
10+
location: testdir

draft-4/draft-4/dir4.cwl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class: CommandLineTool
2+
cwlVersion: draft-4.dev3
3+
requirements:
4+
- class: ShellCommandRequirement
5+
inputs:
6+
inf: File
7+
outputs:
8+
outlist:
9+
type: File
10+
outputBinding:
11+
glob: output.txt
12+
baseCommand: []
13+
arguments: ["cd", "$(inputs.inf.dirname)",
14+
{shellQuote: false, valueFrom: "&&"},
15+
"find", ".",
16+
{shellQuote: false, valueFrom: "|"},
17+
"sort"]
18+
stdout: output.txt

draft-4/draft-4/dir5.cwl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class: CommandLineTool
2+
cwlVersion: draft-4.dev3
3+
requirements:
4+
- class: ShellCommandRequirement
5+
- class: InitialWorkDirRequirement
6+
listing: $(inputs.indir.listing)
7+
inputs:
8+
indir: Directory
9+
outputs:
10+
outlist:
11+
type: File
12+
outputBinding:
13+
glob: output.txt
14+
baseCommand: []
15+
arguments: ["find", ".",
16+
{shellQuote: false, valueFrom: "|"},
17+
"sort"]
18+
stdout: output.txt

draft-4/draft-4/testdir/a

Whitespace-only changes.

draft-4/draft-4/testdir/b

Whitespace-only changes.

draft-4/draft-4/testdir/c/d

Whitespace-only changes.

0 commit comments

Comments
 (0)