[CRIU] [PATCH] travis: execute tests on Alpine

Andrei Vagin avagin at openvz.org
Tue Feb 7 12:52:48 PST 2017


From: Andrei Vagin <avagin at virtuozzo.com>

"zdtm.py run -a" doesn't work on Alpine:
find: unrecognized: -executable

So run zdtm/static/env00 for now to be sure that
it is not broken at all.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 .travis.yml                     |  2 +-
 scripts/build/Dockerfile.alpine | 11 +++++++++++
 scripts/travis/Makefile         |  4 ++++
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 85d653f..70d666d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,11 +6,11 @@ services:
 env:
   - TR_ARCH=local       GCOV=1
   - TR_ARCH=local       CLANG=1
+  - TR_ARCH=alpine
   - TR_ARCH=x86_64
   - TR_ARCH=armv7hf
   - TR_ARCH=aarch64
   - TR_ARCH=ppc64le
-  - TR_ARCH=alpine
   - TR_ARCH=armv7hf     CLANG=1
   - TR_ARCH=aarch64     CLANG=1
   - TR_ARCH=ppc64le     CLANG=1
diff --git a/scripts/build/Dockerfile.alpine b/scripts/build/Dockerfile.alpine
index 984ecb1..cd401d4 100644
--- a/scripts/build/Dockerfile.alpine
+++ b/scripts/build/Dockerfile.alpine
@@ -13,6 +13,17 @@ RUN apk update && apk add \
                 pkgconfig \
                 libnet-dev \
                 $CC
+
 COPY . /criu
 WORKDIR /criu
 RUN make mrproper && make -j $(nproc) CC=$CC
+
+# to run tests
+RUN apk add	py-yaml \
+		py-pip	\
+		ip6tables \
+		iptables \
+		iproute2
+
+RUN pip install protobuf
+RUN make -C test/zdtm/static env00
diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile
index ee0abac..37721aa 100644
--- a/scripts/travis/Makefile
+++ b/scripts/travis/Makefile
@@ -6,5 +6,9 @@ after_success:
 	./travis-after_success
 .PHONY: after_success
 
+alpine:
+	$(MAKE) -C ../build alpine
+	docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-alpine ./test/zdtm.py run -t zdtm/static/env00
+
 %:
 	$(MAKE) -C ../build $@
-- 
2.7.4



More information about the CRIU mailing list