2020-04-18 22:28:24 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-02-18 21:57:06 +02:00
|
|
|
# Check lazy-pages
|
|
|
|
set -e
|
|
|
|
source `dirname $0`/criu-lib.sh
|
|
|
|
prep
|
|
|
|
|
2018-10-02 15:20:30 +03:00
|
|
|
source `dirname $0`/criu-lazy-common.sh
|
2018-02-18 21:57:06 +02:00
|
|
|
|
|
|
|
# These tests seem to require complete separation of dump and restore namespaces
|
|
|
|
LAZY_MIGRATE_EXCLUDE="-x fifo_loop -x file_locks -x ptrace_sig -x overmount_file -x file_lease -x cr_veth -x fifo -x overmount_sock -x unlink_largefile -x socket_udp-corked -x netns_sub_veth"
|
|
|
|
|
|
|
|
# lazy restore from images
|
|
|
|
./test/zdtm.py run --all --keep-going --report report --parallel 4 -f uns \
|
2018-12-05 17:21:01 +02:00
|
|
|
--lazy-migrate $LAZY_EXCLUDE $LAZY_MIGRATE_EXCLUDE || fail
|
2018-02-18 21:57:06 +02:00
|
|
|
|
|
|
|
# During pre-dump + lazy-pages we leave VM_NOHUGEPAGE set
|
2022-05-08 16:19:45 +07:00
|
|
|
LAZY_EXCLUDE="$LAZY_EXCLUDE -x maps02"
|
2018-02-18 21:57:06 +02:00
|
|
|
|
|
|
|
# lazy restore from images with pre-dumps
|
|
|
|
./test/zdtm.py run --all --keep-going --report report --parallel 4 -f uns \
|
2018-12-05 17:21:01 +02:00
|
|
|
--lazy-migrate --pre 2 $LAZY_EXCLUDE $LAZY_MIGRATE_EXCLUDE || fail
|