diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-11-01 15:30:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 15:30:35 -0400 |
commit | d7782cc31e809d8e1551f47a0ddb0ff8073005fc (patch) | |
tree | 625fdeaf51ffced387b4ba2e48d93288f3f1b9b2 /test/kpod_run.bats | |
parent | f5019df3f5da9030ce21e5c8ad3d3921a6585e7f (diff) | |
parent | 8cf07b2ad1ed8c6646c48a74e9ecbb2bfeecb322 (diff) | |
download | podman-d7782cc31e809d8e1551f47a0ddb0ff8073005fc.tar.gz podman-d7782cc31e809d8e1551f47a0ddb0ff8073005fc.tar.bz2 podman-d7782cc31e809d8e1551f47a0ddb0ff8073005fc.zip |
Merge pull request #2 from baude/create
libpod create and run
Diffstat (limited to 'test/kpod_run.bats')
-rw-r--r-- | test/kpod_run.bats | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/kpod_run.bats b/test/kpod_run.bats new file mode 100644 index 000000000..4945691a7 --- /dev/null +++ b/test/kpod_run.bats @@ -0,0 +1,20 @@ +#!/usr/bin/env bats + +load helpers + +ALPINE="docker.io/library/alpine:latest" + +@test "run a container based on local image" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest + echo "$output" + [ "$status" -eq 0 ] + run ${KPOD_BINARY} ${KPOD_OPTIONS} run docker.io/library/busybox:latest ls + echo "$output" + [ "$status" -eq 0 ] +} + +@test "run a container based on a remote image" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} run ${ALPINE} ls + echo "$output" + [ "$status" -eq 0 ] +} |