lazy-migration: add test case
lazy-migration: add test case

The lazy-pages test case is not as straight forward as the other test
cases. This is related to the fact that restoring requires a different
name if restored on the same host. During 'runc checkpoint' the
container is not destroyed before all memory pages have been transferred
to the destination and thus the same container name cannot be used.

As real world usage will rather migrate a container from one system to
another than lazy migrate a container on the same host this is only
problematic for this test case.

Another reason is that it requires starting 'runc checkpoint' and 'criu
lazy-pages' in the background as those process need to be running to
start the final restore 'runc restore'.

CRIU upstream is currently discussing to automatically start 'criu
lazy-pages' which would simplify the lazy-pages test case a bit.

The handling and checking of the background processes make the test case
not the most elegant as at one point a 'sleep 2' is required to make
sure that 'runc checkpoint' had time to do its thing before looking at
log files.

Before running the actual test criu is called in feature checking mode
to make sure lazy migration is in the test case criu enabled. If not,
the test is skipped.

Signed-off-by: Adrian Reber <9f82b3db7475afbb412180fe9fab7c69d6ece340@redhat.com>

mikebrow/runc,kolyshkin/runc,cyphar/runc,adrianreber/runc,rhatdan/runc,dqminh/runc,stefanberger/runc,dqminh/runc,wking/runc,rhatdan/runc,adrianreber/runc,mYmNeo/runc,wking/runc,rhatdan/runc,opencontainers/runc,sunyuan3/runc,dqminh/runc,rajasec/runc,rhatdan/runc,laijs/runc,mheon/runc,stefanberger/runc,xiaochenshen/runc,sunyuan3/runc,estesp/runc,opencontainers/runc,justincormack/runc,opencontainers/runc,wking/runc,mYmNeo/runc,stefanberger/runc,sunyuan3/runc,crosbymichael/runc,adrianreber/runc,cyphar/runc,dqminh/runc,kolyshkin/runc,kolyshkin/runc,kolyshkin/runc,justincormack/runc,opencontainers/runc,xiaochenshen/runc,mikebrow/runc,rajasec/runc,mYmNeo/runc,crosbymichael/runc,crosbymichael/runc,rajasec/runc,xiaochenshen/runc,laijs/runc,cyphar/runc,laijs/runc,mheon/runc,mikebrow/runc,estesp/runc,justincormack/runc,estesp/runc,mheon/runc