Skip to content

Commit a486e91

Browse files
author
Peter Amstutz
committed
Add conformance test that files in initialworkdir have $(inputs) in $(outdir).
1 parent cb782b7 commit a486e91

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,3 +1104,8 @@
11041104
path: Any
11051105
tool: v1.0/basename-fields-test.cwl
11061106
doc: Test that nameroot and nameext are generated from basename at execution time by the runner
1107+
1108+
- job: v1.0/wc-job.json
1109+
output: {}
1110+
tool: v1.0/initialwork-path.cwl
1111+
doc: Test that file path in $(inputs) for initialworkdir is in $(outdir).

v1.0/v1.0/initialwork-path.cwl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.0
3+
requirements:
4+
InitialWorkDirRequirement:
5+
listing:
6+
- entry: $(inputs.file1)
7+
entryname: bob.txt
8+
ShellCommandRequirement: {}
9+
inputs:
10+
file1: File
11+
outputs: []
12+
arguments:
13+
- shellQuote: false
14+
valueFrom: |
15+
test "$(inputs.file1.path)" = "$(runtime.outdir)/bob.txt"

0 commit comments

Comments
 (0)