On Thu, 2017-10-19 at 16:56 +0100, Richard Haines wrote: > The default is not to test, however it still tries to build > create_modify_qp.c that requires a header and library that may not > exist. > > Signed-off-by: Richard Haines <richard_c_haines@xxxxxxxxxxxxxx> Thanks, applied. > --- > tests/infiniband_pkey/Makefile | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/tests/infiniband_pkey/Makefile > b/tests/infiniband_pkey/Makefile > index 60f0d24..4fa6fb2 100644 > --- a/tests/infiniband_pkey/Makefile > +++ b/tests/infiniband_pkey/Makefile > @@ -2,6 +2,14 @@ TARGETS=create_modify_qp > > LDLIBS+= -libverbs > > -all: $(TARGETS) > +RESULT=$(shell grep "SELINUX_INFINIBAND_PKEY_TEST=0" > ./ibpkey_test.conf) > + > +ifeq ($(RESULT), ) > + all: $(TARGETS) > +else > + all: > + @echo "Infiniband test disabled" > +endif > + > clean: > rm -f $(TARGETS)