diff --git a/UNITTESTS/empty_baseline/empty_baseline.cpp b/UNITTESTS/empty_baseline/empty_baseline.cpp deleted file mode 100644 index a44075c..0000000 --- a/UNITTESTS/empty_baseline/empty_baseline.cpp +++ /dev/null @@ -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); -} diff --git a/UNITTESTS/empty_baseline/unittest.cmake b/UNITTESTS/empty_baseline/unittest.cmake deleted file mode 100644 index 34aae47..0000000 --- a/UNITTESTS/empty_baseline/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularcontext/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularcontext/unittest.cmake deleted file mode 100644 index 4c90919..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularcontext/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellulardevice/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellulardevice/unittest.cmake deleted file mode 100644 index 20bc316..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellulardevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularinformation/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularinformation/unittest.cmake deleted file mode 100644 index fad6023..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularinformation/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularnetwork/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularnetwork/unittest.cmake deleted file mode 100644 index 07c7b9c..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularnetwork/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularsms/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularsms/unittest.cmake deleted file mode 100644 index dc34487..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularsms/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularstack/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularstack/unittest.cmake deleted file mode 100644 index 97fe9a2..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/AT/at_cellularstack/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/common/list/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/common/list/unittest.cmake deleted file mode 100644 index 2325fb0..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/common/list/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/common/util/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/common/util/unittest.cmake deleted file mode 100644 index 556c12a..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/common/util/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/device/athandler/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/device/athandler/unittest.cmake deleted file mode 100644 index 8a787df..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/device/athandler/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/device/cellularcontext/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/device/cellularcontext/unittest.cmake deleted file mode 100644 index 8bbb4c4..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/device/cellularcontext/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/device/cellulardevice/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/device/cellulardevice/unittest.cmake deleted file mode 100644 index b0052a7..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/device/cellulardevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/cellular/tests/UNITTESTS/framework/device/cellularstatemachine/unittest.cmake b/connectivity/cellular/tests/UNITTESTS/framework/device/cellularstatemachine/unittest.cmake deleted file mode 100644 index 1d628e1..0000000 --- a/connectivity/cellular/tests/UNITTESTS/framework/device/cellularstatemachine/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramac/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramac/unittest.cmake deleted file mode 100644 index f1044ed..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramac/unittest.cmake +++ /dev/null @@ -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}\"") - - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramacchannelplan/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramacchannelplan/unittest.cmake deleted file mode 100644 index 702e41e..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramacchannelplan/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccommand/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccommand/unittest.cmake deleted file mode 100644 index c6497c7..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccommand/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccrypto/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccrypto/unittest.cmake deleted file mode 100644 index 19a752f..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loramaccrypto/unittest.cmake +++ /dev/null @@ -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 - ) diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphy/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphy/unittest.cmake deleted file mode 100644 index 55d4df0..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphy/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyas923/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyas923/unittest.cmake deleted file mode 100644 index 27fe307..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyas923/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyau915/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyau915/unittest.cmake deleted file mode 100644 index 713840c..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyau915/unittest.cmake +++ /dev/null @@ -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}\"") - - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn470/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn470/unittest.cmake deleted file mode 100644 index a67f0df..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn470/unittest.cmake +++ /dev/null @@ -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}\"") - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn779/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn779/unittest.cmake deleted file mode 100644 index 7d2fb8f..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphycn779/unittest.cmake +++ /dev/null @@ -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}\"") diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu433/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu433/unittest.cmake deleted file mode 100644 index d4722e7..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu433/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu868/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu868/unittest.cmake deleted file mode 100644 index cc43f25..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyeu868/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyin865/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyin865/unittest.cmake deleted file mode 100644 index be47422..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyin865/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphykr920/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphykr920/unittest.cmake deleted file mode 100644 index e7ac20c..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphykr920/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyus915/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyus915/unittest.cmake deleted file mode 100644 index 722f4fc..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/loraphyus915/unittest.cmake +++ /dev/null @@ -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}\"") diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawaninterface/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawaninterface/unittest.cmake deleted file mode 100644 index e6c0466..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawaninterface/unittest.cmake +++ /dev/null @@ -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 -) - - - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawanstack/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawanstack/unittest.cmake deleted file mode 100644 index 9607ac1..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawanstack/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/unittest.cmake b/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/unittest.cmake deleted file mode 100644 index a95ab5d..0000000 --- a/connectivity/lorawan/tests/UNITTESTS/features/lorawan/lorawantimer/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/unittest.cmake deleted file mode 100644 index 18580aa..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/CellularNonIPSocket/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/unittest.cmake deleted file mode 100644 index 4a3938b..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocket/unittest.cmake +++ /dev/null @@ -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}) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/unittest.cmake deleted file mode 100644 index 817bd84..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/DTLSSocketWrapper/unittest.cmake +++ /dev/null @@ -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}) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/unittest.cmake deleted file mode 100644 index 64ca41e..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/unittest.cmake deleted file mode 100644 index d8107e5..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/IfaceDnsSocket/unittest.cmake +++ /dev/null @@ -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") \ No newline at end of file diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/unittest.cmake deleted file mode 100644 index ff4bba8..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/InternetSocket/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/unittest.cmake deleted file mode 100644 index c03690a..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkInterface/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/unittest.cmake deleted file mode 100644 index 239074a..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/NetworkStack/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/unittest.cmake deleted file mode 100644 index 8fc42de..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/unittest.cmake deleted file mode 100644 index 6cb641b..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/SocketAddress/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/unittest.cmake deleted file mode 100644 index 1966b7c..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TCPSocket/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/unittest.cmake deleted file mode 100644 index 112826e..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocket/unittest.cmake +++ /dev/null @@ -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}) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/unittest.cmake deleted file mode 100644 index c7a111a..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/TLSSocketWrapper/unittest.cmake +++ /dev/null @@ -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}) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/unittest.cmake deleted file mode 100644 index bf9b060..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/UDPSocket/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/unittest.cmake b/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/unittest.cmake deleted file mode 100644 index a4ffba1..0000000 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/WiFiAccessPoint/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/drivers/tests/UNITTESTS/PwmOut/unittest.cmake b/drivers/tests/UNITTESTS/PwmOut/unittest.cmake deleted file mode 100644 index 20ed523..0000000 --- a/drivers/tests/UNITTESTS/PwmOut/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/drivers/tests/UNITTESTS/Watchdog/unittest.cmake b/drivers/tests/UNITTESTS/Watchdog/unittest.cmake deleted file mode 100644 index 92254ce..0000000 --- a/drivers/tests/UNITTESTS/Watchdog/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/events/tests/UNITTESTS/equeue/unittest.cmake b/events/tests/UNITTESTS/equeue/unittest.cmake deleted file mode 100644 index fe0f05a..0000000 --- a/events/tests/UNITTESTS/equeue/unittest.cmake +++ /dev/null @@ -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 -) - diff --git a/platform/tests/UNITTESTS/ATCmdParser/unittest.cmake b/platform/tests/UNITTESTS/ATCmdParser/unittest.cmake deleted file mode 100644 index 77c8433..0000000 --- a/platform/tests/UNITTESTS/ATCmdParser/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/platform/tests/UNITTESTS/CircularBuffer/unittest.cmake b/platform/tests/UNITTESTS/CircularBuffer/unittest.cmake deleted file mode 100644 index b9c59e0..0000000 --- a/platform/tests/UNITTESTS/CircularBuffer/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/SFDP/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/SFDP/unittest.cmake deleted file mode 100644 index 479a36f..0000000 --- a/storage/blockdevice/tests/UNITTESTS/SFDP/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/BufferedBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/BufferedBlockDevice/unittest.cmake deleted file mode 100644 index 96569ed..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/BufferedBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/ChainingBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/ChainingBlockDevice/unittest.cmake deleted file mode 100644 index cf954f3..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/ChainingBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/ExhaustibleBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/ExhaustibleBlockDevice/unittest.cmake deleted file mode 100644 index efc460b..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/ExhaustibleBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/FlashSimBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/FlashSimBlockDevice/unittest.cmake deleted file mode 100644 index afbd9f6..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/FlashSimBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/HeapBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/HeapBlockDevice/unittest.cmake deleted file mode 100644 index 48be0ec..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/HeapBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/MBRBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/MBRBlockDevice/unittest.cmake deleted file mode 100644 index 6368772..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/MBRBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/ObservingBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/ObservingBlockDevice/unittest.cmake deleted file mode 100644 index 1637658..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/ObservingBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/ProfilingBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/ProfilingBlockDevice/unittest.cmake deleted file mode 100644 index a17a4f5..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/ProfilingBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/ReadOnlyBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/ReadOnlyBlockDevice/unittest.cmake deleted file mode 100644 index 90a9247..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/ReadOnlyBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/blockdevice/tests/UNITTESTS/blockdevice/SlicingBlockDevice/unittest.cmake b/storage/blockdevice/tests/UNITTESTS/blockdevice/SlicingBlockDevice/unittest.cmake deleted file mode 100644 index 268e9b6..0000000 --- a/storage/blockdevice/tests/UNITTESTS/blockdevice/SlicingBlockDevice/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/kvstore/filesystemstore/tests/UNITTESTS/FileSystemStore/unittest.cmake b/storage/kvstore/filesystemstore/tests/UNITTESTS/FileSystemStore/unittest.cmake deleted file mode 100644 index b12cabe..0000000 --- a/storage/kvstore/filesystemstore/tests/UNITTESTS/FileSystemStore/unittest.cmake +++ /dev/null @@ -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 -) diff --git a/storage/kvstore/tdbstore/tests/UNITTESTS/TDBStore/unittest.cmake b/storage/kvstore/tdbstore/tests/UNITTESTS/TDBStore/unittest.cmake deleted file mode 100644 index 5d1a3a5..0000000 --- a/storage/kvstore/tdbstore/tests/UNITTESTS/TDBStore/unittest.cmake +++ /dev/null @@ -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}")