-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate self for command input and fix optional secondary files (#3438)
* populate self for command input and fix optional secondary files
- Loading branch information
Showing
14 changed files
with
131 additions
and
19 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
centaur/src/main/resources/standardTestCases/cwl_input_binding_expression.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: cwl_input_binding_expression | ||
testFormat: workflowsuccess | ||
workflowType: CWL | ||
workflowTypeVersion: v1.0 | ||
workflowRoot: cwl_input_binding_expression | ||
|
||
files { | ||
wdl: cwl_input_binding_expression/cwl_input_binding_expression.cwl | ||
inputs: cwl_input_binding_expression/cwl_input_binding_expression.json | ||
} | ||
|
||
metadata { | ||
"submittedFiles.workflowType": CWL | ||
"submittedFiles.workflowTypeVersion": v1.0 | ||
"outputs.cwl_input_binding_expression.b": "hello world" | ||
} |
25 changes: 25 additions & 0 deletions
25
...resources/standardTestCases/cwl_input_binding_expression/cwl_input_binding_expression.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cwlVersion: v1.0 | ||
$graph: | ||
- id: cwl_input_binding_expression | ||
class: CommandLineTool | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
hints: | ||
DockerRequirement: | ||
dockerPull: "debian:stretch-slim" | ||
inputs: | ||
- id: hello | ||
type: string | ||
inputBinding: | ||
valueFrom: $(self + " world") | ||
position: 1 | ||
outputs: | ||
b: | ||
type: string | ||
outputBinding: | ||
loadContents: true | ||
glob: stdout | ||
outputEval: $(self[0].contents.trim()) | ||
stdout: stdout | ||
baseCommand: [] | ||
arguments: [echo] |
3 changes: 3 additions & 0 deletions
3
...esources/standardTestCases/cwl_input_binding_expression/cwl_input_binding_expression.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"hello": "hello" | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,6 @@ | |
114 | ||
#115 | ||
#116 | ||
117 | ||
#117 | ||
#118 | ||
119 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters