Skip to content

Commit a26c1ae

Browse files
committed
add test for importing hints
1 parent aa320ec commit a26c1ae

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,3 +971,13 @@
971971
}
972972
tool: v1.0/docker-output-dir.cwl
973973
doc: Test dockerOutputDirectory
974+
975+
- job: v1.0/empty.json
976+
output:
977+
out:
978+
class: File
979+
checksum: sha1$b3ec4ed1749c207e52b3a6d08c59f31d83bff519
980+
location: out
981+
size: 15
982+
tool: v1.0/imported-hint.cwl
983+
doc: Test hints with $import

v1.0/v1.0/envvar.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class: EnvVarRequirement
2+
envDef:
3+
- envName: "TEST_ENV"
4+
envValue: "hello test env"

v1.0/v1.0/imported-hint.cwl

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+
cwlVersion: v1.0
3+
class: CommandLineTool
4+
inputs: []
5+
outputs:
6+
out: stdout
7+
8+
hints:
9+
- $import: envvar.yml
10+
11+
baseCommand: ["/bin/bash", "-c", "echo $TEST_ENV"]
12+
13+
stdout: out

0 commit comments

Comments
 (0)