Skip to content

Commit cf28454

Browse files
author
Peter Amstutz
committed
Add test for using initial work dir, docker, and secondary files.
1 parent 2cf0896 commit cf28454

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,3 +867,19 @@
867867
}
868868
tool: "v1.0/js-expr-req-wf.cwl#wf"
869869
doc: Test that expressionLib requirement of individual tool step overrides expressionLib of workflow.
870+
871+
- job: v1.0/initialworkdirrequirement-docker-out-job.json
872+
output:
873+
OUTPUT:
874+
"checksum": "sha1$aeb3d11bdf536511649129f4077d5cda6a324118"
875+
"location": "ref.fasta"
876+
"secondaryFiles": [{
877+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
878+
"location": "ref.fasta.fai",
879+
"class": "File",
880+
"size": 0
881+
}]
882+
"class": "File"
883+
"size": 12010
884+
tool: v1.0/initialworkdirrequirement-docker-out.cwl
885+
doc: Test output of InitialWorkDir
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"INPUT": {
3+
"class": "File",
4+
"location": "ref.fasta"
5+
}
6+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
cwlVersion: v1.0
4+
5+
requirements:
6+
- class: DockerRequirement
7+
dockerPull: debian:8
8+
- class: InitialWorkDirRequirement
9+
listing:
10+
- $(inputs.INPUT)
11+
12+
class: CommandLineTool
13+
14+
inputs:
15+
- id: INPUT
16+
type: File
17+
18+
outputs:
19+
- id: OUTPUT
20+
type: File
21+
outputBinding:
22+
glob: $(inputs.INPUT.basename)
23+
secondaryFiles:
24+
- .fai
25+
26+
arguments:
27+
- valueFrom: $(inputs.INPUT.basename).fai
28+
position: 0
29+
30+
baseCommand: [touch]

0 commit comments

Comments
 (0)