0001-configure.ac-add-disable-tests.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 8c3a5d0921090e2fc3c4e2561509d23eb9ffa6dd Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Fri, 2 Apr 2021 21:07:07 +0200
  4. Subject: [PATCH] configure.ac: add --disable-tests
  5. Allow the user to explicitly disable tests
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. [Upstream status: https://github.com/lttng/lttng-tools/pull/162]
  8. ---
  9. configure.ac | 3 +++
  10. 1 file changed, 3 insertions(+)
  11. diff --git a/configure.ac b/configure.ac
  12. index 04f9cef4..372cdf3d 100644
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -862,6 +862,8 @@ AC_ARG_ENABLE([bin-lttng-sessiond], AS_HELP_STRING([--disable-bin-lttng-sessiond
  16. [Disable the build of lttng-sessiond binaries]))
  17. AC_ARG_ENABLE([extras], AS_HELP_STRING([--disable-extras],
  18. [Disable the build of the extra components]))
  19. +AC_ARG_ENABLE([tests], AS_HELP_STRING([--disable-tests],
  20. + [Disable the build of the test components]))
  21. build_lib_consumer=no
  22. @@ -1013,6 +1015,7 @@ AM_CONDITIONAL([BUILD_BIN_LTTNG_SESSIOND], [test x$enable_bin_lttng_sessiond !=
  23. # Export the tests and extras build conditions.
  24. AS_IF([\
  25. +test "x$enable_tests" != "xno" && \
  26. test "x$enable_bin_lttng" != "xno" && \
  27. test "x$enable_bin_lttng_consumerd" != "xno" && \
  28. test "x$enable_bin_lttng_crash" != "xno" && \
  29. --
  30. 2.30.2