summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/Kconfig
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-12-30 05:48:35 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-30 07:53:55 +0100
commitee485290c6af942f0371def632c32e747d110b1e (patch)
tree6571bc3ae7368bbdf83f7cc48bdf4c19679f0730 /net/bluetooth/Kconfig
parentBluetooth: Fix const declarations for smp_f5 and smp_f6 (diff)
downloadlinux-ee485290c6af942f0371def632c32e747d110b1e.tar.xz
linux-ee485290c6af942f0371def632c32e747d110b1e.zip
Bluetooth: Add support for self testing framework
This add support for the Bluetooth self testing framework that allows running certain test cases of sample data to ensure correctness of its basic functionality. With this patch only the basic framework will be added. It contains the build magic that allows running this at module loading time or at late_initcall stage when built into the kernel image. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/Kconfig')
-rw-r--r--net/bluetooth/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig
index 29bcafc41adf..3296841531c9 100644
--- a/net/bluetooth/Kconfig
+++ b/net/bluetooth/Kconfig
@@ -64,4 +64,17 @@ config BT_6LOWPAN
help
IPv6 compression over Bluetooth Low Energy.
+config BT_SELFTEST
+ bool "Bluetooth self testing support"
+ depends on BT && DEBUG_KERNEL
+ help
+ Run self tests when initializing the Bluetooth subsystem. This
+ is a developer option and can cause significant delay when booting
+ the system.
+
+ When the Bluetooth subsystem is built as module, then the test
+ cases are run first thing at module load time. When the Bluetooth
+ subsystem is compiled into the kernel image, then the test cases
+ are run late in the initcall hierarchy.
+
source "drivers/bluetooth/Kconfig"