2016-02-23 03:23:00 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -x -e
|
|
|
|
|
2016-08-24 23:09:00 +03:00
|
|
|
ulimit -c unlimited
|
|
|
|
|
2016-07-08 02:18:52 +03:00
|
|
|
cd ../../
|
2016-02-23 03:23:00 +03:00
|
|
|
|
2016-08-24 23:09:00 +03:00
|
|
|
service apport stop
|
|
|
|
echo "|`pwd`/test/abrt.sh %P %p %s %e" > /proc/sys/kernel/core_pattern
|
|
|
|
|
2016-02-23 03:23:00 +03:00
|
|
|
apt-get update -qq
|
2016-08-24 23:09:00 +03:00
|
|
|
apt-get install -qq protobuf-c-compiler libprotobuf-c0-dev libaio-dev \
|
|
|
|
libprotobuf-dev protobuf-compiler python-ipaddr libcap-dev \
|
2016-08-24 17:25:00 +03:00
|
|
|
libnl-3-dev gdb bash python-protobuf
|
2016-02-23 03:23:00 +03:00
|
|
|
chmod a+x $HOME
|
2016-07-06 05:01:57 +03:00
|
|
|
export GCOV=1
|
|
|
|
make
|
2016-02-23 03:23:00 +03:00
|
|
|
make -C test/zdtm
|
2016-07-06 05:01:59 +03:00
|
|
|
|
|
|
|
./criu/criu check
|
|
|
|
./criu/criu check --all || echo $?
|
|
|
|
./criu/criu cpuinfo dump
|
|
|
|
./criu/criu cpuinfo check
|
|
|
|
|
|
|
|
umask 0000
|
|
|
|
export SKIP_PREP=1
|
2016-08-24 22:17:00 +03:00
|
|
|
# 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
|
2016-07-06 05:01:59 +03:00
|
|
|
|
2016-08-31 22:50:00 +03:00
|
|
|
chmod 0777 test/
|
|
|
|
chmod 0777 test/zdtm/static
|
|
|
|
chmod 0777 test/zdtm/transition
|
|
|
|
|
2016-08-20 03:12:00 +03:00
|
|
|
./test/zdtm.py run -a -x 'cgroup*' -p 2
|
2016-07-06 05:01:59 +03:00
|
|
|
|
|
|
|
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
|
2016-07-14 21:44:18 +03:00
|
|
|
make -C test/others/exec/ run
|
2016-07-06 05:01:59 +03:00
|
|
|
|
|
|
|
./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
|
2016-06-03 05:33:00 +03:00
|
|
|
|
|
|
|
pip install flake8
|
|
|
|
make lint
|
2016-08-30 16:58:18 -07:00
|
|
|
|
|
|
|
# Check that help output fits into 80 columns
|
|
|
|
WIDTH=$(./criu/criu --help | wc --max-line-length)
|
|
|
|
if [ "$WIDTH" -gt 80 ]; then
|
|
|
|
echo "criu --help output does not obey 80 characters line width!"
|
|
|
|
exit 1
|
|
|
|
fi
|