From 4f65d1fad362d70857e5be34211d474d73cb2c3b Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 8 Nov 2016 17:10:23 -0500 Subject: [PATCH] Add test for dockerOutputDirectory option of DockerRequirement. --- v1.0/conformance_test_v1.0.yaml | 11 +++++++++++ v1.0/v1.0/docker-output-dir.cwl | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 v1.0/v1.0/docker-output-dir.cwl diff --git a/v1.0/conformance_test_v1.0.yaml b/v1.0/conformance_test_v1.0.yaml index 1d0d2e5dc..4c5a5ef8d 100644 --- a/v1.0/conformance_test_v1.0.yaml +++ b/v1.0/conformance_test_v1.0.yaml @@ -960,3 +960,14 @@ size: 19 tool: v1.0/file-literal-ex.cwl doc: Test file literal output created by ExpressionTool + +- job: v1.0/empty.json + output: + "thing": { + "checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709", + "location": "thing", + "class": "File", + "size": 0 + } + tool: v1.0/docker-output-dir.cwl + doc: Test dockerOutputDirectory diff --git a/v1.0/v1.0/docker-output-dir.cwl b/v1.0/v1.0/docker-output-dir.cwl new file mode 100644 index 000000000..f2bc3c5fc --- /dev/null +++ b/v1.0/v1.0/docker-output-dir.cwl @@ -0,0 +1,13 @@ +class: CommandLineTool +cwlVersion: v1.0 +requirements: + DockerRequirement: + dockerPull: debian:8 + dockerOutputDirectory: /other +inputs: [] +outputs: + thing: + type: File + outputBinding: + glob: thing +baseCommand: ["touch", "/other/thing"]