Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test to make sure symlinks to inputs are allowed as outputs #38

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,19 @@
wf.file22:
type: File
value: {regex: '^B$'}
- description: |
Test that symlinks to input files can be used as output files
versions: ["draft-2", "1.0", "1.1"]
id: symlink_output
tags: ["symlinks", "behavior"]
inputs:
dir: tests/symlink_output
wdl: symlink_output.wdl
json: symlink_output.json
outputs:
wf.outfile:
type: File
value: {regex: '^A$'}
- description: |
Test that files with special characters in their names are supported
versions: ["draft-2", "1.0", "1.1"]
Expand Down
2 changes: 2 additions & 0 deletions tests/symlink_output/symlink_output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
42 changes: 42 additions & 0 deletions tests/symlink_output/symlink_output.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version 1.1

workflow wf {
input {
}
call make_file
call forward_file {
input:
infile = make_file.outfile
}

output {
File outfile = forward_file.outfile
}
}

task make_file {
input {
}

command <<<
echo "A" >file1.txt
>>>

output {
File outfile = "file1.txt"
}
}

task forward_file {
input {
File infile
}

command <<<
ln -s ~{infile} file2.txt
>>>

output {
File outfile = "file2.txt"
}
}