Skip to content

Commit df43b3d

Browse files
committed
build: Add testing config option
This adds --enable-testing that can be used to enable emulator and tester which are no longer experimental but also are not meant for production.
1 parent 301904d commit df43b3d

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Makefile.tools

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ monitor_btmon_LDADD = lib/libbluetooth-internal.la \
4444
src/libshared-mainloop.la @UDEV_LIBS@
4545
endif
4646

47-
if EXPERIMENTAL
47+
if TESTING
4848
noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
4949
peripheral/btsensor tools/3dsp \
5050
tools/mgmt-tester tools/gap-tester \

README

+11
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,17 @@ For a working system, certain configuration options need to be enabled:
155155
This option is provided for distributions that do not have any
156156
input capabilities.
157157

158+
--enable-testing
159+
160+
Enable testing tools
161+
162+
By default tools used only for testing emulation are disabled.
163+
This option can be used to enable them.
164+
165+
It is not recommended to enable this option for production
166+
systems. These tools may contain tests that depend on specific
167+
environment or kernel features in development.
168+
158169
--enable-experimental
159170

160171
Enable experimental tools

bootstrap-configure

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ fi
1313
--localstatedir=/var \
1414
--enable-manpages \
1515
--enable-backtrace \
16+
--enable-testing \
1617
--enable-experimental \
1718
--enable-nfc \
1819
--enable-sap \

configure.ac

+5
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages],
285285
[enable_manpages=${enableval}])
286286
AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" = "yes")
287287

288+
AC_ARG_ENABLE(testing, AC_HELP_STRING([--enable-testing],
289+
[enable testing tools]),
290+
[enable_testing=${enableval}])
291+
AM_CONDITIONAL(TESTING, test "${enable_testing}" = "yes")
292+
288293
AC_ARG_ENABLE(experimental, AC_HELP_STRING([--enable-experimental],
289294
[enable experimental tools]),
290295
[enable_experimental=${enableval}])

0 commit comments

Comments
 (0)