criu/scripts/travis/Makefile
Adrian Reber eab8cf0775 travis: switch all arm related tests to real hardware
This switches all arm related tests (32bit and 64bit) to the aarch64
systems Travis provides. For arm32 we are running in a armv7hf container
on aarch64 with 'setarch linux32'.

The main changes are that docker on Travis aarch64 cannot use
'--privileged' as Travis is using unprivileged LXD containers to setup
the testing environment.

Signed-off-by: Adrian Reber <areber@redhat.com>
2020-02-04 12:39:04 -08:00

65 lines
1.5 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 :=
UNAME := $(shell uname -m)
export UNAME
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
ifeq ($(UNAME),x86_64)
# On anything besides x86_64 Travis is running unprivileged LXD
# containers which do not support running docker with '--privileged'.
CONTAINER_OPTS := --rm -it --privileged -v /lib/modules:/lib/modules --tmpfs /run
else
CONTAINER_OPTS := --rm -v /lib/modules:/lib/modules --tmpfs /run
endif
restart-docker:
if [ "$$UNAME" = "x86_64" ]; then \
echo "$$DOCKER_JSON" > /etc/docker/daemon.json; \
cat /etc/docker/daemon.json; \
systemctl status docker; \
systemctl restart docker; \
systemctl status docker; \
fi
$(TARGETS): restart-docker
$(MAKE) -C ../build $@$(target-suffix)
docker run --env-file docker.env $(CONTAINER_OPTS) criu-$@ scripts/travis/travis-tests
fedora-asan: restart-docker
$(MAKE) -C ../build $@$(target-suffix)
docker run -it $(CONTAINER_OPTS) criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
docker-test:
./docker-test.sh
podman-test:
./podman-test.sh
openj9-test:
./openj9-test.sh
%:
$(MAKE) -C ../build $@$(target-suffix)