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