[CRIU] [PATCHv2 27/30] zdtm: add compatible tests building
Dmitry Safonov
dsafonov at virtuozzo.com
Fri Jun 24 08:08:32 PDT 2016
`make test COMPAT_TEST=y` will build all executable tests as i386 ELFs.
For building tests, need the following libraries from multilib:
libaio.i686 libaio-devel.i686 libcap-devel.i686 libcap.i686
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
test/zdtm/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/test/zdtm/Makefile b/test/zdtm/Makefile
index 8abf2144d02b..2566a925ee4a 100644
--- a/test/zdtm/Makefile
+++ b/test/zdtm/Makefile
@@ -1,5 +1,13 @@
SUBDIRS = lib static transition
+ifeq ($(COMPAT_TEST),y)
+ifeq ($(ARCH),x86)
+ export USERCFLAGS += -m32
+ export CFLAGS += -m32
+ export LDFLAGS += -m32
+endif
+endif
+
default: all
.PHONY: default lib static transition
--
2.9.0
More information about the CRIU
mailing list