The following test plan should be executed against an Apache Mynewt release candidate before a vote is called.  This is a very minimal test plan and is a work in progress

Units under test


TODO: provide targets for testing in repo

bleprph

Steps

Targets


Here are the targets that were used. See the testing notes below for BLE_SM_SC. To test legacy pairing this value should be 0.

targets/nordic_pca10028_bleprph
    app=@apache-mynewt-nimble/apps/bleprph
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10028
    build_profile=optimized
    syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=255
targets/nordic_pca10040_bleprph
    app=@apache-mynewt-nimble/apps/bleprph
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040
    build_profile=optimized
    syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_SC=1:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=0:OS_MAIN_STACK_SIZE=1024:BLE_MAX_CONNECTIONS=2
targets/nordic_pca10056_bleprph
    app=@apache-mynewt-nimble/apps/bleprph
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056
    build_profile=optimized
    syscfg=BLE_SM_BONDING=1:BLE_SM_OUR_KEY_DIST=7:BLE_SM_SC=1:BLE_SM_THEIR_KEY_DIST=7:LOG_LEVEL=0:OS_MAIN_STACK_SIZE=1024:BLE_MAX_CONNECTIONS=2

Testing Notes

  1. To test the legacy pairing, you need to read the characteristic with the encryption required permission. The bleprph application has two services. One of the services has one characteristic, the other has two of them. The UUID with two characteristics is the one you want.
  2. With OSX/Light Blue, the application does not ask you to pair. It just does it automatically. When using LightBlue on the iPhone, it asks you to pair.
  3. To test the third bullet (central restores encrypted connection), after you have paired all you need to do is disconnect and reconnect. You should then be able to read the characteristic again without having to pair.
  4. To test the fourth bullet item, you need to build with BLE_SM_SC: 1. Normally, you build with BLE_SM_SC: 0 for the previous tests.

bttester

Run automated test suite against supported devices with BTPTesterCore automation tool.

Currently supoported devices:

Targets

targets/nordic_pca10028_bttester
    app=@apache-mynewt-nimble/apps/bttester
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10028
    build_profile=optimized
    syscfg=BLE_MESH=0:CONSOLE_RTT=0:MSYS_1_BLOCK_COUNT=40:MSYS_1_BLOCK_SIZE=120:OS_MAIN_STACK_SIZE=320:SHELL_TASK=0
targets/nordic_pca10040_bttester
    app=@apache-mynewt-nimble/apps/bleprph
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10040
    build_profile=optimized
targets/nordic_pca10056_bttester
    app=@apache-mynewt-nimble/apps/bleprph
    bsp=@apache-mynewt-core/hw/bsp/nordic_pca10056
    build_profile=optimized

btshell

Steps

blehci

Steps

Bluetooth 5 features


Steps:

Over-the-Air Image Upgrade Over BLE 

Steps

Bluetooth Mesh

Steps

Test with Android

Bluetooth Qualification

Ensure that host is passing all relevant PTS (latest available version) tests.

Ensure that controller is passing all relevant Harmony tests.