Skip to content

Commit 40fa8ca

Browse files
committed
Add test for fractional storage values
1 parent 5fcab17 commit 40fa8ca

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

conformance_tests.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3340,7 +3340,22 @@
33403340
"checksum": "sha1$7448d8798a4380162d4b56f9b452e2f6f9e24e7a"
33413341
}
33423342
tags: [ resource, command_line_tool ]
3343-
id: 254
3343+
id: 255
3344+
3345+
- job: tests/empty.json
3346+
tool: tests/storage_float.cwl
3347+
label: storage_float
3348+
doc: Test float value for ram/tmpdir/outdir Min(Max) is rounded up
3349+
output:
3350+
output: {
3351+
"location": "values.txt",
3352+
"basename": "values.txt",
3353+
"class": "File",
3354+
"checksum": "sha1$c73f68407c144c5336a6c14e7ec79ee470231bd7",
3355+
"size": 12
3356+
}
3357+
tags: [ resource, command_line_tool ]
3358+
id: 256
33443359

33453360
- $import: tests/string-interpolation/test-index.yaml
33463361

tests/storage_float.cwl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.2.0-dev4
4+
5+
requirements:
6+
ResourceRequirement:
7+
ramMin: 254.1
8+
ramMax: 254.9
9+
tmpdirMin: 255.1
10+
tmpdirMax: 255.9
11+
outdirMin: 256.1
12+
outdirMax: 256.9
13+
14+
inputs: []
15+
16+
outputs:
17+
output: stdout
18+
19+
baseCommand: echo
20+
21+
stdout: values.txt
22+
23+
arguments: [ $(runtime.ram), $(runtime.tmpdirSize), $(runtime.outdirSize) ]

0 commit comments

Comments
 (0)