Skip to content

Commit 66296ad

Browse files
committed
new: add conformance test for nameroot and nameext
1 parent 557bd4f commit 66296ad

File tree

4 files changed

+68
-1
lines changed

4 files changed

+68
-1
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,4 +995,21 @@
995995
args: [-A,'2',-B,baz,-C,'10','9','8','7','6','5','4','3','2','1']
996996
job: v1.0/empty.json
997997
tool: v1.0/inline-js.cwl
998-
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool
998+
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool
999+
1000+
- job: v1.0/basename-fields-job.yml
1001+
output:
1002+
extFile:
1003+
checksum: sha1$1334e67fe9eb70db8ae14ccfa6cfb59e2cc24eae
1004+
class: File
1005+
size: 4
1006+
location: Any
1007+
path: Any
1008+
rootFile:
1009+
checksum: sha1$b4a583c391e234cf210e1d576f68f674c8ad7ecd
1010+
class: File
1011+
size: 10
1012+
location: Any
1013+
path: Any
1014+
tool: ./v1.0/basename-fields-test.cwl
1015+
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)