From 91ee1a8924e6e76c3c53ba248733d314fb512f09 Mon Sep 17 00:00:00 2001 From: "Pirogov, Vadim" Date: Tue, 7 Jan 2025 18:27:11 -0800 Subject: [PATCH] build: relocated tests/gtests/gtest to third_party --- tests/CMakeLists.txt | 2 +- tests/gtests/CMakeLists.txt | 4 ++-- tests/gtests/gtest/.clang-format | 18 ------------------ .../gtest/CMakeLists.txt | 0 {tests/gtests => third_party}/gtest/LICENSE | 0 .../gtest/gtest-death-test.h | 0 .../gtest/gtest-matchers.h | 0 .../gtest/gtest-message.h | 0 .../gtest/gtest-param-test.h | 0 .../gtest/gtest-printers.h | 0 .../gtests => third_party}/gtest/gtest-spi.h | 0 .../gtest/gtest-test-part.h | 0 .../gtest/gtest-typed-test.h | 0 {tests/gtests => third_party}/gtest/gtest.h | 0 .../gtest/gtest_pred_impl.h | 0 .../gtests => third_party}/gtest/gtest_prod.h | 0 .../gtest/internal/custom/README.md | 0 .../gtest/internal/custom/gtest-port.h | 0 .../gtest/internal/custom/gtest-printers.h | 0 .../gtest/internal/custom/gtest.h | 0 .../gtest/internal/gtest-death-test-internal.h | 0 .../gtest/internal/gtest-filepath.h | 0 .../gtest/internal/gtest-internal.h | 0 .../gtest/internal/gtest-param-util.h | 0 .../gtest/internal/gtest-port-arch.h | 0 .../gtest/internal/gtest-port.h | 0 .../gtest/internal/gtest-string.h | 0 .../gtest/internal/gtest-type-util.h | 0 .../gtest/src/gtest-all.cc | 0 .../gtest/src/gtest-death-test.cc | 0 .../gtest/src/gtest-filepath.cc | 0 .../gtest/src/gtest-internal-inl.h | 0 .../gtest/src/gtest-matchers.cc | 0 .../gtest/src/gtest-port.cc | 0 .../gtest/src/gtest-printers.cc | 0 .../gtest/src/gtest-test-part.cc | 0 .../gtest/src/gtest-typed-test.cc | 0 .../gtests => third_party}/gtest/src/gtest.cc | 0 .../gtest/src/gtest_main.cc | 0 39 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 tests/gtests/gtest/.clang-format rename {tests/gtests => third_party}/gtest/CMakeLists.txt (100%) rename {tests/gtests => third_party}/gtest/LICENSE (100%) rename {tests/gtests => third_party}/gtest/gtest-death-test.h (100%) rename {tests/gtests => third_party}/gtest/gtest-matchers.h (100%) rename {tests/gtests => third_party}/gtest/gtest-message.h (100%) rename {tests/gtests => third_party}/gtest/gtest-param-test.h (100%) rename {tests/gtests => third_party}/gtest/gtest-printers.h (100%) rename {tests/gtests => third_party}/gtest/gtest-spi.h (100%) rename {tests/gtests => third_party}/gtest/gtest-test-part.h (100%) rename {tests/gtests => third_party}/gtest/gtest-typed-test.h (100%) rename {tests/gtests => third_party}/gtest/gtest.h (100%) rename {tests/gtests => third_party}/gtest/gtest_pred_impl.h (100%) rename {tests/gtests => third_party}/gtest/gtest_prod.h (100%) rename {tests/gtests => third_party}/gtest/internal/custom/README.md (100%) rename {tests/gtests => third_party}/gtest/internal/custom/gtest-port.h (100%) rename {tests/gtests => third_party}/gtest/internal/custom/gtest-printers.h (100%) rename {tests/gtests => third_party}/gtest/internal/custom/gtest.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-death-test-internal.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-filepath.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-internal.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-param-util.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-port-arch.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-port.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-string.h (100%) rename {tests/gtests => third_party}/gtest/internal/gtest-type-util.h (100%) rename {tests/gtests => third_party}/gtest/src/gtest-all.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-death-test.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-filepath.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-internal-inl.h (100%) rename {tests/gtests => third_party}/gtest/src/gtest-matchers.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-port.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-printers.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-test-part.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest-typed-test.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest.cc (100%) rename {tests/gtests => third_party}/gtest/src/gtest_main.cc (100%) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6d26e21d968..c927b45e5ea 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ #=============================================================================== -# Copyright 2016-2024 Intel Corporation +# Copyright 2016-2025 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/gtests/CMakeLists.txt b/tests/gtests/CMakeLists.txt index 9a5c3448187..2b39cd8eb1a 100644 --- a/tests/gtests/CMakeLists.txt +++ b/tests/gtests/CMakeLists.txt @@ -1,5 +1,5 @@ #=============================================================================== -# Copyright 2016-2024 Intel Corporation +# Copyright 2016-2025 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -19,7 +19,7 @@ if(WIN32 AND DNNL_WITH_SYCL) add_definitions(-DGTEST_HAS_SEH=0) endif() -add_subdirectory (gtest) +add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/gtest gtest) set(APP_NAME "gtest") set(MAIN_SRC_GTEST ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp) diff --git a/tests/gtests/gtest/.clang-format b/tests/gtests/gtest/.clang-format deleted file mode 100644 index 8f3f1619dcd..00000000000 --- a/tests/gtests/gtest/.clang-format +++ /dev/null @@ -1,18 +0,0 @@ -#=============================================================================== -# Copyright 2019 Intel Corporation -# -# 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. -#=============================================================================== - -DisableFormat : true -SortIncludes: false diff --git a/tests/gtests/gtest/CMakeLists.txt b/third_party/gtest/CMakeLists.txt similarity index 100% rename from tests/gtests/gtest/CMakeLists.txt rename to third_party/gtest/CMakeLists.txt diff --git a/tests/gtests/gtest/LICENSE b/third_party/gtest/LICENSE similarity index 100% rename from tests/gtests/gtest/LICENSE rename to third_party/gtest/LICENSE diff --git a/tests/gtests/gtest/gtest-death-test.h b/third_party/gtest/gtest-death-test.h similarity index 100% rename from tests/gtests/gtest/gtest-death-test.h rename to third_party/gtest/gtest-death-test.h diff --git a/tests/gtests/gtest/gtest-matchers.h b/third_party/gtest/gtest-matchers.h similarity index 100% rename from tests/gtests/gtest/gtest-matchers.h rename to third_party/gtest/gtest-matchers.h diff --git a/tests/gtests/gtest/gtest-message.h b/third_party/gtest/gtest-message.h similarity index 100% rename from tests/gtests/gtest/gtest-message.h rename to third_party/gtest/gtest-message.h diff --git a/tests/gtests/gtest/gtest-param-test.h b/third_party/gtest/gtest-param-test.h similarity index 100% rename from tests/gtests/gtest/gtest-param-test.h rename to third_party/gtest/gtest-param-test.h diff --git a/tests/gtests/gtest/gtest-printers.h b/third_party/gtest/gtest-printers.h similarity index 100% rename from tests/gtests/gtest/gtest-printers.h rename to third_party/gtest/gtest-printers.h diff --git a/tests/gtests/gtest/gtest-spi.h b/third_party/gtest/gtest-spi.h similarity index 100% rename from tests/gtests/gtest/gtest-spi.h rename to third_party/gtest/gtest-spi.h diff --git a/tests/gtests/gtest/gtest-test-part.h b/third_party/gtest/gtest-test-part.h similarity index 100% rename from tests/gtests/gtest/gtest-test-part.h rename to third_party/gtest/gtest-test-part.h diff --git a/tests/gtests/gtest/gtest-typed-test.h b/third_party/gtest/gtest-typed-test.h similarity index 100% rename from tests/gtests/gtest/gtest-typed-test.h rename to third_party/gtest/gtest-typed-test.h diff --git a/tests/gtests/gtest/gtest.h b/third_party/gtest/gtest.h similarity index 100% rename from tests/gtests/gtest/gtest.h rename to third_party/gtest/gtest.h diff --git a/tests/gtests/gtest/gtest_pred_impl.h b/third_party/gtest/gtest_pred_impl.h similarity index 100% rename from tests/gtests/gtest/gtest_pred_impl.h rename to third_party/gtest/gtest_pred_impl.h diff --git a/tests/gtests/gtest/gtest_prod.h b/third_party/gtest/gtest_prod.h similarity index 100% rename from tests/gtests/gtest/gtest_prod.h rename to third_party/gtest/gtest_prod.h diff --git a/tests/gtests/gtest/internal/custom/README.md b/third_party/gtest/internal/custom/README.md similarity index 100% rename from tests/gtests/gtest/internal/custom/README.md rename to third_party/gtest/internal/custom/README.md diff --git a/tests/gtests/gtest/internal/custom/gtest-port.h b/third_party/gtest/internal/custom/gtest-port.h similarity index 100% rename from tests/gtests/gtest/internal/custom/gtest-port.h rename to third_party/gtest/internal/custom/gtest-port.h diff --git a/tests/gtests/gtest/internal/custom/gtest-printers.h b/third_party/gtest/internal/custom/gtest-printers.h similarity index 100% rename from tests/gtests/gtest/internal/custom/gtest-printers.h rename to third_party/gtest/internal/custom/gtest-printers.h diff --git a/tests/gtests/gtest/internal/custom/gtest.h b/third_party/gtest/internal/custom/gtest.h similarity index 100% rename from tests/gtests/gtest/internal/custom/gtest.h rename to third_party/gtest/internal/custom/gtest.h diff --git a/tests/gtests/gtest/internal/gtest-death-test-internal.h b/third_party/gtest/internal/gtest-death-test-internal.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-death-test-internal.h rename to third_party/gtest/internal/gtest-death-test-internal.h diff --git a/tests/gtests/gtest/internal/gtest-filepath.h b/third_party/gtest/internal/gtest-filepath.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-filepath.h rename to third_party/gtest/internal/gtest-filepath.h diff --git a/tests/gtests/gtest/internal/gtest-internal.h b/third_party/gtest/internal/gtest-internal.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-internal.h rename to third_party/gtest/internal/gtest-internal.h diff --git a/tests/gtests/gtest/internal/gtest-param-util.h b/third_party/gtest/internal/gtest-param-util.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-param-util.h rename to third_party/gtest/internal/gtest-param-util.h diff --git a/tests/gtests/gtest/internal/gtest-port-arch.h b/third_party/gtest/internal/gtest-port-arch.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-port-arch.h rename to third_party/gtest/internal/gtest-port-arch.h diff --git a/tests/gtests/gtest/internal/gtest-port.h b/third_party/gtest/internal/gtest-port.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-port.h rename to third_party/gtest/internal/gtest-port.h diff --git a/tests/gtests/gtest/internal/gtest-string.h b/third_party/gtest/internal/gtest-string.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-string.h rename to third_party/gtest/internal/gtest-string.h diff --git a/tests/gtests/gtest/internal/gtest-type-util.h b/third_party/gtest/internal/gtest-type-util.h similarity index 100% rename from tests/gtests/gtest/internal/gtest-type-util.h rename to third_party/gtest/internal/gtest-type-util.h diff --git a/tests/gtests/gtest/src/gtest-all.cc b/third_party/gtest/src/gtest-all.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-all.cc rename to third_party/gtest/src/gtest-all.cc diff --git a/tests/gtests/gtest/src/gtest-death-test.cc b/third_party/gtest/src/gtest-death-test.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-death-test.cc rename to third_party/gtest/src/gtest-death-test.cc diff --git a/tests/gtests/gtest/src/gtest-filepath.cc b/third_party/gtest/src/gtest-filepath.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-filepath.cc rename to third_party/gtest/src/gtest-filepath.cc diff --git a/tests/gtests/gtest/src/gtest-internal-inl.h b/third_party/gtest/src/gtest-internal-inl.h similarity index 100% rename from tests/gtests/gtest/src/gtest-internal-inl.h rename to third_party/gtest/src/gtest-internal-inl.h diff --git a/tests/gtests/gtest/src/gtest-matchers.cc b/third_party/gtest/src/gtest-matchers.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-matchers.cc rename to third_party/gtest/src/gtest-matchers.cc diff --git a/tests/gtests/gtest/src/gtest-port.cc b/third_party/gtest/src/gtest-port.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-port.cc rename to third_party/gtest/src/gtest-port.cc diff --git a/tests/gtests/gtest/src/gtest-printers.cc b/third_party/gtest/src/gtest-printers.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-printers.cc rename to third_party/gtest/src/gtest-printers.cc diff --git a/tests/gtests/gtest/src/gtest-test-part.cc b/third_party/gtest/src/gtest-test-part.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-test-part.cc rename to third_party/gtest/src/gtest-test-part.cc diff --git a/tests/gtests/gtest/src/gtest-typed-test.cc b/third_party/gtest/src/gtest-typed-test.cc similarity index 100% rename from tests/gtests/gtest/src/gtest-typed-test.cc rename to third_party/gtest/src/gtest-typed-test.cc diff --git a/tests/gtests/gtest/src/gtest.cc b/third_party/gtest/src/gtest.cc similarity index 100% rename from tests/gtests/gtest/src/gtest.cc rename to third_party/gtest/src/gtest.cc diff --git a/tests/gtests/gtest/src/gtest_main.cc b/third_party/gtest/src/gtest_main.cc similarity index 100% rename from tests/gtests/gtest/src/gtest_main.cc rename to third_party/gtest/src/gtest_main.cc