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 test that names are preserved with reverse mapping of output. Al… #502

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions v1.0/conformance_test_v1.0.yaml
Expand Up @@ -286,6 +286,12 @@
tool: "v1.0/scatter-wf4.cwl#main"
doc: Test workflow scatter with two empty scatter parameters and dotproduct join method

- job: v1.0/scatter-job1.json
output:
out: ["foo one", "foo two", "foo three", "foo four"]
tool: v1.0/scatter-wf5.cwl
doc: Test workflow scatter with step out as array of objects

- tool: v1.0/echo-tool.cwl
job: v1.0/env-job.json
output:
Expand Down Expand Up @@ -755,6 +761,12 @@
Test support for reading cwl.output.json when running in a Docker container
and just 'location' is provided.

- job: v1.0/empty.json
output: {}
tool: v1.0/test-cwl-out-wf.cwl
doc: |
Test support for reading cwl.output.json in a workflow.

- job: v1.0/abc.json
output:
files: [{
Expand Down
7 changes: 7 additions & 0 deletions v1.0/v1.0/checkname.cwl
@@ -0,0 +1,7 @@
cwlVersion: v1.0
class: CommandLineTool
inputs:
file1: File
expect: string
outputs: []
arguments: [test, '$(inputs.file1.path)', '=', '$(inputs.file1.dirname)/$(inputs.expect)']
38 changes: 38 additions & 0 deletions v1.0/v1.0/scatter-wf5.cwl
@@ -0,0 +1,38 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: Workflow
inputs:
inp: string[]
outputs:
out:
type: string[]
outputSource: step1/echo_out

requirements:
- class: ScatterFeatureRequirement

steps:
step1:
in:
echo_in: inp
out:
- id: echo_out
scatter: echo_in
run:
class: CommandLineTool
inputs:
echo_in:
type: string
inputBinding: {}
outputs:
echo_out:
type: string
outputBinding:
glob: "step1_out"
loadContents: true
outputEval: $(self[0].contents)
baseCommand: "echo"
arguments:
- "-n"
- "foo"
stdout: "step1_out"
19 changes: 19 additions & 0 deletions v1.0/v1.0/test-cwl-out-wf.cwl
@@ -0,0 +1,19 @@
class: Workflow
cwlVersion: v1.0
inputs: []
outputs: []
steps:
step1:
in:
file1:
default:
class: File
location: hello.txt
out: [foo]
run: test-cwl-out4.cwl
step2:
in:
file1: step1/foo
expect: {default: hello.txt}
out: []
run: checkname.cwl
19 changes: 19 additions & 0 deletions v1.0/v1.0/test-cwl-out4.cwl
@@ -0,0 +1,19 @@
class: CommandLineTool
cwlVersion: v1.0
requirements:
- class: ShellCommandRequirement
hints:
DockerRequirement:
dockerPull: "debian:wheezy"

inputs:
file1: File

outputs:
- id: foo
type: File

arguments:
- valueFrom: >
echo '{"foo": {"path": "$(inputs.file1.path)", "class": "File"} }' > cwl.output.json
shellQuote: false