diff options
Diffstat (limited to 'test/kpod_run.bats')
-rw-r--r-- | test/kpod_run.bats | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/kpod_run.bats b/test/kpod_run.bats index 626a838b9..5f5377a5e 100644 --- a/test/kpod_run.bats +++ b/test/kpod_run.bats @@ -120,3 +120,18 @@ IMAGE="docker.io/library/fedora:latest" [ "$output" = 100 ] } + +@test "kpod run with volume flag" { + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime'" + echo $output + [ "$status" -eq 0 ] + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:ro ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test ro,relatime'" + echo $output + [ "$status" -eq 0 ] + #run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:shared ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime shared:'" + #echo $output + #[ "$status" -eq 0 ] + #run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -v ${MOUNT_PATH}:/run/test:rslave ${FEDORA_MINIMAL} cat /proc/self/mountinfo | grep '${MOUNT_PATH} /run/test rw,relatime master:'" + #echo $output + #[ "$status" -eq 0 ] +} |