blob: 0b6d91b7effae96ffbb70b6305cd2af513bf5888 [file] [log] [blame]
#!/usr/bin/env bats
load helpers
function setup() {
teardown_busybox
setup_busybox
}
function teardown() {
teardown_busybox
}
@test "runc create" {
runc create --console /dev/pts/ptmx test_busybox
[ "$status" -eq 0 ]
testcontainer test_busybox created
# start the command
runc start test_busybox
[ "$status" -eq 0 ]
testcontainer test_busybox running
}
@test "runc create exec" {
runc create --console /dev/pts/ptmx test_busybox
[ "$status" -eq 0 ]
testcontainer test_busybox created
runc exec test_busybox true
[ "$status" -eq 0 ]
# start the command
runc start test_busybox
[ "$status" -eq 0 ]
testcontainer test_busybox running
}