Skip to content

Commit 5096c98

Browse files
authored
Merge pull request #61 from paul-szczepanek-arm/unit-test
Update unit tests to use new branch
2 parents 76dc518 + 65f8c8c commit 5096c98

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

scripts/bootstrap.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
set -xe
17+
1618
# Enter repository root
1719
cd "$( dirname "${BASH_SOURCE[0]}" )"/..
1820

@@ -26,7 +28,7 @@ then
2628
else
2729
# git clone https://github.com/ARMmbed/mbed-os.git
2830
# Use feature branch until merged to master
29-
git clone --depth 1 https://github.com/paul-szczepanek-arm/mbed-os.git -b unittest dependencies/mbed-os
31+
git clone --depth 1 https://github.com/paul-szczepanek-arm/mbed-os.git -b cmake-ble-rebased dependencies/mbed-os
3032
fi
3133

3234
# Add symlinks

tests/UNITTESTS/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# SPDX-License-Identifier: Apache-2.0
33
cmake_minimum_required(VERSION 3.0.2)
44

5-
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
65
set(SERVICES_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../services CACHE INTERNAL "")
6+
set(mbed-os_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "")
77

88
project(unittests)
99

10-
enable_testing()
11-
12-
add_subdirectory(${MBED_PATH}/UNITTESTS)
10+
include(CTest)
11+
add_subdirectory(mbed-os/UNITTESTS)
1312

1413
add_subdirectory(Template)
1514
add_subdirectory(LinkLoss)
15+
add_subdirectory(DeviceInformation)

tests/UNITTESTS/DeviceInformation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ target_include_directories(${TEST_NAME}
1010
PRIVATE
1111
.
1212
${SERVICES_PATH}/DeviceInformation/include
13-
${MBED_PATH}/connectivity/FEATURE_BLE/include/ble/gap
13+
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include/ble/gap
1414
)
1515

1616
target_sources(${TEST_NAME}

tests/UNITTESTS/LinkLoss/test_LinkLossService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "ble/gap/ChainableGapEventHandler.h"
2424
#include "ble-service-link-loss/LinkLossService.h"
2525

26-
#include "Events.h"
26+
#include "ble/gap/Events.h"
2727

2828
#include "ble_mocks.h"
2929
#include "events/EventQueue.h"

0 commit comments

Comments
 (0)