From c410477dd053365c7bad9b287a79e78aaa326cc3 Mon Sep 17 00:00:00 2001 From: Zach Dworkin Date: Fri, 27 Sep 2024 11:42:32 -0700 Subject: [PATCH] fabtests: Add option for conditionally building lpp Add --enable-lpp option to configure. Default on. This is to turn it off for CI that doesn't need to build this provider. Signed-off-by: Zach Dworkin --- fabtests/configure.ac | 7 +++++++ fabtests/prov/lpp/Makefile.include | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/fabtests/configure.ac b/fabtests/configure.ac index dc0d0c87b5f..18a4d1d17d9 100644 --- a/fabtests/configure.ac +++ b/fabtests/configure.ac @@ -61,6 +61,13 @@ AC_ARG_ENABLE([efa], AM_CONDITIONAL([ENABLE_EFA], [test x"$enable_efa" = x"yes"]) +AC_ARG_ENABLE([lpp], + [AS_HELP_STRING([--enable-lpp], + [Enable lpp provider specific tests - default YES])], + [], [enable_lpp=yes]) + +AM_CONDITIONAL([ENABLE_LPP], [test x"$enable_lpp" = x"yes"]) + AC_DEFUN([FI_ARG_ENABLE_SANITIZER],[ AC_ARG_ENABLE([$1], [AS_HELP_STRING([--enable-$1], diff --git a/fabtests/prov/lpp/Makefile.include b/fabtests/prov/lpp/Makefile.include index 1d831f2372d..ac7d69b0e30 100644 --- a/fabtests/prov/lpp/Makefile.include +++ b/fabtests/prov/lpp/Makefile.include @@ -30,6 +30,8 @@ # SOFTWARE. # +if ENABLE_LPP + LPP_REGRESSION_SRCS = prov/lpp/src/rcq_data.c \ prov/lpp/src/main.c \ prov/lpp/src/ipc.c \ @@ -64,3 +66,5 @@ endif prov_lpp_src_lpp_regression_SOURCES = $(LPP_REGRESSION_SRCS) prov_lpp_src_lpp_regression_LDADD = libfabtests.la + +endif ENABLE_LPP