Skip to content

Commit cb782b7

Browse files
author
Peter Amstutz
committed
Merge branch 'undu-basename-fields' into v1.0-errata
2 parents 1166ea4 + 8526423 commit cb782b7

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,3 +1087,20 @@
10871087
size: 1111
10881088
tool: v1.0/revsort-packed.cwl#main
10891089
doc: Test compound workflow document
1090+
1091+
- job: v1.0/basename-fields-job.yml
1092+
output:
1093+
extFile:
1094+
checksum: sha1$301a72c82a835e1737caf30f94d0eec210c4d9f1
1095+
class: File
1096+
size: 5
1097+
location: Any
1098+
path: Any
1099+
rootFile:
1100+
checksum: sha1$b4a583c391e234cf210e1d576f68f674c8ad7ecd
1101+
class: File
1102+
size: 10
1103+
location: Any
1104+
path: Any
1105+
tool: v1.0/basename-fields-test.cwl
1106+
doc: Test that nameroot and nameext are generated from basename at execution time by the runner

v1.0/v1.0/basename-fields-job.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cwlVersion: v1.0
2+
tool:
3+
class: File
4+
path: echo-tool.cwl
5+

v1.0/v1.0/basename-fields-test.cwl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
cwlVersion: v1.0
2+
class: Workflow
3+
4+
requirements:
5+
- class: StepInputExpressionRequirement
6+
7+
inputs:
8+
tool: File
9+
10+
outputs:
11+
rootFile:
12+
type: File
13+
outputSource: root/out
14+
extFile:
15+
type: File
16+
outputSource: ext/out
17+
18+
steps:
19+
root:
20+
run: echo-file-tool.cwl
21+
in:
22+
tool: tool
23+
in:
24+
valueFrom: $(inputs.tool.nameroot)
25+
out: [out]
26+
ext:
27+
run: echo-file-tool.cwl
28+
in:
29+
tool: tool
30+
in:
31+
valueFrom: $(inputs.tool.nameext)
32+
out: [out]
33+

v1.0/v1.0/echo-file-tool.cwl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cwlVersion: v1.0
2+
class: CommandLineTool
3+
baseCommand: [echo]
4+
inputs:
5+
in:
6+
type: string
7+
inputBinding:
8+
position: 1
9+
outputs:
10+
out:
11+
type: stdout
12+

0 commit comments

Comments
 (0)