File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
+ set -xe
17
+
16
18
# Enter repository root
17
19
cd " $( dirname " ${BASH_SOURCE[0]} " ) " /..
18
20
26
28
else
27
29
# git clone https://github.com/ARMmbed/mbed-os.git
28
30
# 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
30
32
fi
31
33
32
34
# Add symlinks
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: Apache-2.0
3
3
cmake_minimum_required (VERSION 3.0.2 )
4
4
5
- set (MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
6
5
set (SERVICES_PATH ${CMAKE_CURRENT_SOURCE_DIR} /../../services CACHE INTERNAL "" )
6
+ set (mbed-os_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /mbed-os CACHE INTERNAL "" )
7
7
8
8
project (unittests )
9
9
10
- enable_testing ()
11
-
12
- add_subdirectory (${MBED_PATH} /UNITTESTS )
10
+ include (CTest )
11
+ add_subdirectory (mbed-os/UNITTESTS )
13
12
14
13
add_subdirectory (Template )
15
14
add_subdirectory (LinkLoss )
15
+ add_subdirectory (DeviceInformation )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ target_include_directories(${TEST_NAME}
10
10
PRIVATE
11
11
.
12
12
${SERVICES_PATH} /DeviceInformation/include
13
- ${MBED_PATH } /connectivity/FEATURE_BLE/include/ble/gap
13
+ ${mbed-os_SOURCE_DIR }/connectivity/FEATURE_BLE/include/ble/gap
14
14
)
15
15
16
16
target_sources (${TEST_NAME}
Original file line number Diff line number Diff line change 23
23
#include " ble/gap/ChainableGapEventHandler.h"
24
24
#include " ble-service-link-loss/LinkLossService.h"
25
25
26
- #include " Events.h"
26
+ #include " ble/gap/ Events.h"
27
27
28
28
#include " ble_mocks.h"
29
29
#include " events/EventQueue.h"
You can’t perform that action at this time.
0 commit comments