Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【paddle_test No.37】replace cc_test with paddle_test #62035

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions paddle/fluid/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ cc_library(
SRCS denormal.cc
DEPS)

cc_test(
errors_test
SRCS errors_test.cc
DEPS phi common enforce)

set(enforce_deps phi)
if(WITH_GPU)
set(enforce_deps ${enforce_deps} external_error_proto)
Expand All @@ -18,28 +13,11 @@ cc_library(
SRCS enforce.cc
DEPS ${enforce_deps})
cc_library(monitor SRCS monitor.cc)
cc_test(
enforce_test
SRCS enforce_test.cc
DEPS enforce common)

cc_test(
cpu_info_test
SRCS cpu_info_test.cc
DEPS phi common)
cc_test(
os_info_test
SRCS os_info_test.cc
DEPS phi common)

cc_library(
place
SRCS place.cc
DEPS enforce phi common)
cc_test(
place_test
SRCS place_test.cc
DEPS place glog phi common)

if(WITH_MKLDNN)
set(MKLDNN_CTX_DEPS mkldnn)
Expand All @@ -54,10 +32,6 @@ cc_library(
cpu_helper
SRCS cpu_helper.cc
DEPS cblas enforce common)
cc_test(
cpu_helper_test
SRCS cpu_helper_test.cc
DEPS cpu_helper)

set(dgc_deps "")
if(WITH_DGC)
Expand Down
23 changes: 23 additions & 0 deletions test/cpp/fluid/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
add_subdirectory(device)
add_subdirectory(profiler)

paddle_test(errors_test SRCS errors_test.cc)

paddle_test(enforce_test SRCS enforce_test.cc DEPS enforce common external_error_proto)
Liyulingyue marked this conversation as resolved.
Show resolved Hide resolved

paddle_test(cpu_info_test SRCS cpu_info_test.cc DEPS common)
paddle_test(os_info_test SRCS os_info_test.cc DEPS common)

cc_test(
place_test
SRCS place_test.cc
DEPS place glog phi common)

cc_test(
cpu_helper_test
SRCS cpu_helper_test.cc
DEPS cpu_helper)

if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
# be build only in CI, so suppose the generator in Windows is Ninja.
copy_onnx(errors_test)
endif()