diff --git a/tests/integration/checkpoint.bats b/tests/integration/checkpoint.bats index d9d188bb..1ddb5cd4 100644 --- a/tests/integration/checkpoint.bats +++ b/tests/integration/checkpoint.bats @@ -43,7 +43,7 @@ function check_pipes() { [[ "${output}" == *"ponG Ping"* ]] } -@test "checkpoint and restore" { +function simple_cr() { runc run -d --console-socket $CONSOLE_SOCKET test_busybox [ "$status" -eq 0 ] @@ -69,6 +69,20 @@ function check_pipes() { done } +@test "checkpoint and restore " { + simple_cr +} + +@test "checkpoint and restore (cgroupns)" { + # cgroupv2 already enables cgroupns so this case was tested above already + requires cgroups_v1 + + # enable CGROUPNS + sed -i 's|\("namespaces": \[\)|\1\n\t\t\t{"type": "cgroup"},|' config.json + + simple_cr +} + @test "checkpoint --pre-dump and restore" { setup_pipes