mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
This patch fixes the error: (00.074175) Error (criu/net.c:2638): Locking network failed: iptables-restore returned -1. This may be connected to disabled CONFIG_NETFILTER_XT_MARK kernel build config option. Signed-off-by: Andrei Vagin <avagin@gmail.com>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
local:
|
|
./travis-tests
|
|
.PHONY: local
|
|
|
|
after_success:
|
|
./travis-after_success
|
|
.PHONY: after_success
|
|
|
|
target-suffix =
|
|
ifdef CLANG
|
|
target-suffix = -clang
|
|
endif
|
|
|
|
TARGETS := alpine fedora-rawhide centos
|
|
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
|
|
|
|
define DOCKER_JSON
|
|
{
|
|
"storage-driver": "devicemapper"
|
|
}
|
|
endef
|
|
|
|
export DOCKER_JSON
|
|
$(TARGETS):
|
|
echo "$$DOCKER_JSON" > /etc/docker/daemon.json
|
|
systemctl restart docker
|
|
$(MAKE) -C ../build $@$(target-suffix)
|
|
docker run --env-file docker.env --rm -it --privileged -v /lib/modules:/lib/modules --tmpfs /run criu-$@ scripts/travis/travis-tests
|
|
|
|
fedora-asan:
|
|
echo "$$DOCKER_JSON" > /etc/docker/daemon.json
|
|
systemctl restart docker
|
|
$(MAKE) -C ../build $@$(target-suffix)
|
|
docker run --rm -it --privileged -v /lib/modules:/lib/modules --tmpfs /run criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
|
|
|
|
docker-test:
|
|
./docker-test.sh
|
|
|
|
%:
|
|
$(MAKE) -C ../build $@$(target-suffix)
|