mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
We found that the 3.19 Ubuntu kernel has a bug and the pagemap cache doesn't work properly on this kernel. Unfortunately Travis-CI allows to create intancies only with this kernel, so we need to add this workaround. https://github.com/xemul/criu/issues/207 Cc: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
53 lines
1.2 KiB
Bash
Executable File
53 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
set -x -e
|
|
|
|
ulimit -c unlimited
|
|
|
|
cd ../../
|
|
|
|
service apport stop
|
|
echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern
|
|
|
|
apt-get update -qq
|
|
apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev \
|
|
libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev \
|
|
libnl-3-dev gdb bash
|
|
chmod a+x $HOME
|
|
export GCOV=1
|
|
make
|
|
make -C test/zdtm
|
|
|
|
./criu/criu check
|
|
./criu/criu check --all || echo $?
|
|
./criu/criu cpuinfo dump
|
|
./criu/criu cpuinfo check
|
|
|
|
umask 0000
|
|
export SKIP_PREP=1
|
|
# The 3.19 Ubuntu kernel has a bug. When pagemap are read for a few vma-s
|
|
# for one read call, it returns incorrect data.
|
|
# https://github.com/xemul/criu/issues/207
|
|
export CRIU_PMC_OFF=1
|
|
|
|
./test/zdtm.py run -a -x 'cgroup*' -p 2
|
|
|
|
bash ./test/jenkins/criu-fault.sh
|
|
bash ./test/jenkins/criu-fcg.sh
|
|
bash ./test/jenkins/criu-inhfd.sh
|
|
|
|
make -C test/others/mnt-ext-dev/ run
|
|
make -C test/others/exec/ run
|
|
|
|
./test/zdtm.py run -t zdtm/static/env00 --sibling
|
|
|
|
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --dedup
|
|
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --page-server
|
|
|
|
./test/zdtm.py run -t zdtm/static/socket-tcp-local --norst
|
|
|
|
ip net add test
|
|
./test/zdtm.py run -t zdtm/static/env00 -f h --join-ns
|
|
|
|
pip install flake8
|
|
make lint
|