Commit 7c2b4b13 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

test: add ability to execute tests in a docker container

 # Build criu in a docker container
$ make direct-build
 # Execute tests in a docker container
$ make direct-test
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9cabc391
FROM ubuntu:utopic
RUN apt-get update && apt-get install -y \
build-essential \
protobuf-c-compiler \
libprotobuf-c0-dev \
libprotobuf-dev \
bsdmainutils \
protobuf-compiler \
python-minimal \
libaio-dev \
iptables
COPY . /criu
WORKDIR /criu
RUN make clean && make -j $(nproc)
RUN make -j $(nproc) -C test ZDTM_ARGS="-C -x static/rtc -x mountpoint -x static/cgroup02 -x tcp6 -x tcpbuf6"
......@@ -319,4 +319,10 @@ gcov:
genhtml -o html crtools.info
.PHONY: gcov
docker-build:
docker build -t criu .
docker-test:
docker run --rm -it --privileged criu ./test/zdtm.sh -C -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup -x mountpoint
.DEFAULT_GOAL := all
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment