Skip to content

Commit 29f22fa

Browse files
Add test to ensure a synthetic file is created properly. (#88)
1 parent 8c3fd9d commit 29f22fa

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

conformance_tests.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,6 +3379,19 @@
33793379
tags: [ resource, command_line_tool ]
33803380
id: 256
33813381

3382+
- job: tests/synth-file-job.yml
3383+
tool: tests/synth-file.cwl
3384+
label: cat_synthetic_file
3385+
doc: Test the generation of a synthetic file with inline contents.
3386+
output:
3387+
sequence: {
3388+
"class": "File",
3389+
"checksum": "sha1$5d64b71392b1e00a3ad893db02d381d58262c2d6",
3390+
"size": 7
3391+
}
3392+
tags: [ required ]
3393+
id: 257
3394+
33823395
- $import: tests/string-interpolation/test-index.yaml
33833396

33843397
- $import: tests/conditionals/test-index.yaml

tests/synth-file-job.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
names:
2+
class: File
3+
contents: |
4+
random

tests/synth-file.cwl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cwlVersion: v1.2
2+
class: CommandLineTool
3+
4+
inputs:
5+
names:
6+
type: File
7+
inputBinding:
8+
position: 1
9+
10+
baseCommand: [ cat ]
11+
12+
outputs:
13+
sequence:
14+
type: stdout

0 commit comments

Comments
 (0)