Skip to content

Commit 5b66f2b

Browse files
author
Peter Amstutz
committed
Add test of file literals.
1 parent c1cd55f commit 5b66f2b

File tree

5 files changed

+23
-13
lines changed

5 files changed

+23
-13
lines changed

draft-4/conformance_test_draft-4.yaml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -732,18 +732,12 @@
732732
"class": "Directory",
733733
"listing": [
734734
{
735-
"entryname": "hello.txt",
736-
"entry": {
737-
"class": "File",
738-
"location": "hello.txt"
739-
}
735+
"class": "File",
736+
"location": "hello.txt"
740737
},
741738
{
742-
"entryname": "goodbye.txt",
743-
"entry": {
744-
"class": "File",
745-
"location": "goodbye.txt"
746-
}
739+
"class": "File",
740+
"location": "goodbye.txt"
747741
}
748742
],
749743
}
@@ -785,3 +779,13 @@
785779
}
786780
tool: draft-4/stagefile.cwl
787781
doc: Test writable staged files.
782+
783+
- job: draft-4/file-literal.yml
784+
output:
785+
output_file:
786+
class: File
787+
checksum: sha1$d0e04ff6c413c7d57f9a0ca0a33cd3ab52e2dd9c
788+
location: output.txt
789+
size: 13
790+
tool: draft-4/cat3-tool.cwl
791+
doc: Test file literal as input

draft-4/draft-4/file-literal.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
file1:
2+
class: File
3+
contents: "Hello file literal"

draft-4/draft-4/rename.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ baseCommand: "true"
44
requirements:
55
InitialWorkDirRequirement:
66
listing:
7-
$(inputs.newname): $(inputs.srcfile.location)
7+
- entryname: $(inputs.newname)
8+
entry: $(inputs.srcfile)
89
inputs:
910
srcfile: File
1011
newname: string

draft-4/draft-4/search.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ $graph:
99
requirements:
1010
- class: InitialWorkDirRequirement
1111
listing:
12-
input.txt: $(inputs.file)
12+
- entryname: input.txt
13+
entry: $(inputs.file)
1314
- class: InlineJavascriptRequirement
1415

1516
inputs:

draft-4/draft-4/template-tool.cwl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ requirements:
1010
- "var t = function(s) { return _.template(s)({'inputs': inputs}); };"
1111
- class: InitialWorkDirRequirement
1212
listing:
13-
foo.txt: $(t("The file is <%= inputs.file1.path.split('/').slice(-1)[0] %>\n"))
13+
- entryname: foo.txt
14+
entry: $(t("The file is <%= inputs.file1.path.split('/').slice(-1)[0] %>\n"))
1415
inputs:
1516
- id: file1
1617
type: File

0 commit comments

Comments
 (0)