From 871ebb67081c997498728c41530caeaca89b20a8 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 27 Feb 2018 11:19:59 +0000 Subject: [PATCH] BLE: Add host test instructions. --- features/FEATURE_BLE/tests/README.md | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 features/FEATURE_BLE/tests/README.md diff --git a/features/FEATURE_BLE/tests/README.md b/features/FEATURE_BLE/tests/README.md new file mode 100644 index 0000000000..f2f9d71163 --- /dev/null +++ b/features/FEATURE_BLE/tests/README.md @@ -0,0 +1,35 @@ +# mbed BLE host tests + +This folder contains tests for mbed BLE that can be run on an x86 host. + +## Getting started + +Run the following instructions to build the tests: + +``` +cd features/FEATURE_BLE/tests +mkdir build +cd build +cmake .. +make +``` + +The various tests applications are present at the root of the test folder; +execute them to run the tests. As an examples gatt client related tests can be +run with: + +``` +./gatt-client-tests +``` + +## Requirements + +These tests requires cmake on the host and a compliant C++14 compiler. + +## Resources + +These tests use extensively google test (gtest) and google mock. Please refer to +the documentation of each products to get more insight: +* gtest: https://github.com/google/googletest/tree/master/googletest/docs +* gmock: https://github.com/google/googletest/tree/master/googlemock/docs +