move TestMain.cpp to testing

avx_docs
hedaoyuan 9 years ago
parent 4af4883f22
commit 918c1ed1c0

@ -1,6 +1,7 @@
add_subdirectory(cuda)
add_subdirectory(function)
add_subdirectory(utils)
add_subdirectory(testing)
add_subdirectory(math)
add_subdirectory(parameter)
add_subdirectory(gserver)

@ -12,11 +12,13 @@ endif()
add_library(paddle_function STATIC ${cpp_files} ${cu_objs})
if(WITH_GPU)
if(WITH_TESTING)
# TODO:
# file(GLOB test_files . *_op_test.cpp)
# add_executable(${test_bin} EXCLUDE_FROM_ALL ${test_files})
add_simple_unittest(cross_map_normal_op_test)
endif()
endif()
add_style_check_target(paddle_function ${h_files})
add_style_check_target(paddle_function ${cpp_files})

@ -0,0 +1,6 @@
# for paddle test case
if(WITH_TESTING)
add_library(paddle_test_main STATIC TestMain.cpp)
add_dependencies(paddle_test_main gen_proto_cpp)
endif()

@ -5,8 +5,6 @@ file(GLOB UTIL_SOURCES . *.cpp)
create_resources(enable_virtualenv.py enable_virtualenv.c)
set(UTIL_RES enable_virtualenv.c)
add_library(paddle_test_main STATIC TestMain.cpp)
if(APPLE)
file(GLOB UTIL_ARCH_SOURCES . arch/osx/*.cpp)
else()

Loading…
Cancel
Save