diff options
Diffstat (limited to 'test/kpod_run_ns.bats')
-rw-r--r-- | test/kpod_run_ns.bats | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/kpod_run_ns.bats b/test/kpod_run_ns.bats index 233f8158b..c1b269587 100644 --- a/test/kpod_run_ns.bats +++ b/test/kpod_run_ns.bats @@ -30,3 +30,21 @@ function setup() { echo $output [ "$status" -ne 0 ] } + +@test "run ipcns test" { + + ${KPOD_BINARY} ${KPOD_OPTIONS} pull ${ALPINE} + + tmp=$(mktemp /dev/shm/foo.XXXXX) + run ${KPOD_BINARY} ${KPOD_OPTIONS} run --ipc=host ${ALPINE} ls $tmp + echo $output + out=$(echo $output | tr -d '\r') + [ "$status" -eq 0 ] + [ $out != $tmp ] + + rm -f $tmp + + run ${KPOD_BINARY} ${KPOD_OPTIONS} run --ipc=badpid ${ALPINE} sh -c 'echo $$' + echo $output + [ "$status" -ne 0 ] +} |