mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
df583b4c51
Signed-off-by: Odin Ugedal <odin@ugedal.com>
22 lines
454 B
Bash
22 lines
454 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
function setup() {
|
|
teardown_busybox
|
|
setup_busybox
|
|
}
|
|
|
|
function teardown() {
|
|
teardown_busybox
|
|
}
|
|
|
|
@test "runc run [bind mount]" {
|
|
CONFIG=$(jq '.mounts |= . + [{"source": ".", "destination": "/tmp/bind", "options": ["bind"]}] | .process.args = ["ls", "/tmp/bind/config.json"]' config.json)
|
|
echo "${CONFIG}" >config.json
|
|
|
|
runc run test_bind_mount
|
|
[ "$status" -eq 0 ]
|
|
[[ "${lines[0]}" =~ '/tmp/bind/config.json' ]]
|
|
}
|