Skip to content

Commit e604399

Browse files
author
Peter Amstutz
committed
Add tests that $HOME and $TMPDIR are set correctly according to spec.
1 parent a479bbd commit e604399

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,3 +844,13 @@
844844
size: 2
845845
tool: v1.0/nested-array.cwl
846846
doc: Test command line generation of array-of-arrays
847+
848+
- job: v1.0/empty.json
849+
output: {}
850+
tool: v1.0/envvar.cwl
851+
doc: Test $HOME and $TMPDIR are set correctly
852+
853+
- job: v1.0/empty.json
854+
output: {}
855+
tool: v1.0/envvar2.cwl
856+
doc: Test $HOME and $TMPDIR are set correctly in Docker

v1.0/v1.0/envvar.cwl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.0
3+
inputs: []
4+
outputs: []
5+
requirements:
6+
ShellCommandRequirement: {}
7+
arguments: [
8+
echo, {valueFrom: '"HOME=$HOME"', shellQuote: false}, {valueFrom: '"TMPDIR=$TMPDIR"', shellQuote: false},
9+
{valueFrom: '&&', shellQuote: false},
10+
test, {valueFrom: '"$HOME"', shellQuote: false}, "=", $(runtime.outdir),
11+
"-a", {valueFrom: '"$TMPDIR"', shellQuote: false}, "=", $(runtime.tmpdir)]

v1.0/v1.0/envvar2.cwl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class: CommandLineTool
2+
cwlVersion: v1.0
3+
inputs: []
4+
outputs: []
5+
requirements:
6+
ShellCommandRequirement: {}
7+
hints:
8+
DockerRequirement:
9+
dockerPull: debian:8
10+
arguments: [
11+
echo, {valueFrom: '"HOME=$HOME"', shellQuote: false}, {valueFrom: '"TMPDIR=$TMPDIR"', shellQuote: false},
12+
{valueFrom: '&&', shellQuote: false},
13+
test, {valueFrom: '"$HOME"', shellQuote: false}, "=", $(runtime.outdir),
14+
"-a", {valueFrom: '"$TMPDIR"', shellQuote: false}, "=", $(runtime.tmpdir)]

0 commit comments

Comments
 (0)