Skip to content

Commit

Permalink
feat(ctest): move ut to test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyewww committed Jan 24, 2024
1 parent 6e0abcb commit aff6342
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 20 deletions.
20 changes: 0 additions & 20 deletions paddle/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,10 @@ if(NOT WITH_GFLAGS)
if(CINN_ONLY)
return()
endif()
paddle_test(flags_native_test SRCS flags_native_test.cc DEPS paddle_flags)
endif()

add_subdirectory(string)

paddle_test(
array_ref_test
SRCS
array_ref_test.cc
DEPS
gtest
phi
common)
paddle_test(
small_vector_test
SRCS
small_vector_test.cc
DEPS
gtest
phi
common)
paddle_test(variant_test SRCS variant_test.cc DEPS gtest)
paddle_test(span_test SRCS span_test.cc DEPS gtest)

if(NOT ((NOT WITH_PYTHON) AND ON_INFER))
cc_library(
pybind_util
Expand Down
1 change: 1 addition & 0 deletions test/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ add_subdirectory(pir)
add_subdirectory(inference)
add_subdirectory(eager)
add_subdirectory(fluid)
add_subdirectory(utils)
22 changes: 22 additions & 0 deletions test/cpp/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
if(NOT WITH_GFLAGS)
paddle_test(flags_native_test SRCS flags_native_test.cc DEPS paddle_flags)
endif()

paddle_test(
array_ref_test
SRCS
array_ref_test.cc
DEPS
gtest
phi
common)
paddle_test(
small_vector_test
SRCS
small_vector_test.cc
DEPS
gtest
phi
common)
paddle_test(variant_test SRCS variant_test.cc DEPS gtest)
paddle_test(span_test SRCS span_test.cc DEPS gtest)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit aff6342

Please sign in to comment.