-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【paddle_test No.31, No.32】replace cc_test with paddle_test (#60959)
* feat(cmake): push paddle_test of utils * feat(ctest): move ut to test * feat(cmake): push paddle_test * feat(windows): add TEST_API for windows * fix(ctest): support ut on windows
- Loading branch information
Showing
15 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# if(NOT WITH_GFLAGS) | ||
# paddle_test(flags_native_test SRCS flags_native_test.cc) | ||
# endif() | ||
|
||
add_subdirectory(string) | ||
|
||
paddle_test(array_ref_test SRCS array_ref_test.cc) | ||
paddle_test(small_vector_test SRCS small_vector_test.cc) | ||
paddle_test(variant_test SRCS variant_test.cc) | ||
paddle_test(span_test SRCS span_test.cc) | ||
|
||
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(array_ref_test) | ||
copy_onnx(small_vector_test) | ||
copy_onnx(variant_test) | ||
copy_onnx(span_test) | ||
endif() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
paddle_test(stringprintf_test SRCS printf_test.cc) | ||
paddle_test(to_string_test SRCS to_string_test.cc) | ||
paddle_test(split_test SRCS split_test.cc) | ||
paddle_test(string_helper_test SRCS string_helper_test.cc DEPS string_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(stringprintf_test) | ||
copy_onnx(to_string_test) | ||
copy_onnx(split_test) | ||
copy_onnx(string_helper_test) | ||
endif() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.