mirror of https://github.com/ARMmbed/mbed-os.git
CMake: Remove all unittest.cmake script from test suite
- Remove redundant cmake script as already added the CMake configuration file - Remove redundant empty_baseline as it is no longer needed with the help of CMake configuration filepull/14547/head
parent
2ea0386f55
commit
50fc85dc44
|
@ -1,39 +0,0 @@
|
|||
/* Copyright (c) 2019 ARM Limited
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
/*
|
||||
* Purpose of this test is just to be empty baseline
|
||||
* that does nothing, but includes all source files
|
||||
* in the build.
|
||||
* Do not add any tests here
|
||||
*/
|
||||
|
||||
class EmptyBaseline : public testing::Test {
|
||||
virtual void SetUp()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void TearDown()
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(EmptyBaseline, constructor)
|
||||
{
|
||||
EXPECT_TRUE(true);
|
||||
}
|
|
@ -1,57 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
../connectivity/mbedtls/include/mbedtls/
|
||||
../connectivity/mbedtls/platform/inc/
|
||||
../platform/mbed-trace/include/mbed-trace/
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
empty_baseline/empty_baseline.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_ANALOGIN
|
||||
-DDEVICE_ANALOGOUT
|
||||
-DDEVICE_CAN
|
||||
-DDEVICE_ETHERNET
|
||||
-DDEVICE_FLASH
|
||||
-DDEVICE_I2C
|
||||
-DDEVICE_I2CSLAVE
|
||||
-DDEVICE_I2C_ASYNCH
|
||||
-DDEVICE_INTERRUPTIN
|
||||
-DDEVICE_LPTICKER
|
||||
-DDEVICE_PORTIN
|
||||
-DDEVICE_PORTINOUT
|
||||
-DDEVICE_PORTOUT
|
||||
-DDEVICE_PWMOUT
|
||||
-DDEVICE_QSPI
|
||||
-DDEVICE_SERIAL
|
||||
-DDEVICE_SERIAL_ASYNCH
|
||||
-DDEVICE_SERIAL_FC
|
||||
-DDEVICE_SPI
|
||||
-DDEVICE_SPISLAVE
|
||||
-DDEVICE_SPI_ASYNCH
|
||||
-DCOMPONENT_FLASHIAP
|
||||
-DMBED_CONF_PLATFORM_CTHUNK_COUNT_MAX=10
|
||||
-DMBED_CONF_DATAFLASH_SPI_FREQ=1
|
||||
-DMBED_CONF_FLASHIAP_BLOCK_DEVICE_BASE_ADDRESS=0
|
||||
-DMBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE=0
|
||||
-DMBED_CONF_QSPIF_QSPI_FREQ=1
|
||||
-DMBED_CONF_QSPIF_QSPI_MIN_READ_SIZE=1
|
||||
-DMBED_CONF_QSPIF_QSPI_MIN_PROG_SIZE=1
|
||||
-DMBED_LFS_READ_SIZE=64
|
||||
-DMBED_LFS_PROG_SIZE=64
|
||||
-DMBED_LFS_BLOCK_SIZE=512
|
||||
-DMBED_LFS_LOOKAHEAD=512
|
||||
-DFLASHIAP_APP_ROM_END_ADDR=0x80000
|
||||
-DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE=1024
|
||||
-DMBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS=0x80000
|
||||
-DMBED_CONF_STORAGE_STORAGE_TYPE=default
|
||||
-DMBED_CONF_FAT_CHAN_FF_MAX_SS=4096
|
||||
)
|
|
@ -1,54 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../connectivity/cellular/include/cellular/framework/device
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularContext.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellularcontexttest.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/AT_CellularStack_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/AT_ControlPlane_netif_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/CellularStateMachine_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/randLIB_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
stubs/us_ticker_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/CellularUtil_stub.cpp
|
||||
stubs/SocketAddress_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_CELLULAR_USE_SMS=1
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_APN=NULL
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,61 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../connectivity/cellular/include/cellular/framework/device
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
../drivers
|
||||
../hal
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
stubs/randLIB_stub.c
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularDevice.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellulardevicetest.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/AT_CellularSMS_stub.cpp
|
||||
stubs/AT_CellularInformation_stub.cpp
|
||||
stubs/CellularUtil_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/CellularStateMachine_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/ThisThread_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_APN=NULL
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_USERNAME=NULL
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_PASSWORD=NULL
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_PLMN=NULL
|
||||
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_SIM_PIN=NULL
|
||||
-DMDMTXD=NC
|
||||
-DMDMRXD=NC
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
-DMBED_CONF_CELLULAR_USE_SMS=1
|
||||
)
|
|
@ -1,43 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
stubs/randLIB_stub.c
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularInformation.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellularinformationtest.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,45 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularNetwork.cpp
|
||||
../connectivity/cellular/source/framework/common/CellularUtil.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellularnetworktest.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/us_ticker_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/SocketAddress_stub.cpp
|
||||
stubs/randLIB_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,47 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularSMS.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellularsmstest.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/CellularUtil_stub.cpp
|
||||
stubs/us_ticker_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/ThisThread_stub.cpp
|
||||
stubs/mbed_wait_api_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_CELLULAR_USE_SMS=1
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,52 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/AT/AT_CellularStack.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/at_cellularstacktest.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/CellularUtil_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/us_ticker_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/ThisThread_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/listtest.cpp
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/common/CellularUtil.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/utiltest.cpp
|
||||
stubs/randLIB_stub.cpp
|
||||
)
|
|
@ -1,48 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../platform
|
||||
../connectivity/cellular/tests/UNITTESTS/framework/common/util
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
../connectivity/cellular/include/cellular/framework/AT
|
||||
../platform/randlib/include/mbed-client-randlib
|
||||
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/device/ATHandler.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/athandlertest.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/us_ticker_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_poll_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/Kernel_stub.cpp
|
||||
stubs/ThisThread_stub.cpp
|
||||
stubs/randLIB_stub.cpp
|
||||
stubs/CellularUtil_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_rtos_rtx_stub.c
|
||||
stubs/rtx_mutex_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_CELLULAR_DEBUG_AT=true
|
||||
-DOS_STACK_SIZE=2048
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,59 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/include/cellular/framework/device/cellulardevice
|
||||
../connectivity/cellular/include/cellular/framework/device
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/device/CellularContext.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/cellularcontexttest.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/CellularStateMachine_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/ThisThread_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMDMRTS=PTC0
|
||||
-DMDMCTS=PTC1
|
||||
-DMDMTXD=NC
|
||||
-DMDMRXD=NC
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
-DCELLULAR_DEVICE=myCellularDevice
|
||||
-DDEVICE_SERIAL_FC=1
|
||||
-DMBED_CONF_CELLULAR_CONTROL_PLANE_OPT=0
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_CELLULAR_USE_SMS=1
|
||||
)
|
|
@ -1,50 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/include/cellular/framework/device/cellulardevice
|
||||
../connectivity/cellular/include/cellular/framework/device
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/device/CellularDevice.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/cellulardevicetest.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/CellularStateMachine_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMDMRTS=PTC0
|
||||
-DMDMCTS=PTC1
|
||||
-DMDMTXD=NC
|
||||
-DMDMRXD=NC
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
-DCELLULAR_DEVICE=myCellularDevice
|
||||
-DDEVICE_SERIAL_FC=1
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
)
|
|
@ -1,55 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../connectivity/cellular/include/cellular/framework/device/cellularstatemachine
|
||||
../connectivity/cellular/include/cellular/framework/device
|
||||
../connectivity/cellular/include/cellular/framework/common
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/cellular/source/framework/device/CellularStateMachine.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/cellularstatemachinetest.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/CellularDevice_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/BufferedSerial_stub.cpp
|
||||
stubs/SerialBase_stub.cpp
|
||||
stubs/ATHandler_stub.cpp
|
||||
stubs/AT_CellularNetwork_stub.cpp
|
||||
stubs/AT_CellularContext_stub.cpp
|
||||
stubs/AT_CellularDevice_stub.cpp
|
||||
stubs/Semaphore_stub.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/Thread_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/ConditionVariable_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMDMRTS=PTC0
|
||||
-DMDMCTS=PTC1
|
||||
-DMDMTXD=NC
|
||||
-DMDMRXD=NC
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
-DCELLULAR_DEVICE=myCellularDevice
|
||||
-DDEVICE_SERIAL_FC=1
|
||||
-DMBED_CONF_RTOS_PRESENT=1
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_CELLULAR_USE_SMS=1
|
||||
)
|
|
@ -1,63 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaMac")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/mac/LoRaMac.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/mac
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaMac.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANStack_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/LoRaMacCrypto_stub.cpp
|
||||
stubs/LoRaMacChannelPlan_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/LoRaMacCommand_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_ADR_ON=true
|
||||
-DMBED_CONF_LORA_PUBLIC_NETWORK=true
|
||||
-DMBED_CONF_LORA_NB_TRIALS=2
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_DUTY_CYCLE_ON=true
|
||||
-DMBED_CONF_LORA_MAX_SYS_RX_ERROR=10
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DEVICE_ADDRESS=0x00000000
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_NWKSKEY=\"{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_NWKSKEY=\"{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\"")
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_APPSKEY=\"{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_APPSKEY=\"{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\"")
|
||||
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaMacChannelPlan")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/mac/LoRaMacChannelPlan.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/mac
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaMacChannelPlan.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
|
@ -1,41 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaMacCommand")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/mac/LoRaMacCommand.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/mac
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaMacCommand.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
|
@ -1,45 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaMacCrypto")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/mac/LoRaMacCrypto.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/mac
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaMacCrypto.cpp
|
||||
stubs/cipher_stub.c
|
||||
stubs/aes_stub.c
|
||||
stubs/cmac_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
../connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
|
@ -1,46 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHY")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHY.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHY.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_WAKEUP_TIME=5
|
||||
-DMBED_CONF_LORA_DUTY_CYCLE_ON_JOIN=true
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_NB_TRIALS=2
|
||||
)
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYAS923")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYAS923.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYAS923.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYAU915")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYAU915.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYAU915.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_FSB_MASK=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_FSB_MASK=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYCN470")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYCN470.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYCN470.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_FSB_MASK_CHINA=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_FSB_MASK_CHINA=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYCN779")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYCN779.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYCN779.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_FSB_MASK_CHINA=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_FSB_MASK_CHINA=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
|
@ -1,45 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYEU433")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYEU433.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYEU433.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYEU868")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYEU868.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYEU868.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYIN865")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYIN865.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYIN865.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYKR920")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYKR920.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYKR920.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaPHYUS915")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/lorastack/phy/LoRaPHYUS915.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/lorastack/phy
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaPHYUS915.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
-DMBED_CONF_LORA_DOWNLINK_PREAMBLE_LENGTH=5
|
||||
-DMBED_CONF_LORA_UPLINK_PREAMBLE_LENGTH=8
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMBED_CONF_LORA_FSB_MASK=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_LORA_FSB_MASK=\"{0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0x00FF}\"")
|
|
@ -1,53 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaWANInterface")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/source/LoRaWANInterface.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaWANInterface.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaWANStack_stub.cpp
|
||||
stubs/LoRaMac_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/LoRaMacCrypto_stub.cpp
|
||||
stubs/LoRaMacChannelPlan_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/LoRaMacCommand_stub.cpp
|
||||
stubs/LoRaPHYEU868_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_PHY=EU868
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaWANStack")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/source/LoRaWANStack.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaWANStack.cpp
|
||||
stubs/LoRaPHY_stub.cpp
|
||||
stubs/LoRaMac_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/LoRaMacCrypto_stub.cpp
|
||||
stubs/LoRaMacChannelPlan_stub.cpp
|
||||
stubs/LoRaWANTimer_stub.cpp
|
||||
stubs/LoRaMacCommand_stub.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/Mutex_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_LORA_OVER_THE_AIR_ACTIVATION=true
|
||||
-DMBED_CONF_LORA_AUTOMATIC_UPLINK_MESSAGE=true
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
#[[
|
||||
* Copyright (c) 2018, Arm Limited and affiliates
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
]]
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "lorawan_LoRaWANTimer")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/lorawan/system/LoRaWANTimer.cpp
|
||||
)
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
target_h
|
||||
../connectivity/lorawan/system
|
||||
)
|
||||
|
||||
# Test & stub files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/Test_LoRaWANTimer.cpp
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DNDEBUG=1
|
||||
-DMBED_CONF_LORA_TX_MAX_SIZE=255
|
||||
)
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/CellularNonIPSocket.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_CellularNonIPSocket.cpp
|
||||
stubs/NetworkInterface_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/CellularContext_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_CELLULAR_PRESENT=1
|
||||
-DDEVICE_SERIAL=1
|
||||
-DDEVICE_INTERRUPTIN=1
|
||||
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
|
||||
)
|
|
@ -1,43 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/InternetDatagramSocket.cpp
|
||||
../connectivity/netsocket/source/UDPSocket.cpp
|
||||
../connectivity/netsocket/source/DTLSSocket.cpp
|
||||
../connectivity/netsocket/source/DTLSSocketWrapper.cpp
|
||||
../connectivity/netsocket/source/TLSSocketWrapper.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_DTLSSocket.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
../connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/Kernel_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
||||
|
||||
set(MBEDTLS_USER_CONFIG_FILE_PATH "\"${CMAKE_CURRENT_LIST_DIR}/dtls_test_config.h\"")
|
||||
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/test_DTLSSocket.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/DTLSSocket.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/DTLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/InternetDatagramSocket.cpp
|
||||
../connectivity/netsocket/source/UDPSocket.cpp
|
||||
../connectivity/netsocket/source/DTLSSocketWrapper.cpp
|
||||
../connectivity/netsocket/source/TLSSocketWrapper.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_DTLSSocketWrapper.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
../connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/Kernel_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
||||
|
||||
set(MBEDTLS_USER_CONFIG_FILE_PATH "\"${CMAKE_CURRENT_LIST_DIR}/dtls_test_config.h\"")
|
||||
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/test_DTLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/DTLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
|
@ -1,38 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "features_netsocket_EthernetInterface")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/EthernetInterface.cpp
|
||||
../connectivity/netsocket/source/EMACInterface.cpp
|
||||
../connectivity/netsocket/source/NetworkInterface.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libList/ns_list.c
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_EthernetInterface.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
|
@ -1,47 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkInterface.cpp
|
||||
../connectivity/netsocket/source/NetworkInterfaceDefaults.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp #nsapi_create_stack
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/TCPSocket.cpp
|
||||
../connectivity/netsocket/source/InternetDatagramSocket.cpp
|
||||
../connectivity/netsocket/source/UDPSocket.cpp
|
||||
../connectivity/netsocket/source/SocketStats.cpp
|
||||
../connectivity/netsocket/source/EthernetInterface.cpp
|
||||
../connectivity/netsocket/source/EMACInterface.cpp
|
||||
../connectivity/netsocket/source/nsapi_dns.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libList/ns_list.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/moduletest.cpp
|
||||
stubs/MeshInterface_stub.cpp
|
||||
stubs/CellularInterface_stub.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/mbed_rtos_rtx_stub.c
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/Kernel_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/rtx_mutex_stub.c
|
||||
stubs/EventFlags_stub.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEVICE_EMAC -DMBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=ETHERNET -DMBED_CONF_NSAPI_DNS_RESPONSE_WAIT_TIME=10000 -DMBED_CONF_NSAPI_DNS_RETRIES=1 -DMBED_CONF_NSAPI_DNS_TOTAL_ATTEMPTS=10 -DMBED_CONF_NSAPI_DNS_CACHE_SIZE=5")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEVICE_EMAC -DMBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE=ETHERNET -DMBED_CONF_NSAPI_DNS_RESPONSE_WAIT_TIME=10000 -DMBED_CONF_NSAPI_DNS_RETRIES=1 -DMBED_CONF_NSAPI_DNS_TOTAL_ATTEMPTS=10 -DMBED_CONF_NSAPI_DNS_CACHE_SIZE=5")
|
|
@ -1,34 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_NSAPI_DNS_ADDRESSES_LIMIT=10")
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_InternetSocket.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
|
@ -1,34 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMBED_CONF_PLATFORM_CALLBACK_COMPARABLE")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/NetworkInterface.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libList/ns_list.c
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_NetworkInterface.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
|
@ -1,33 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "features_netsocket_NetworkStack")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/NetworkInterface.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_NetworkStack.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
|
@ -1,39 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "features_netsocket_PPPInterface")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/PPPInterface.cpp
|
||||
../connectivity/netsocket/source/EMACInterface.cpp
|
||||
../connectivity/netsocket/source/NetworkInterface.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libList/ns_list.c
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_PPPInterface.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/NetworkStack_stub.cpp
|
||||
stubs/NetworkInterfaceDefaults_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Unit test suite name
|
||||
set(TEST_SUITE_NAME "features_netsocket_SocketAddress")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_SocketAddress.cpp
|
||||
)
|
|
@ -1,33 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/TCPSocket.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_TCPSocket.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/TCPSocket.cpp
|
||||
../connectivity/netsocket/source/TLSSocket.cpp
|
||||
../connectivity/netsocket/source/TLSSocketWrapper.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_TLSSocket.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
../connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
||||
|
||||
set(MBEDTLS_USER_CONFIG_FILE_PATH "\"${CMAKE_CURRENT_LIST_DIR}/tls_test_config.h\"")
|
||||
#set(MBEDTLS_USER_CONFIG_FILE_PATH "\"../connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/tls_test_config.h\"")
|
||||
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/test_TLSSocket.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/TLSSocket.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/TLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
|
@ -1,36 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/TCPSocket.cpp
|
||||
../connectivity/netsocket/source/TLSSocketWrapper.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_TLSSocketWrapper.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
../connectivity/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
||||
|
||||
set(MBEDTLS_USER_CONFIG_FILE_PATH "\"${CMAKE_CURRENT_LIST_DIR}/tls_test_config.h\"")
|
||||
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/test_TLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
||||
set_source_files_properties(../connectivity/netsocket/source/TLSSocketWrapper.cpp PROPERTIES COMPILE_DEFINITIONS MBEDTLS_USER_CONFIG_FILE=${MBEDTLS_USER_CONFIG_FILE_PATH})
|
|
@ -1,34 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/SocketAddress.cpp
|
||||
../connectivity/netsocket/source/NetworkStack.cpp
|
||||
../connectivity/netsocket/source/InternetSocket.cpp
|
||||
../connectivity/netsocket/source/InternetDatagramSocket.cpp
|
||||
../connectivity/netsocket/source/UDPSocket.cpp
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/ip4tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/ip6tos.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip4string/stoip4.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libip6string/stoip6.c
|
||||
../connectivity/libraries/nanostack-libservice/source/libBits/common_functions.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_UDPSocket.cpp
|
||||
stubs/Mutex_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/equeue_stub.c
|
||||
stubs/EventQueue_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/mbed_shared_queues_stub.cpp
|
||||
stubs/EventFlags_stub.cpp
|
||||
stubs/nsapi_dns_stub.cpp
|
||||
stubs/stoip4_stub.c
|
||||
stubs/ip4tos_stub.c
|
||||
stubs/SocketStats_Stub.cpp
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
../connectivity/netsocket/source/WiFiAccessPoint.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_WiFiAccessPoint.cpp
|
||||
)
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
set(TEST_SUITE_NAME "PwmOut")
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
../hal
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../drivers/source/PwmOut.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
../drivers/tests/UNITTESTS/PwmOut/test_pwmout.cpp
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/pwmout_api_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_PWMOUT
|
||||
)
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
set(TEST_SUITE_NAME "Watchdog")
|
||||
|
||||
# Add test specific include paths
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
../hal
|
||||
)
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../drivers/source/Watchdog.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
../drivers/tests/UNITTESTS/Watchdog/test_watchdog.cpp
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/watchdog_api_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_WATCHDOG
|
||||
-DMBED_WDOG_ASSERT=1
|
||||
)
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
list(REMOVE_ITEM unittest-includes ${PROJECT_SOURCE_DIR}/../events/tests/UNITTESTS/target_h ${PROJECT_SOURCE_DIR}/../events/test/UNITTESTS/target_h/equeue)
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
../events/source
|
||||
../events/include/events
|
||||
../events/include/events/internal
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../events/source/equeue.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
../events/tests/UNITTESTS/equeue/test_equeue.cpp
|
||||
../events/tests/UNITTESTS/stubs/EqueuePosix_stub.c
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-pthread
|
||||
-DEQUEUE_PLATFORM_POSIX
|
||||
)
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../platform/source/ATCmdParser.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
../platform/tests/UNITTESTS/ATCmdParser/test_ATCmdParser.cpp
|
||||
stubs/FileHandle_stub.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_poll_stub.cpp
|
||||
)
|
|
@ -1,13 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-sources
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
../platform/tests/UNITTESTS/CircularBuffer/test_CircularBuffer.cpp
|
||||
stubs/mbed_critical_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
set(TEST_SUITE_NAME "SFDP")
|
||||
|
||||
# Source files
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/SFDP.cpp
|
||||
)
|
||||
|
||||
# Test files
|
||||
set(unittest-test-sources
|
||||
../storage/blockdevice/tests/UNITTESTS/SFDP/test_sfdp.cpp
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DDEVICE_SPI
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/BufferedBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_BufferedBlockDevice.cpp
|
||||
stubs/BlockDevice_mock.h
|
||||
)
|
|
@ -1,21 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
../storage/blockdevice/source
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/ChainingBlockDevice.cpp
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_ChainingBlockDevice.cpp
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/ExhaustibleBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_ExhaustibleBlockDevice.cpp
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/FlashSimBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_FlashSimBlockDevice.cpp
|
||||
)
|
|
@ -1,63 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
../storage/blockdevice/include
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_CONF_FAT_CHAN_FFS_DBG=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_READONLY=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_MINIMIZE=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_STRFUNC=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_FIND=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_MKFS=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_FASTSEEK=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_EXPAND=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_CHMOD=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_LABEL=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_FORWARD=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_CODE_PAGE=437
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_LFN=3
|
||||
-DMBED_CONF_FAT_CHAN_FF_MAX_LFN=255
|
||||
-DMBED_CONF_FAT_CHAN_FF_LFN_UNICODE=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_LFN_BUF=255
|
||||
-DMBED_CONF_FAT_CHAN_FF_SFN_BUF=12
|
||||
-DMBED_CONF_FAT_CHAN_FF_STRF_ENCODE=3
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_RPATH=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_VOLUMES=4
|
||||
-DMBED_CONF_FAT_CHAN_FF_STR_VOLUME_ID=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_VOLUME_STRS=\"RAM\",\"NAND\",\"CF\",\"SD\",\"SD2\",\"USB\",\"USB2\",\"USB3\"
|
||||
-DMBED_CONF_FAT_CHAN_FF_MULTI_PARTITION=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_MIN_SS=512
|
||||
-DMBED_CONF_FAT_CHAN_FF_MAX_SS=4096
|
||||
-DMBED_CONF_FAT_CHAN_FF_USE_TRIM=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_NOFSINFO=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_TINY=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_EXFAT=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_HEAPBUF=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_NORTC=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_NORTC_MON=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_NORTC_MDAY=1
|
||||
-DMBED_CONF_FAT_CHAN_FF_NORTC_YEAR=2017
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_LOCK=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_REENTRANT=0
|
||||
-DMBED_CONF_FAT_CHAN_FF_FS_TIMEOUT=1000
|
||||
-DMBED_CONF_FAT_CHAN_FF_SYNC_t=HANDLE
|
||||
-DMBED_CONF_FAT_CHAN_FLUSH_ON_NEW_CLUSTER=0
|
||||
-DMBED_CONF_FAT_CHAN_FLUSH_ON_NEW_SECTOR=1
|
||||
)
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/MBRBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_MBRBlockDevice.cpp
|
||||
)
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/ObservingBlockDevice.cpp
|
||||
../storage/blockdevice/source/ReadOnlyBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_ObservingBlockDevice.cpp
|
||||
stubs/BlockDevice_mock.h
|
||||
)
|
|
@ -1,21 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/ProfilingBlockDevice.cpp
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_ProfilingBlockDevice.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
|
@ -1,21 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/ReadOnlyBlockDevice.cpp
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_ReadOnlyBlockDevice.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/SlicingBlockDevice.cpp
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/moduletest.cpp
|
||||
)
|
|
@ -1,40 +0,0 @@
|
|||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
../platform/mbed-trace/mbed-trace
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
../storage/kvstore/filesystemstore/source/FileSystemStore.cpp
|
||||
../storage/filesystem/littlefs/source/LittleFileSystem.cpp
|
||||
../storage/filesystem/source/Dir.cpp
|
||||
../storage/filesystem/source/File.cpp
|
||||
../storage/filesystem/source/FileSystem.cpp
|
||||
../platform/mbed-trace/source/mbed_trace.c
|
||||
../storage/filesystem/littlefs/littlefs/lfs_util.c
|
||||
../storage/filesystem/littlefs/littlefs/lfs.c
|
||||
../platform/source/FileBase.cpp
|
||||
../platform/source/FileSystemHandle.cpp
|
||||
../platform/source/FileHandle.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/moduletest.cpp
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
stubs/kv_config_stub.cpp
|
||||
stubs/mbed_retarget_stub.cpp
|
||||
)
|
||||
|
||||
set(unittest-test-flags
|
||||
-DMBED_LFS_READ_SIZE=64
|
||||
-DMBED_LFS_PROG_SIZE=64
|
||||
-DMBED_LFS_BLOCK_SIZE=512
|
||||
-DMBED_LFS_LOOKAHEAD=512
|
||||
)
|
|
@ -1,26 +0,0 @@
|
|||
|
||||
####################
|
||||
# UNIT TESTS
|
||||
####################
|
||||
|
||||
set(unittest-includes ${unittest-includes}
|
||||
.
|
||||
..
|
||||
../platform/mbed-trace/mbed-trace
|
||||
)
|
||||
|
||||
set(unittest-sources
|
||||
../storage/blockdevice/source/HeapBlockDevice.cpp
|
||||
../storage/blockdevice/source/BufferedBlockDevice.cpp
|
||||
../storage/kvstore/tdbstore/source/TDBStore.cpp
|
||||
../platform/mbed-trace/source/mbed_trace.c
|
||||
stubs/mbed_atomic_stub.c
|
||||
stubs/mbed_assert_stub.cpp
|
||||
stubs/mbed_error.c
|
||||
)
|
||||
|
||||
set(unittest-test-sources
|
||||
${CMAKE_CURRENT_LIST_DIR}/moduletest.cpp
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
Loading…
Reference in New Issue