Skip to content

Commit 04d9dac

Browse files
author
Peter Amstutz
committed
Add test for command line inputBinding of Directory input parameter.
1 parent 8053c4b commit 04d9dac

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@
713713
"class": "File"
714714
}
715715
tool: v1.0/dir.cwl
716-
doc: Test directory input
716+
doc: Test directory input with parameter reference
717717

718718
- job: v1.0/dir-job.yml
719719
output:
@@ -809,3 +809,14 @@
809809
size: 21
810810
tool: v1.0/nameroot.cwl
811811
doc: Test nameroot/nameext expression in arguments, stdout
812+
813+
- job: v1.0/dir-job.yml
814+
output:
815+
"outlist": {
816+
"size": 20,
817+
"location": "output.txt",
818+
"checksum": "sha1$13cda8661796ae241da3a18668fb552161a72592",
819+
"class": "File"
820+
}
821+
tool: v1.0/dir6.cwl
822+
doc: Test directory input with inputBinding

v1.0/v1.0/dir6.cwl

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

0 commit comments

Comments
 (0)