Skip to content

Commit 92b1085

Browse files
author
Peter Amstutz
committed
Add test for ShellCommandRequirement
1 parent 3601b79 commit 92b1085

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

draft-3/draft-3/revsort-job.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

draft-3/draft-3/revsort-job.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"input": {
3+
"class": "File",
4+
"path": "whale.txt"
5+
}
6+
}

draft-3/draft-3/shelltest.cwl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
class: CommandLineTool
2+
description: "Reverse each line using the `rev` command then sort."
3+
requirements:
4+
- class: ShellCommandRequirement
5+
inputs:
6+
- id: "#input"
7+
type: File
8+
outputs:
9+
- id: "#output"
10+
type: File
11+
outputBinding:
12+
glob: output.txt
13+
14+
baseCommand: []
15+
arguments:
16+
- rev
17+
- valueFrom:
18+
engine: cwl:JsonPointer
19+
script: /job/input
20+
- valueFrom: " | "
21+
shellQuote: false
22+
- sort
23+
- valueFrom: "> output.txt"
24+
shellQuote: false

draft-3/draft-3/whale.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

draft-3/draft-3/whale.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Call me Ishmael. Some years ago--never mind how long precisely--having
2+
little or no money in my purse, and nothing particular to interest me on
3+
shore, I thought I would sail about a little and see the watery part of
4+
the world. It is a way I have of driving off the spleen and regulating
5+
the circulation. Whenever I find myself growing grim about the mouth;
6+
whenever it is a damp, drizzly November in my soul; whenever I find
7+
myself involuntarily pausing before coffin warehouses, and bringing up
8+
the rear of every funeral I meet; and especially whenever my hypos get
9+
such an upper hand of me, that it requires a strong moral principle to
10+
prevent me from deliberately stepping into the street, and methodically
11+
knocking people's hats off--then, I account it high time to get to sea
12+
as soon as I can. This is my substitute for pistol and ball. With a
13+
philosophical flourish Cato throws himself upon his sword; I quietly
14+
take to the ship. There is nothing surprising in this. If they but knew
15+
it, almost all men in their degree, some time or other, cherish very
16+
nearly the same feelings towards the ocean with me.

0 commit comments

Comments
 (0)