Permalink
Browse files
Merge pull request #10 from docker/runtime-tests
Adding some runtime tests to the suite
- Loading branch information
Showing
with
37 additions
and 6 deletions.
- +2 −0 .gitignore
- +4 −1 Dockerfile
- +16 −1 Jenkinsfile
- +0 −4 tests/image.bats
- +15 −0 tests/running.bats
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bats | ||
|
||
load ../common | ||
|
||
setup() { | ||
bin/start.sh | ||
} | ||
|
||
@test "Leaves running process" { | ||
result="$(docker ps | grep $imagename)" | ||
[ "$result" != '' ] | ||
} | ||
teardown() { | ||
bin/stop.sh | ||
} |