-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into jd_WX-1409_java17
- Loading branch information
Showing
8 changed files
with
128 additions
and
6 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
centaur/src/main/resources/standardTestCases/prepend_string_option.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,20 @@ | ||
# We expect that when combining a string with an empty option, nothing is output. | ||
# We expect that when combining a string with a present option, the two are concatenated. | ||
# https://github.com/openwdl/wdl/blob/main/versions/1.0/SPEC.md#prepending-a-string-to-an-optional-parameter | ||
|
||
name: prepend_string_option | ||
testFormat: workflowsuccess | ||
|
||
files { | ||
workflow: prepend_string_option/prepend_string_option.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: prepend_string_option | ||
status: Succeeded | ||
|
||
"outputs.prepend_string_option.neither_provided": ".maf" | ||
"outputs.prepend_string_option.first_provided": "outPrefix.maf" | ||
"outputs.prepend_string_option.second_provided": ".outSuffix.maf" | ||
"outputs.prepend_string_option.both_provided": "outPrefix.outSuffix.maf" | ||
} |
33 changes: 33 additions & 0 deletions
33
centaur/src/main/resources/standardTestCases/prepend_string_option/prepend_string_option.wdl
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,33 @@ | ||
version 1.0 | ||
|
||
task prepend_string_option_task { | ||
input { | ||
String? out_prefix | ||
String? out_suffix | ||
} | ||
|
||
command { | ||
touch ${out_prefix}${'.' + out_suffix}.maf | ||
} | ||
|
||
output { | ||
File outFile = "${out_prefix}${'.' + out_suffix}.maf" | ||
} | ||
|
||
runtime { | ||
docker : "ubuntu:latest" | ||
} | ||
} | ||
|
||
workflow prepend_string_option { | ||
call prepend_string_option_task as both {input: out_prefix = "outPrefix", out_suffix = "outSuffix"} | ||
call prepend_string_option_task as first {input: out_prefix = "outPrefix"} | ||
call prepend_string_option_task as second {input: out_suffix = "outSuffix"} | ||
call prepend_string_option_task as neither | ||
output { | ||
String both_provided = basename(both.outFile) | ||
String first_provided = basename(first.outFile) | ||
String second_provided = basename(second.outFile) | ||
String neither_provided = basename(neither.outFile) | ||
} | ||
} |
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