Skip to content

Commit 604574c

Browse files
Added extension tests
1 parent fb2e645 commit 604574c

25 files changed

+591
-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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ packages = [
6767
"cwl_utils.tests",
6868
"cwl_utils.testdata",
6969
"cwl_utils.testdata.checker_wf",
70+
"cwl_utils.testdata.extensions",
7071
"cwl_utils.testdata.types",
7172
"cwl_utils.testdata.workflows",
7273
]
@@ -77,6 +78,7 @@ include-package-data = true
7778
"cwl_utils.tests" = "tests"
7879
"cwl_utils.testdata" = "testdata"
7980
"cwl_utils.testdata.checker_wf" = "testdata/checker_wf"
81+
"cwl_utils.testdata.extensions" = "testdata/extensions"
8082
"cwl_utils.testdata.types" = "testdata/types"
8183
"cwl_utils.testdata.workflows" = "testdata/workflows"
8284

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

0 commit comments

Comments
 (0)