Skip to content

Commit

Permalink
Merge pull request #344 from common-workflow-language/import-hint-test
Browse files Browse the repository at this point in the history
add test for importing hints
  • Loading branch information
mr-c committed Nov 16, 2016
2 parents aa320ec + a26c1ae commit 5473858
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions v1.0/conformance_test_v1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -971,3 +971,13 @@
}
tool: v1.0/docker-output-dir.cwl
doc: Test dockerOutputDirectory

- job: v1.0/empty.json
output:
out:
class: File
checksum: sha1$b3ec4ed1749c207e52b3a6d08c59f31d83bff519
location: out
size: 15
tool: v1.0/imported-hint.cwl
doc: Test hints with $import
4 changes: 4 additions & 0 deletions v1.0/v1.0/envvar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class: EnvVarRequirement
envDef:
- envName: "TEST_ENV"
envValue: "hello test env"
13 changes: 13 additions & 0 deletions v1.0/v1.0/imported-hint.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.0
class: CommandLineTool
inputs: []
outputs:
out: stdout

hints:
- $import: envvar.yml

baseCommand: ["/bin/bash", "-c", "echo $TEST_ENV"]

stdout: out

0 comments on commit 5473858

Please sign in to comment.