CMakeLists.txt 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. add_executable(oatppAllTests
  2. oatpp/AllTestsMain.cpp
  3. oatpp/core/async/LockTest.cpp
  4. oatpp/core/async/LockTest.hpp
  5. oatpp/core/base/CommandLineArgumentsTest.cpp
  6. oatpp/core/base/CommandLineArgumentsTest.hpp
  7. oatpp/core/base/LoggerTest.cpp
  8. oatpp/core/base/LoggerTest.hpp
  9. oatpp/core/data/buffer/ProcessorTest.cpp
  10. oatpp/core/data/buffer/ProcessorTest.hpp
  11. oatpp/core/data/mapping/type/AnyTest.cpp
  12. oatpp/core/data/mapping/type/AnyTest.hpp
  13. oatpp/core/data/mapping/type/EnumTest.cpp
  14. oatpp/core/data/mapping/type/EnumTest.hpp
  15. oatpp/core/data/mapping/type/InterpretationTest.cpp
  16. oatpp/core/data/mapping/type/InterpretationTest.hpp
  17. oatpp/core/data/mapping/type/ListTest.cpp
  18. oatpp/core/data/mapping/type/ListTest.hpp
  19. oatpp/core/data/mapping/type/ObjectTest.cpp
  20. oatpp/core/data/mapping/type/ObjectTest.hpp
  21. oatpp/core/data/mapping/type/ObjectWrapperTest.cpp
  22. oatpp/core/data/mapping/type/ObjectWrapperTest.hpp
  23. oatpp/core/data/mapping/type/PairListTest.cpp
  24. oatpp/core/data/mapping/type/PairListTest.hpp
  25. oatpp/core/data/mapping/type/PrimitiveTest.cpp
  26. oatpp/core/data/mapping/type/PrimitiveTest.hpp
  27. oatpp/core/data/mapping/type/StringTest.cpp
  28. oatpp/core/data/mapping/type/StringTest.hpp
  29. oatpp/core/data/mapping/type/TypeTest.cpp
  30. oatpp/core/data/mapping/type/TypeTest.hpp
  31. oatpp/core/data/mapping/type/UnorderedMapTest.cpp
  32. oatpp/core/data/mapping/type/UnorderedMapTest.hpp
  33. oatpp/core/data/mapping/type/UnorderedSetTest.cpp
  34. oatpp/core/data/mapping/type/UnorderedSetTest.hpp
  35. oatpp/core/data/mapping/type/VectorTest.cpp
  36. oatpp/core/data/mapping/type/VectorTest.hpp
  37. oatpp/core/data/mapping/TypeResolverTest.cpp
  38. oatpp/core/data/mapping/TypeResolverTest.hpp
  39. oatpp/core/data/resource/InMemoryDataTest.cpp
  40. oatpp/core/data/resource/InMemoryDataTest.hpp
  41. oatpp/core/data/share/LazyStringMapTest.cpp
  42. oatpp/core/data/share/LazyStringMapTest.hpp
  43. oatpp/core/data/share/MemoryLabelTest.cpp
  44. oatpp/core/data/share/MemoryLabelTest.hpp
  45. oatpp/core/data/share/StringTemplateTest.cpp
  46. oatpp/core/data/share/StringTemplateTest.hpp
  47. oatpp/core/data/stream/BufferStreamTest.cpp
  48. oatpp/core/data/stream/BufferStreamTest.hpp
  49. oatpp/core/parser/CaretTest.cpp
  50. oatpp/core/parser/CaretTest.hpp
  51. oatpp/core/provider/PoolTest.cpp
  52. oatpp/core/provider/PoolTest.hpp
  53. oatpp/core/provider/PoolTemplateTest.cpp
  54. oatpp/core/provider/PoolTemplateTest.hpp
  55. oatpp/encoding/Base64Test.cpp
  56. oatpp/encoding/Base64Test.hpp
  57. oatpp/encoding/UnicodeTest.cpp
  58. oatpp/encoding/UnicodeTest.hpp
  59. oatpp/network/monitor/ConnectionMonitorTest.cpp
  60. oatpp/network/monitor/ConnectionMonitorTest.hpp
  61. oatpp/network/virtual_/InterfaceTest.cpp
  62. oatpp/network/virtual_/InterfaceTest.hpp
  63. oatpp/network/virtual_/PipeTest.cpp
  64. oatpp/network/virtual_/PipeTest.hpp
  65. oatpp/network/ConnectionPoolTest.cpp
  66. oatpp/network/ConnectionPoolTest.hpp
  67. oatpp/network/UrlTest.cpp
  68. oatpp/network/UrlTest.hpp
  69. oatpp/parser/json/mapping/DTOMapperPerfTest.cpp
  70. oatpp/parser/json/mapping/DTOMapperPerfTest.hpp
  71. oatpp/parser/json/mapping/DTOMapperTest.cpp
  72. oatpp/parser/json/mapping/DTOMapperTest.hpp
  73. oatpp/parser/json/mapping/DeserializerTest.cpp
  74. oatpp/parser/json/mapping/DeserializerTest.hpp
  75. oatpp/parser/json/mapping/EnumTest.cpp
  76. oatpp/parser/json/mapping/EnumTest.hpp
  77. oatpp/parser/json/mapping/UnorderedSetTest.cpp
  78. oatpp/parser/json/mapping/UnorderedSetTest.hpp
  79. oatpp/web/protocol/http/encoding/ChunkedTest.cpp
  80. oatpp/web/protocol/http/encoding/ChunkedTest.hpp
  81. oatpp/web/mime/multipart/StatefulParserTest.cpp
  82. oatpp/web/mime/multipart/StatefulParserTest.hpp
  83. oatpp/web/server/api/ApiControllerTest.cpp
  84. oatpp/web/server/api/ApiControllerTest.hpp
  85. oatpp/web/server/handler/AuthorizationHandlerTest.cpp
  86. oatpp/web/server/handler/AuthorizationHandlerTest.hpp
  87. oatpp/web/server/HttpRouterTest.cpp
  88. oatpp/web/server/HttpRouterTest.hpp
  89. oatpp/web/server/ServerStopTest.cpp
  90. oatpp/web/server/ServerStopTest.hpp
  91. oatpp/web/ClientRetryTest.cpp
  92. oatpp/web/ClientRetryTest.hpp
  93. oatpp/web/PipelineTest.cpp
  94. oatpp/web/PipelineTest.hpp
  95. oatpp/web/PipelineAsyncTest.cpp
  96. oatpp/web/PipelineAsyncTest.hpp
  97. oatpp/web/FullAsyncTest.cpp
  98. oatpp/web/FullAsyncTest.hpp
  99. oatpp/web/FullTest.cpp
  100. oatpp/web/FullTest.hpp
  101. oatpp/web/FullAsyncClientTest.cpp
  102. oatpp/web/FullAsyncClientTest.hpp
  103. oatpp/web/app/Client.hpp
  104. oatpp/web/app/BearerAuthorizationController.hpp
  105. oatpp/web/app/BasicAuthorizationController.hpp
  106. oatpp/web/app/Controller.hpp
  107. oatpp/web/app/ControllerAsync.hpp
  108. oatpp/web/app/DTOs.hpp
  109. oatpp/web/app/ControllerWithInterceptors.hpp
  110. oatpp/web/app/ControllerWithInterceptorsAsync.hpp
  111. oatpp/web/app/ControllerWithErrorHandler.hpp
  112. )
  113. target_link_libraries(oatppAllTests PRIVATE oatpp PRIVATE oatpp-test)
  114. set_target_properties(oatppAllTests PROPERTIES
  115. CXX_STANDARD 11
  116. CXX_EXTENSIONS OFF
  117. CXX_STANDARD_REQUIRED ON
  118. )
  119. if (MSVC)
  120. target_compile_options(oatppAllTests PRIVATE /permissive-)
  121. endif()
  122. target_include_directories(oatppAllTests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  123. add_test(oatppAllTests oatppAllTests)