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