build: Add testing config option 94/181194/1
authorAnupam Roy <anupam.r@samsung.com>
Mon, 11 Jun 2018 04:19:20 +0000 (09:49 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Mon, 11 Jun 2018 04:24:21 +0000 (09:54 +0530)
This patch comes from below commit of upstream
========================================================
commit df43b3dad829e8b7f79fd15c20d997f50e745ae7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Wed Jan 4 15:24:45 2017 +0200

    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.
========================================================

Change-Id: I41edb9f1b726340dde4a22bc705a68b5bceea4c9
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
Makefile.tools
README
packaging/bluez.spec

index 08e1efa..cabede6 100755 (executable)
@@ -68,7 +68,7 @@ monitor_btmon_LDADD = lib/libbluetooth-internal.la \
                                src/libshared-mainloop.la @UDEV_LIBS@
 endif
 
-if EXPERIMENTAL
+if TESTING
 noinst_PROGRAMS += emulator/btvirt emulator/b1ee emulator/hfp \
                                        peripheral/btsensor tools/3dsp \
                                        tools/mgmt-tester tools/gap-tester \
diff --git a/README b/README
index f863a63..e490c39 100755 (executable)
--- a/README
+++ b/README
@@ -105,6 +105,17 @@ For a working system, certain configuration options need to be enabled:
                support systemd. In that case all integration with the
                init system is up to the package.
 
+        --enable-testing
+
+                Enable testing tools
+
+                By default tools used only for testing emulation are disabled.
+                This option can be used to enable them.
+
+                It is not recommended to enable this option for production
+                systems. These tools may contain tests that depend on specific
+                environment or kernel features in development.
+
        --enable-experimental
 
                Enable experimental tools
index 2024336..c25d91a 100755 (executable)
@@ -207,6 +207,7 @@ export CFLAGS+=" -DARCH64"
                        --enable-obex \
                        --enable-library \
                        --enable-gatt \
+                       --enable-testing \
                        --enable-experimental \
                        --enable-autopyypair=no \
                        --enable-tizenunusedplugin=no \
@@ -267,6 +268,7 @@ export CFLAGS+=" -DARCH64"
                        --with-telephony=tizen \
                        --enable-obex \
                        --enable-library \
+                       --enable-testing \
                        --enable-experimental \
                        --enable-autopair=no \
                        --enable-hid=yes \
@@ -332,6 +334,7 @@ export CFLAGS+=" -DARCH64"
                        --enable-mesh=yes \
                        --enable-library \
                        --enable-gatt \
+                       --enable-testing \
                        --enable-experimental \
                        --enable-autopair=no \
                        --enable-hid=yes \