-
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.
- Loading branch information
Showing
212 changed files
with
3,980 additions
and
1,092 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
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
55 changes: 55 additions & 0 deletions
55
centaur/src/main/resources/standardTestCases/cached_copy/cached_copy.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,55 @@ | ||
version 1.0 | ||
|
||
workflow cached_inputs { | ||
Array[Int] one_to_ten = [1,2,3,4,5,6,7,8,9,10] | ||
|
||
call ten_lines | ||
|
||
scatter (x in one_to_ten) { | ||
call read_line { | ||
input: | ||
file=ten_lines.text, | ||
line_number=x | ||
} | ||
} | ||
output { | ||
Array[String] lines = read_line.line | ||
} | ||
} | ||
|
||
task ten_lines { | ||
command { | ||
echo "Line 1 | ||
Line 2 | ||
Line 3 | ||
Line 4 | ||
Line 5 | ||
Line 6 | ||
Line 7 | ||
Line 8 | ||
Line 9 | ||
Line 10" > outfile.txt | ||
} | ||
output { | ||
File text = "outfile.txt" | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} | ||
|
||
task read_line { | ||
input { | ||
File file | ||
Int line_number | ||
} | ||
command { | ||
sed -n ~{line_number}p ~{file} | ||
} | ||
output { | ||
String line = read_string(stdout()) | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
centaur/src/main/resources/standardTestCases/dollars_in_strings.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,14 @@ | ||
name: dollars_in_strings | ||
testFormat: workflowsuccess | ||
|
||
files { | ||
workflow: dollars_in_strings/dollars_in_strings.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: read_dollared_strings | ||
status: Succeeded | ||
"outputs.read_dollared_strings.s1": "${BLAH}" | ||
"outputs.read_dollared_strings.s2": "${BLAH}" | ||
"outputs.read_dollared_strings.s3": "oops ${BLAH}" | ||
} |
32 changes: 32 additions & 0 deletions
32
centaur/src/main/resources/standardTestCases/dollars_in_strings/dollars_in_strings.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,32 @@ | ||
workflow read_dollared_strings { | ||
|
||
call dollars_in_strings | ||
|
||
String dollar = "$" | ||
|
||
output { | ||
String s1 = "${dollar}{BLAH}" | ||
String s2 = s1 | ||
|
||
String s3 = dollars_in_strings.s3 | ||
} | ||
} | ||
|
||
|
||
task dollars_in_strings { | ||
String dollar = "$" | ||
command <<< | ||
cat > foo.txt << 'EOF' | ||
oops ${dollar}{BLAH} | ||
EOF | ||
>>> | ||
output { | ||
File x = "foo.txt" | ||
String s3 = read_string(x) | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
centaur/src/main/resources/standardTestCases/drs_tests/wf_level_file_size.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,11 @@ | ||
version 1.0 | ||
|
||
workflow wf_level_file_size { | ||
File input1 = "dos://wb-mock-drs-dev.storage.googleapis.com/4a3908ad-1f0b-4e2a-8a92-611f2123e8b0" | ||
File input2 = "dos://wb-mock-drs-dev.storage.googleapis.com/0c8e7bc6-fd76-459d-947b-808b0605beb3" | ||
|
||
output { | ||
Float fileSize1 = size(input1) | ||
Float fileSize2 = size(input2) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
centaur/src/main/resources/standardTestCases/drs_wf_level_file_size.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,17 @@ | ||
name: drs_wf_level_read_size | ||
testFormat: workflowsuccess | ||
backends: [Papiv2NoDockerHubConfig] | ||
|
||
files { | ||
workflow: drs_tests/wf_level_file_size.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: wf_level_file_size | ||
status: Succeeded | ||
|
||
"outputs.wf_level_file_size.fileSize1": 43.0 | ||
"outputs.wf_level_file_size.fileSize2": 45.0 | ||
} | ||
|
||
|
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
5 changes: 5 additions & 0 deletions
5
centaur/src/main/resources/standardTestCases/virtual_private_cloud/wf_zone_options.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,5 @@ | ||
{ | ||
"default_runtime_attributes": { | ||
"zones": "us-east1-c" | ||
} | ||
} |
Oops, something went wrong.