File tree Expand file tree Collapse file tree 3 files changed +77
-0
lines changed Expand file tree Collapse file tree 3 files changed +77
-0
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import absolute_import
2
+ import unittest
3
+
4
+ from cwltool .main import main
5
+
6
+ from .util import get_data
7
+
8
+ class CWL_Version_Checks (unittest .TestCase ):
9
+ # no cwlVersion in the workflow
10
+ def test_missing_cwl_version (self ):
11
+ self .assertEqual (main ([get_data ('tests/wf/missing_cwlVersion.cwl' )]), 1 )
12
+ # using cwlVersion: v0.1 in the workflow
13
+ def test_incorrect_cwl_version (self ):
14
+ self .assertEqual (main ([get_data ('tests/wf/wrong_cwlVersion.cwl' )]), 1 )
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ class: Workflow
3
+
4
+ label : "Hello World"
5
+ doc : "Outputs a message using echo"
6
+
7
+ inputs : []
8
+
9
+ outputs :
10
+ response:
11
+ outputSource : step0/response
12
+ type : File
13
+
14
+ steps :
15
+ step0:
16
+ run :
17
+ class: CommandLineTool
18
+ inputs :
19
+ message:
20
+ type : string
21
+ doc : "The message to print"
22
+ default : "Hello World"
23
+ inputBinding :
24
+ position : 1
25
+ baseCommand : echo
26
+ stdout : response.txt
27
+ outputs :
28
+ response:
29
+ type : stdout
30
+ in : []
31
+ out : [response]
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+ cwlVersion: v0.1
3
+ class: Workflow
4
+
5
+ label : "Hello World"
6
+ doc : "Outputs a message using echo"
7
+
8
+ inputs : []
9
+
10
+ outputs :
11
+ response:
12
+ outputSource : step0/response
13
+ type : File
14
+
15
+ steps :
16
+ step0:
17
+ run :
18
+ class: CommandLineTool
19
+ inputs :
20
+ message:
21
+ type : string
22
+ doc : "The message to print"
23
+ default : "Hello World"
24
+ inputBinding :
25
+ position : 1
26
+ baseCommand : echo
27
+ stdout : response.txt
28
+ outputs :
29
+ response:
30
+ type : stdout
31
+ in : []
32
+ out : [response]
You can’t perform that action at this time.
0 commit comments