2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-26 03:47:35 +00:00
criu/test/jenkins/criu-lazy-pages.sh
Mike Rapoport 85fd6abea4 test: lazy-pages: exclude maps007
With userfaultfd we cannot reliably service process_vm_readv calls. The
maps007 test that uses these calls passed previously by sheer luck.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-04-19 23:26:34 +03:00

26 lines
813 B
Bash
Executable File

# Check lazy-pages
set -e
source `dirname $0`/criu-lib.sh
prep
KERN_MAJ=`uname -r | cut -d. -f1`
KERN_MIN=`uname -r | cut -d. -f2`
if [ $KERN_MAJ -ge "4" ] && [ $KERN_MIN -ge "11" ]; then
LAZY_EXCLUDE="-x cmdlinenv00 -x maps007"
else
LAZY_EXCLUDE="-x maps007 -x fork -x fork2 -x uffd-events -x cgroupns
-x socket_listen -x socket_listen6 -x cmdlinenv00
-x socket_close_data01 -x file_read"
fi
# lazy restore from images
./test/zdtm.py run --all --keep-going --report report --parallel 4 \
--lazy-pages $LAZY_EXCLUDE || fail
# During pre-dump + lazy-pages we leave VM_NOHUGEPAGE set
LAZY_EXCLUDE="$LAZY_EXCLUDE -x maps02"
# lazy restore from images with pre-dumps
./test/zdtm.py run --all --keep-going --report report --parallel 4 \
--lazy-pages --pre 2 $LAZY_EXCLUDE || fail