Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed May 1, 2024
1 parent 88bf8f5 commit 275c36f
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion tests/runner.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source tests/bash-tap/bash-tap-bootstrap
export PYTHONPATH="$SOURCE_DIR:$PYTHONPATH"
miniwdl="python3 -m WDL"

plan tests 89
plan tests 90

$miniwdl run_self_test
is "$?" "0" "run_self_test"
Expand Down Expand Up @@ -599,3 +599,31 @@ workflow outer {
EOF
MINIWDL__SCHEDULER__SUBWORKFLOW_CONCURRENCY=2 $miniwdl run --dir nested_deadlock outer.wdl
is "$?" "0" "avoid deadlocking on nested subworkflows"

cat << 'EOF' > issue686.wdl
version 1.1
struct ReadGroup {
String ID
String? KS
}
task test_task {
input {
ReadGroup read_group
}
command <<<
if [ -z "~{read_group.KS}" ]
then
echo "KS is empty"
fi
>>>
}
EOF
$miniwdl run issue686.wdl -i '{
"read_group": {
"ID": "test"
}
}'
is "$?" "0" "ensure optional fields in structs initialized from JSON (issue 686 regression)"

0 comments on commit 275c36f

Please sign in to comment.