[PATCHv3,27/30] zdtm: add compatible tests building

Submitted by Dmitry Safonov on June 28, 2016, 7:24 p.m.

Details

Message ID 20160628192423.14943-28-dsafonov@virtuozzo.com
State Rejected
Series "x86 Compatible C/R, part 2"
Headers show

Commit Message

Dmitry Safonov June 28, 2016, 7:24 p.m.
`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@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
---
 test/zdtm/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

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