Commit 061a407c authored by Andrei Vagin's avatar Andrei Vagin

alpine: compile all tests

Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 7678f440
...@@ -20,8 +20,8 @@ RUN apk update && apk add \ ...@@ -20,8 +20,8 @@ RUN apk update && apk add \
COPY . /criu COPY . /criu
WORKDIR /criu WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -s && \ RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z &&\
date && make -j $(nproc) CC="$CC" && date date && make -j $(nproc) CC="$CC" && date && ccache -s
# Run a test # Run a test
RUN apk add py-yaml \ RUN apk add py-yaml \
...@@ -29,5 +29,8 @@ RUN apk add py-yaml \ ...@@ -29,5 +29,8 @@ RUN apk add py-yaml \
ip6tables \ ip6tables \
iptables \ iptables \
iproute2 \ iproute2 \
&& pip install protobuf \ tar \
&& make -C test/zdtm/static env00 bash
RUN pip install protobuf ipaddr
RUN make -C test/zdtm
...@@ -12,12 +12,15 @@ ifdef CLANG ...@@ -12,12 +12,15 @@ ifdef CLANG
endif endif
TARGETS := fedora-asan alpine fedora-rawhide TARGETS := fedora-asan alpine fedora-rawhide
ZDTM_OPTIONS :=
alpine: ZDTM_OPTIONS=-x zdtm/static/binfmt_misc -x zdtm/static/netns-nf -x zdtm/static/sched_policy00 -x zdtm/static/seccomp_strict -x zdtm/static/sigaltstack -x zdtm/static/signalfd00 -x zdtm/static/config_inotify_irmap
$(TARGETS): $(TARGETS):
echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
restart docker restart docker
$(MAKE) -C ../build $@$(target-suffix) $(MAKE) -C ../build $@$(target-suffix)
docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-$@ ./scripts/travis/asan.sh docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
docker-test: docker-test:
./docker-test.sh ./docker-test.sh
......
...@@ -8,7 +8,7 @@ chmod 0777 test ...@@ -8,7 +8,7 @@ chmod 0777 test
chmod 0777 test/zdtm/transition/ chmod 0777 test/zdtm/transition/
chmod 0777 test/zdtm/static chmod 0777 test/zdtm/static
./test/zdtm.py run -a --keep-going -k always --parallel 4 -x zdtm/static/rtc ./test/zdtm.py run -a --keep-going -k always --parallel 4 -x zdtm/static/rtc "$@"
ret=$? ret=$?
for i in `find / -name 'asan.log*'`; do for i in `find / -name 'asan.log*'`; do
......
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