Bluetooth: Add Bluetooth microkernel smoke test
The test registers Bluetooth driver to Bluetooth the subsystem and runs bt_init() which calls open() callback. We return expected error to indicate that there is no real Bluetooth device attached. Change-Id: I39526acbb25e7d4bb322d4511659a40505874592 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
3760dc8709
commit
de1477759c
44
samples/microkernel/test/test_bluetooth/Makefile
Normal file
44
samples/microkernel/test/test_bluetooth/Makefile
Normal file
|
@ -0,0 +1,44 @@
|
|||
# Makefile - Bluetoot test Makefile
|
||||
|
||||
#
|
||||
# Copyright (c) 2015 Intel Corporation.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1) Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the following disclaimer.
|
||||
#
|
||||
# 2) Redistributions in binary form must reproduce the above copyright notice,
|
||||
# this list of conditions and the following disclaimer in the documentation
|
||||
# and/or other materials provided with the distribution.
|
||||
#
|
||||
# 3) Neither the name of Intel Corporation nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without
|
||||
# specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
include $(subst \,/,${VXMICRO_BASE})/make/env/defs.base
|
||||
|
||||
# default BSP
|
||||
BSP ?= generic_pc
|
||||
|
||||
PRJ_CONF = prj_${vARCH}.conf
|
||||
VPFILE = prj.vpf
|
||||
|
||||
PRJ_SRCPATH = ${vBASE}/samples/bluetooth/test_bluetooth/
|
||||
PRJ_INCPATH += ${vBASE}/samples/include/
|
||||
|
||||
include ${vMAKE}/target/make.ukernel
|
5
samples/microkernel/test/test_bluetooth/prj.vpf
Normal file
5
samples/microkernel/test/test_bluetooth/prj.vpf
Normal file
|
@ -0,0 +1,5 @@
|
|||
% Application : Bluetooth test
|
||||
|
||||
% TASK NAME PRIO ENTRY STACK GROUPS
|
||||
% ===================================================
|
||||
TASK MAIN 7 mainloop 2048 [EXE]
|
6
samples/microkernel/test/test_bluetooth/prj_x86.conf
Normal file
6
samples/microkernel/test/test_bluetooth/prj_x86.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Let stack canaries use non-random number generator.
|
||||
# This option is NOT to be used in production code.
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_BLUETOOTH=y
|
||||
CONFIG_BLUETOOTH_UART=n
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=n
|
|
@ -118,6 +118,7 @@ microkernel/test/test_task <uq> ti_lm3s6965! fsl_frdm_k64f \n\
|
|||
microkernel/test/test_task_irq <u> ti_lm3s6965! fsl_frdm_k64f \n\
|
||||
microkernel/test/test_timer <uq> ti_lm3s6965! fsl_frdm_k64f \n\
|
||||
microkernel/test/test_xip <uq> ti_lm3s6965! fsl_frdm_k64f \n\
|
||||
microkernel/test/test_bluetooth <uq> pentium4! minuteia! atom quark \n\
|
||||
microkernel/test/test_critical <u> pentium4! minuteia! atom quark \n\
|
||||
microkernel/test/test_events <uq> pentium4! minuteia! atom quark \n\
|
||||
microkernel/test/test_fifo <uq> pentium4! minuteia! atom quark \n\
|
||||
|
|
Loading…
Reference in a new issue