-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-picked carrot files from lb_carrot.
- Loading branch information
1 parent
638fb11
commit fd4e834
Showing
9 changed files
with
92 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version 1.0 | ||
|
||
task compare { | ||
input { | ||
String result | ||
String image_to_use | ||
} | ||
command { | ||
echo "Checking the result from previous test:" | ||
echo "~{result}" | ||
} | ||
runtime { | ||
docker: image_to_use | ||
} | ||
output { | ||
File comparison_result = stdout() | ||
} | ||
} | ||
|
||
workflow eval_workflow { | ||
input { | ||
String result | ||
String image_to_use | ||
} | ||
call compare { | ||
input: | ||
result = result, | ||
image_to_use = image_to_use | ||
} | ||
output { | ||
File comparison_result = compare.comparison_result | ||
} | ||
} |
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,35 @@ | ||
version 1.0 | ||
|
||
task test_htsjdk { | ||
input { | ||
File input_file | ||
String image_to_use | ||
} | ||
command { | ||
echo "pretending to run test on ~{input_file}" | ||
} | ||
runtime { | ||
docker: image_to_use | ||
} | ||
|
||
output { | ||
String result = stdout() | ||
} | ||
} | ||
|
||
workflow test_workflow { | ||
input { | ||
File input_file | ||
String image_to_use | ||
} | ||
call test_htsjdk { | ||
input: | ||
input_file = input_file, | ||
image_to_use = image_to_use | ||
} | ||
output { | ||
String result = test_htsjdk.result | ||
} | ||
} | ||
|
||
|
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,4 @@ | ||
{ | ||
"eval_workflow.result": "test_output:test_workflow.result" | ||
} | ||
|
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,4 @@ | ||
{ | ||
"eval_workflow.image_to_use": "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python3.10 -m carrot_cli test run --test_input test.json --eval_input eval.json 36d33423-15a5-4d8b-aa5d-cb04eb6f6017 |
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,4 @@ | ||
{ | ||
"test_workflow.image_to_use": "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"test_workflow.input_file": "gs://hellbender/test/resources/nio/big.txt" | ||
} |
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 @@ | ||
python3.10 -m carrot_cli template update 03ff49e8-40ee-411e-b16f-f43b377cb6e9 --test_wdl carrot_test.wdl --eval_wdl carrot_eval.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,7 @@ | ||
# This docker build is here to enable Carrot tests | ||
# It's not intended for any other purpose | ||
FROM eclipse-temurin:17 | ||
|
||
COPY . . | ||
RUN ./gradlew compileTestJava | ||
ENTRYPOINT bash |