summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnupam Roy <anupam.r@samsung.com>2018-06-11 09:49:20 +0530
committerAnupam Roy <anupam.r@samsung.com>2018-06-11 09:54:21 +0530
commit9111bb1316f2a74265eff0f5e646bb92772d5dd3 (patch)
treeb2975a65e0f23a9c4740775e8f691bbda7a6fe68
parent42aef2fbc0976eeccdd3fec64690442069ad960e (diff)
downloadbluez-9111bb1316f2a74265eff0f5e646bb92772d5dd3.tar.gz
bluez-9111bb1316f2a74265eff0f5e646bb92772d5dd3.tar.bz2
bluez-9111bb1316f2a74265eff0f5e646bb92772d5dd3.zip
build: Add testing config option
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>
-rwxr-xr-xMakefile.tools2
-rwxr-xr-xREADME11
-rwxr-xr-xpackaging/bluez.spec3
3 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.tools b/Makefile.tools
index 08e1efaf..cabede6f 100755
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -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 f863a634..e490c39b 100755
--- 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
diff --git a/packaging/bluez.spec b/packaging/bluez.spec
index 20243369..c25d91a0 100755
--- a/packaging/bluez.spec
+++ b/packaging/bluez.spec
@@ -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 \