diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 15:49:59 +0300 |
commit | b4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch) | |
tree | 6a64ab25a145265287789bceed3f59e953561206 /library/cpp/testing | |
parent | 5e837a820d5be0671fa4096a1cc1e378453e5132 (diff) | |
download | ydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz |
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/testing')
-rw-r--r-- | library/cpp/testing/common/CMakeLists.txt | 12 | ||||
-rw-r--r-- | library/cpp/testing/gmock_in_unittest/CMakeLists.txt | 17 | ||||
-rw-r--r-- | library/cpp/testing/gtest_extensions/CMakeLists.txt | 14 | ||||
-rw-r--r-- | library/cpp/testing/hook/CMakeLists.txt | 8 | ||||
-rw-r--r-- | library/cpp/testing/unittest/CMakeLists.txt | 19 | ||||
-rw-r--r-- | library/cpp/testing/unittest_main/CMakeLists.txt | 10 |
6 files changed, 80 insertions, 0 deletions
diff --git a/library/cpp/testing/common/CMakeLists.txt b/library/cpp/testing/common/CMakeLists.txt new file mode 100644 index 0000000000..cd819a464c --- /dev/null +++ b/library/cpp/testing/common/CMakeLists.txt @@ -0,0 +1,12 @@ +add_library(cpp-testing-common) +target_link_libraries(cpp-testing-common PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(cpp-testing-common PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/common/env.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/common/network.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/common/probe.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/common/scope.cpp +) diff --git a/library/cpp/testing/gmock_in_unittest/CMakeLists.txt b/library/cpp/testing/gmock_in_unittest/CMakeLists.txt new file mode 100644 index 0000000000..b805a1f31f --- /dev/null +++ b/library/cpp/testing/gmock_in_unittest/CMakeLists.txt @@ -0,0 +1,17 @@ +add_library(cpp-testing-gmock_in_unittest) +target_link_libraries(cpp-testing-gmock_in_unittest PUBLIC + contrib-libs-cxxsupp + yutil + restricted-googletest-googlemock + restricted-googletest-googletest + cpp-testing-gtest_extensions + cpp-testing-unittest +) +target_sources(cpp-testing-gmock_in_unittest PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gmock_in_unittest/events.cpp +) + +add_global_library_for(cpp-testing-gmock_in_unittest.global cpp-testing-gmock_in_unittest) +target_sources(cpp-testing-gmock_in_unittest.global PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gmock_in_unittest/registration.cpp +) diff --git a/library/cpp/testing/gtest_extensions/CMakeLists.txt b/library/cpp/testing/gtest_extensions/CMakeLists.txt new file mode 100644 index 0000000000..50b6d18d2b --- /dev/null +++ b/library/cpp/testing/gtest_extensions/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(cpp-testing-gtest_extensions) +target_link_libraries(cpp-testing-gtest_extensions PUBLIC + contrib-libs-cxxsupp + yutil + restricted-googletest-googlemock + restricted-googletest-googletest +) +target_sources(cpp-testing-gtest_extensions PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_extensions/assertions.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_extensions/gtest_extensions.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_extensions/matchers.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_extensions/pretty_printers.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_extensions/probe.cpp +) diff --git a/library/cpp/testing/hook/CMakeLists.txt b/library/cpp/testing/hook/CMakeLists.txt new file mode 100644 index 0000000000..39272209f3 --- /dev/null +++ b/library/cpp/testing/hook/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(cpp-testing-hook) +target_link_libraries(cpp-testing-hook PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-testing-hook PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/hook/hook.cpp +) diff --git a/library/cpp/testing/unittest/CMakeLists.txt b/library/cpp/testing/unittest/CMakeLists.txt new file mode 100644 index 0000000000..5c4976b8ed --- /dev/null +++ b/library/cpp/testing/unittest/CMakeLists.txt @@ -0,0 +1,19 @@ +add_library(cpp-testing-unittest) +target_link_libraries(cpp-testing-unittest PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-colorizer + library-cpp-dbg_output + library-cpp-diff + cpp-json-writer + cpp-testing-common + cpp-testing-hook +) +target_sources(cpp-testing-unittest PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/gtest.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/checks.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/plugin.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/registar.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/tests_data.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest/utmain.cpp +) diff --git a/library/cpp/testing/unittest_main/CMakeLists.txt b/library/cpp/testing/unittest_main/CMakeLists.txt new file mode 100644 index 0000000000..05555b99e7 --- /dev/null +++ b/library/cpp/testing/unittest_main/CMakeLists.txt @@ -0,0 +1,10 @@ +add_library(cpp-testing-unittest_main) +target_link_libraries(cpp-testing-unittest_main PUBLIC + contrib-libs-cxxsupp + yutil + cpp-testing-unittest + library-cpp-terminate_handler +) +target_sources(cpp-testing-unittest_main PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/unittest_main/main.cpp +) |