mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 23:35:21 +00:00
alpine: compile all tests
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
@@ -20,8 +20,8 @@ RUN apk update && apk add \
|
||||
COPY . /criu
|
||||
WORKDIR /criu
|
||||
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
|
||||
RUN mv .ccache /tmp && make mrproper && ccache -s && \
|
||||
date && make -j $(nproc) CC="$CC" && date
|
||||
RUN mv .ccache /tmp && make mrproper && ccache -s && ccache -z &&\
|
||||
date && make -j $(nproc) CC="$CC" && date && ccache -s
|
||||
|
||||
# Run a test
|
||||
RUN apk add py-yaml \
|
||||
@@ -29,5 +29,8 @@ RUN apk add py-yaml \
|
||||
ip6tables \
|
||||
iptables \
|
||||
iproute2 \
|
||||
&& pip install protobuf \
|
||||
&& make -C test/zdtm/static env00
|
||||
tar \
|
||||
bash
|
||||
|
||||
RUN pip install protobuf ipaddr
|
||||
RUN make -C test/zdtm
|
||||
|
@@ -12,12 +12,15 @@ ifdef CLANG
|
||||
endif
|
||||
|
||||
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):
|
||||
echo 'DOCKER_OPTS="--storage-driver=devicemapper"' > /etc/default/docker
|
||||
restart docker
|
||||
$(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.sh
|
||||
|
@@ -8,7 +8,7 @@ chmod 0777 test
|
||||
chmod 0777 test/zdtm/transition/
|
||||
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=$?
|
||||
|
||||
for i in `find / -name 'asan.log*'`; do
|
||||
|
Reference in New Issue
Block a user