Skip to content

Commit 5f76518

Browse files
Added extension tests
1 parent fb2e645 commit 5f76518

23 files changed

+588
-0
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ include testdata/workflows/*.cwl
2121
include testdata/workflows/*.yaml
2222
include testdata/types/*.yml
2323
include testdata/checker_wf/*.cwl
24+
include testdata/extensions/*.cwl
2425
include cwl_utils/py.typed
2526
include docs/conf.py docs/Makefile docs/_static/favicon.ico docs/requirements.txt
2627
include docs/*.rst
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.0
3+
class: CommandLineTool
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
requirements:
7+
cwltool:CUDARequirement:
8+
cudaVersionMin: "1.0"
9+
cudaComputeCapability: "1.0"
10+
cudaDeviceCountMin: $(inputs.gpus)
11+
inputs:
12+
gpus:
13+
type: int
14+
default: 1
15+
outputs: []
16+
baseCommand: "nvidia-smi"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.1
3+
class: CommandLineTool
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
requirements:
7+
cwltool:CUDARequirement:
8+
cudaVersionMin: "1.0"
9+
cudaComputeCapability: "1.0"
10+
cudaDeviceCountMin: $(inputs.gpus)
11+
inputs:
12+
gpus:
13+
type: int
14+
default: 1
15+
outputs: []
16+
baseCommand: "nvidia-smi"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cwl-runner
2+
cwlVersion: v1.2
3+
class: CommandLineTool
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
requirements:
7+
cwltool:CUDARequirement:
8+
cudaVersionMin: "1.0"
9+
cudaComputeCapability: "1.0"
10+
cudaDeviceCountMin: $(inputs.gpus)
11+
inputs:
12+
gpus:
13+
type: int
14+
default: 1
15+
outputs: []
16+
baseCommand: "nvidia-smi"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.0
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
requirements:
7+
cwltool:InplaceUpdateRequirement:
8+
inplaceUpdate: true
9+
inputs:
10+
r: File
11+
script:
12+
type: File
13+
default:
14+
class: File
15+
location: updateval.py
16+
outputs:
17+
out:
18+
type: File
19+
outputBinding:
20+
glob: $(inputs.r.basename)
21+
arguments: [python, $(inputs.script), $(inputs.r.basename)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.0
4+
$namespaces:
5+
cwltool: http://commonwl.org/cwltool#
6+
requirements:
7+
cwltool:LoadListingRequirement:
8+
loadListing: shallow_listing
9+
inputs:
10+
d: Directory
11+
outputs: []
12+
arguments:
13+
[echo, "$(inputs.d.listing[0].listing[0])"]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.0
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
7+
baseCommand: env
8+
requirements:
9+
cwltool:MPIRequirement:
10+
processes: 1
11+
inputs: {}
12+
outputs:
13+
environment:
14+
type: stdout
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.1
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
baseCommand: env
7+
requirements:
8+
cwltool:MPIRequirement:
9+
processes: 1
10+
inputs: {}
11+
outputs:
12+
environment:
13+
type: stdout
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.2
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
baseCommand: env
7+
requirements:
8+
cwltool:MPIRequirement:
9+
processes: 1
10+
inputs: {}
11+
outputs:
12+
environment:
13+
type: stdout
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.0
4+
$namespaces:
5+
cwltool: "http://commonwl.org/cwltool#"
6+
requirements:
7+
cwltool:NetworkAccess:
8+
networkAccess: true
9+
inputs: []
10+
outputs: []
11+
baseCommand: python
12+
arguments:
13+
- "-c"
14+
- valueFrom: |
15+
import urllib.request
16+
assert(urllib.request.urlopen("http://commonwl.org").code == 200)

0 commit comments

Comments
 (0)