Skip to content

Commit

Permalink
new: add conformance test for nameroot and nameext
Browse files Browse the repository at this point in the history
  • Loading branch information
undu committed Jul 11, 2017
1 parent 557bd4f commit 66296ad
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
19 changes: 18 additions & 1 deletion v1.0/conformance_test_v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -995,4 +995,21 @@
args: [-A,'2',-B,baz,-C,'10','9','8','7','6','5','4','3','2','1']
job: v1.0/empty.json
tool: v1.0/inline-js.cwl
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool

- job: v1.0/basename-fields-job.yml
output:
extFile:
checksum: sha1$1334e67fe9eb70db8ae14ccfa6cfb59e2cc24eae
class: File
size: 4
location: Any
path: Any
rootFile:
checksum: sha1$b4a583c391e234cf210e1d576f68f674c8ad7ecd
class: File
size: 10
location: Any
path: Any
tool: ./v1.0/basename-fields-test.cwl
doc: Test that nameroot and nameext are generated from basename at execution time by the runner
5 changes: 5 additions & 0 deletions v1.0/v1.0/basename-fields-job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cwlVersion: v1.0
tool:
class: File
path: echo-tool.cwl

33 changes: 33 additions & 0 deletions v1.0/v1.0/basename-fields-test.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
cwlVersion: v1.0
class: Workflow

requirements:
- class: StepInputExpressionRequirement

inputs:
tool: File

outputs:
rootFile:
type: File
outputSource: root/out
extFile:
type: File
outputSource: ext/out

steps:
root:
run: echo-file-tool.cwl
in:
tool: tool
in:
valueFrom: $(inputs.tool.nameroot)
out: [out]
ext:
run: echo-file-tool.cwl
in:
tool: tool
in:
valueFrom: $(inputs.tool.nameext)
out: [out]

12 changes: 12 additions & 0 deletions v1.0/v1.0/echo-file-tool.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cwlVersion: v1.0
class: CommandLineTool
baseCommand: [echo]
inputs:
in:
type: string
inputBinding:
position: 1
outputs:
out:
type: stdout

0 comments on commit 66296ad

Please sign in to comment.