Skip to content

Commit 5497e1c

Browse files
committed
add missing tests
1 parent 2e07c7c commit 5497e1c

40 files changed

+764
-14
lines changed

conformance_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@
14301430
doc: Test empty writable dir with InitialWorkDirRequirement inside Docker
14311431
tags: [ inline_javascript, initial_work_dir ]
14321432

1433-
- job: tests/dynresreq-job.json
1433+
- job: tests/dynresreq-job.yaml
14341434
tool: tests/dynresreq.cwl
14351435
doc: Test dynamic resource reqs referencing inputs
14361436
output:
@@ -1523,7 +1523,7 @@
15231523
output: {}
15241524
tags: [ required ]
15251525

1526-
- job: tests/dynresreq-job.json
1526+
- job: tests/dynresreq-job.yaml
15271527
doc: Test simple workflow with a dynamic resource requirement
15281528
tool: tests/dynresreq-workflow.cwl
15291529
output:

run_test.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,4 @@ fi
116116

117117
echo
118118

119-
if [[ $failures != 0 ]]; then
120-
echo "$failures tool tests failed"
121-
else
122-
if [[ $runs == 0 ]]; then
123-
echo >&2 "$helpmessage"
124-
echo >&2
125-
exit 1
126-
else
127-
echo "All tool tests succeeded"
128-
fi
129-
fi
130-
131119
exit $failures

tests/Hello.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public class Hello {}

tests/any-type-compat.cwl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
cwlVersion: v1.1.0-dev1
2+
class: Workflow
3+
4+
steps: []
5+
inputs:
6+
input1:
7+
type: Any
8+
input2:
9+
type: Any[]
10+
input3:
11+
type: Any
12+
13+
outputs:
14+
- id: output1
15+
type: string[]
16+
outputSource: input1
17+
- id: output2
18+
type: string[]
19+
outputSource: input2
20+
- id: output3
21+
type: string
22+
outputSource: input3

tests/any-type-job.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"input1": ["hello", "world"],
3+
"input2": ["foo", "bar"],
4+
"input3": "hello"
5+
}

tests/arguments-job.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src:
2+
class: File
3+
path: Hello.java

tests/array-of-strings-job.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
array_input:
2+
- class: File
3+
path: ./hello.txt
4+
- class: File
5+
path: ./hello.2.txt

tests/basename-fields-job.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cwlVersion: v1.0
2+
tool:
3+
class: File
4+
path: echo-tool.cwl # could have been any file, this isn't a secret CWL feature :-)
5+

tests/basename-fields-test.cwl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
cwlVersion: v1.1.0-dev1
2+
class: Workflow
3+
4+
requirements:
5+
- class: StepInputExpressionRequirement
6+
7+
inputs:
8+
tool: File
9+
10+
outputs:
11+
rootFile:
12+
type: File
13+
outputSource: root/out
14+
extFile:
15+
type: File
16+
outputSource: ext/out
17+
18+
steps:
19+
root:
20+
run: echo-file-tool.cwl
21+
in:
22+
tool: tool
23+
in:
24+
valueFrom: $(inputs.tool.nameroot)
25+
out: [out]
26+
ext:
27+
run: echo-file-tool.cwl
28+
in:
29+
tool: tool
30+
in:
31+
valueFrom: $(inputs.tool.nameext)
32+
out: [out]
33+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flag": true
3+
}

0 commit comments

Comments
 (0)