2022-12-12 00:15:45 +08:00
|
|
|
|
2023-05-11 02:57:51 +08:00
|
|
|
add_executable(oatppAllTests
|
|
|
|
oatpp/AllTestsMain.cpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/core/async/ConditionVariableTest.cpp
|
|
|
|
oatpp/core/async/ConditionVariableTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/core/async/LockTest.cpp
|
|
|
|
oatpp/core/async/LockTest.hpp
|
|
|
|
oatpp/core/base/CommandLineArgumentsTest.cpp
|
|
|
|
oatpp/core/base/CommandLineArgumentsTest.hpp
|
|
|
|
oatpp/core/base/LoggerTest.cpp
|
|
|
|
oatpp/core/base/LoggerTest.hpp
|
|
|
|
oatpp/core/data/buffer/ProcessorTest.cpp
|
|
|
|
oatpp/core/data/buffer/ProcessorTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/core/data/mapping/TypeResolverTest.cpp
|
|
|
|
oatpp/core/data/mapping/TypeResolverTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/core/data/mapping/type/AnyTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/AnyTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/EnumTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/EnumTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/InterpretationTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/InterpretationTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/ListTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/ListTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/ObjectTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/ObjectTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/ObjectWrapperTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/ObjectWrapperTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/PairListTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/PairListTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/PrimitiveTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/PrimitiveTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/StringTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/StringTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/TypeTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/TypeTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/UnorderedMapTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/UnorderedMapTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/UnorderedSetTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/UnorderedSetTest.hpp
|
|
|
|
oatpp/core/data/mapping/type/VectorTest.cpp
|
|
|
|
oatpp/core/data/mapping/type/VectorTest.hpp
|
|
|
|
oatpp/core/data/resource/InMemoryDataTest.cpp
|
|
|
|
oatpp/core/data/resource/InMemoryDataTest.hpp
|
|
|
|
oatpp/core/data/share/LazyStringMapTest.cpp
|
|
|
|
oatpp/core/data/share/LazyStringMapTest.hpp
|
|
|
|
oatpp/core/data/share/MemoryLabelTest.cpp
|
|
|
|
oatpp/core/data/share/MemoryLabelTest.hpp
|
|
|
|
oatpp/core/data/share/StringTemplateTest.cpp
|
|
|
|
oatpp/core/data/share/StringTemplateTest.hpp
|
|
|
|
oatpp/core/data/stream/BufferStreamTest.cpp
|
|
|
|
oatpp/core/data/stream/BufferStreamTest.hpp
|
|
|
|
oatpp/core/parser/CaretTest.cpp
|
|
|
|
oatpp/core/parser/CaretTest.hpp
|
|
|
|
oatpp/core/provider/PoolTemplateTest.cpp
|
|
|
|
oatpp/core/provider/PoolTemplateTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/core/provider/PoolTest.cpp
|
|
|
|
oatpp/core/provider/PoolTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/encoding/Base64Test.cpp
|
|
|
|
oatpp/encoding/Base64Test.hpp
|
|
|
|
oatpp/encoding/UnicodeTest.cpp
|
|
|
|
oatpp/encoding/UnicodeTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/encoding/UrlTest.cpp
|
|
|
|
oatpp/encoding/UrlTest.hpp
|
|
|
|
oatpp/network/ConnectionPoolTest.cpp
|
|
|
|
oatpp/network/ConnectionPoolTest.hpp
|
|
|
|
oatpp/network/UrlTest.cpp
|
|
|
|
oatpp/network/UrlTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/network/monitor/ConnectionMonitorTest.cpp
|
|
|
|
oatpp/network/monitor/ConnectionMonitorTest.hpp
|
|
|
|
oatpp/network/virtual_/InterfaceTest.cpp
|
|
|
|
oatpp/network/virtual_/InterfaceTest.hpp
|
|
|
|
oatpp/network/virtual_/PipeTest.cpp
|
|
|
|
oatpp/network/virtual_/PipeTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/parser/json/mapping/BooleanTest.cpp
|
|
|
|
oatpp/parser/json/mapping/BooleanTest.hpp
|
|
|
|
oatpp/parser/json/mapping/DeserializerTest.cpp
|
|
|
|
oatpp/parser/json/mapping/DeserializerTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/parser/json/mapping/DTOMapperPerfTest.cpp
|
|
|
|
oatpp/parser/json/mapping/DTOMapperPerfTest.hpp
|
|
|
|
oatpp/parser/json/mapping/DTOMapperTest.cpp
|
|
|
|
oatpp/parser/json/mapping/DTOMapperTest.hpp
|
|
|
|
oatpp/parser/json/mapping/EnumTest.cpp
|
|
|
|
oatpp/parser/json/mapping/EnumTest.hpp
|
|
|
|
oatpp/parser/json/mapping/UnorderedSetTest.cpp
|
|
|
|
oatpp/parser/json/mapping/UnorderedSetTest.hpp
|
|
|
|
oatpp/web/ClientRetryTest.cpp
|
|
|
|
oatpp/web/ClientRetryTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/web/FullAsyncClientTest.cpp
|
|
|
|
oatpp/web/FullAsyncClientTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/web/FullAsyncTest.cpp
|
|
|
|
oatpp/web/FullAsyncTest.hpp
|
|
|
|
oatpp/web/FullTest.cpp
|
|
|
|
oatpp/web/FullTest.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/web/PipelineAsyncTest.cpp
|
|
|
|
oatpp/web/PipelineAsyncTest.hpp
|
|
|
|
oatpp/web/PipelineTest.cpp
|
|
|
|
oatpp/web/PipelineTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/web/app/BasicAuthorizationController.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/web/app/BearerAuthorizationController.hpp
|
|
|
|
oatpp/web/app/Client.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/web/app/Controller.hpp
|
|
|
|
oatpp/web/app/ControllerAsync.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/web/app/ControllerWithErrorHandler.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
oatpp/web/app/ControllerWithInterceptors.hpp
|
|
|
|
oatpp/web/app/ControllerWithInterceptorsAsync.hpp
|
2023-05-11 03:48:12 +08:00
|
|
|
oatpp/web/app/DTOs.hpp
|
|
|
|
oatpp/web/mime/multipart/StatefulParserTest.cpp
|
|
|
|
oatpp/web/mime/multipart/StatefulParserTest.hpp
|
|
|
|
oatpp/web/protocol/http/encoding/ChunkedTest.cpp
|
|
|
|
oatpp/web/protocol/http/encoding/ChunkedTest.hpp
|
|
|
|
oatpp/web/server/HttpRouterTest.cpp
|
|
|
|
oatpp/web/server/HttpRouterTest.hpp
|
|
|
|
oatpp/web/server/ServerStopTest.cpp
|
|
|
|
oatpp/web/server/ServerStopTest.hpp
|
|
|
|
oatpp/web/server/api/ApiControllerTest.cpp
|
|
|
|
oatpp/web/server/api/ApiControllerTest.hpp
|
|
|
|
oatpp/web/server/handler/AuthorizationHandlerTest.cpp
|
|
|
|
oatpp/web/server/handler/AuthorizationHandlerTest.hpp
|
2023-05-11 02:57:51 +08:00
|
|
|
)
|
2023-05-11 03:49:22 +08:00
|
|
|
set_target_source_groups(oatppAllTests STRIP_PREFIX "oatpp")
|
2019-01-21 11:03:23 +08:00
|
|
|
|
|
|
|
target_link_libraries(oatppAllTests PRIVATE oatpp PRIVATE oatpp-test)
|
|
|
|
|
|
|
|
set_target_properties(oatppAllTests PROPERTIES
|
|
|
|
CXX_STANDARD 11
|
|
|
|
CXX_EXTENSIONS OFF
|
|
|
|
CXX_STANDARD_REQUIRED ON
|
|
|
|
)
|
2021-05-15 15:59:11 +08:00
|
|
|
if (MSVC)
|
|
|
|
target_compile_options(oatppAllTests PRIVATE /permissive-)
|
|
|
|
endif()
|
2019-01-21 11:03:23 +08:00
|
|
|
|
|
|
|
target_include_directories(oatppAllTests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
add_test(oatppAllTests oatppAllTests)
|