diff -Naur lttng-tools-2.13.7.orig/configure lttng-tools-2.13.7/configure
--- lttng-tools-2.13.7.orig/configure	2022-06-01 14:03:19.468576284 +0530
+++ lttng-tools-2.13.7/configure	2022-06-01 14:04:43.355741000 +0530
@@ -1049,6 +1049,7 @@
 enable_bin_lttng_relayd
 enable_bin_lttng_sessiond
 enable_extras
+enable_tests
 '
       ac_precious_vars='build_alias
 host_alias
@@ -1778,6 +1779,7 @@
   --disable-bin-lttng-sessiond
                           Disable the build of lttng-sessiond binaries
   --disable-extras        Disable the build of the extra components
+  --disable-tests         Disable the build of the test components
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -24671,6 +24673,11 @@
   enableval=$enable_extras;
 fi
 
+# Check whether --enable-tests was given.
+if test "${enable_tests+set}" = set; then :
+  enableval=$enable_tests;
+fi
+
 
 
 build_lib_consumer=no
@@ -24920,6 +24927,7 @@
 
 # Export the tests and extras build conditions.
 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" && \
