mirror of https://github.com/ARMmbed/mbed-os.git
55 lines
1.6 KiB
CMake
55 lines
1.6 KiB
CMake
|
|
####################
|
|
# UNIT TESTS
|
|
####################
|
|
|
|
# Add test specific include paths
|
|
set(unittest-includes ${unittest-includes}
|
|
features/cellular/framework/common/util
|
|
../features/cellular/framework/common
|
|
../features/cellular/framework/AT
|
|
../features/frameworks/mbed-client-randlib/mbed-client-randlib
|
|
../features/netsocket/cellular
|
|
)
|
|
|
|
# Source files
|
|
set(unittest-sources
|
|
../features/cellular/framework/AT/AT_CellularStack.cpp
|
|
../features/frameworks/nanostack-libservice/source/libip4string/ip4tos.c
|
|
../features/frameworks/nanostack-libservice/source/libip6string/ip6tos.c
|
|
../features/frameworks/nanostack-libservice/source/libip4string/stoip4.c
|
|
../features/frameworks/nanostack-libservice/source/libip6string/stoip6.c
|
|
../features/frameworks/nanostack-libservice/source/libBits/common_functions.c
|
|
../features/netsocket/SocketAddress.cpp
|
|
)
|
|
|
|
# Test files
|
|
set(unittest-test-sources
|
|
features/cellular/framework/AT/at_cellularstack/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
|
|
)
|
|
|