2016-12-23 16:58:26 +08:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/test_results/unit)
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/test_results/benchmark)
|
2017-06-30 20:25:25 +08:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/test_results/property_based)
|
2016-12-22 22:51:16 +08:00
|
|
|
|
2016-12-18 17:16:07 +08:00
|
|
|
# copy test data
|
2016-06-07 05:57:16 +08:00
|
|
|
file(COPY ${CMAKE_SOURCE_DIR}/tests/data
|
|
|
|
DESTINATION ${CMAKE_BINARY_DIR}/tests)
|
2016-12-18 17:16:07 +08:00
|
|
|
|
|
|
|
# move test data data to the build directory
|
2017-09-26 20:25:01 +08:00
|
|
|
set(test_data "tests/data")
|
|
|
|
set(test_data_src "${CMAKE_SOURCE_DIR}/${test_data}")
|
|
|
|
set(test_data_dst "${CMAKE_BINARY_DIR}/${test_data}")
|
|
|
|
add_custom_target(test_data
|
|
|
|
COMMAND rm -rf ${test_data_dst}
|
|
|
|
COMMAND cp -r ${test_data_src} ${test_data_dst})
|
2016-12-18 17:16:07 +08:00
|
|
|
# -----------------------------------------------------------------------------
|
2016-12-18 04:00:32 +08:00
|
|
|
|
2017-09-27 19:03:44 +08:00
|
|
|
include_directories(${GTEST_INCLUDE_DIR})
|
|
|
|
|
2016-12-18 04:00:32 +08:00
|
|
|
# benchmark test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(benchmark)
|
2016-12-18 04:00:32 +08:00
|
|
|
|
2017-08-25 17:08:45 +08:00
|
|
|
# macro_benchmark test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(macro_benchmark)
|
2017-08-25 17:08:45 +08:00
|
|
|
|
2017-09-18 20:30:27 +08:00
|
|
|
# stress test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(stress)
|
2017-09-18 20:30:27 +08:00
|
|
|
|
2016-12-18 04:00:32 +08:00
|
|
|
# concurrent test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(concurrent)
|
2016-12-18 04:00:32 +08:00
|
|
|
|
|
|
|
# manual test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(manual)
|
2016-05-23 13:51:36 +08:00
|
|
|
|
2016-12-18 04:00:32 +08:00
|
|
|
# unit test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(unit)
|
2017-06-30 20:25:25 +08:00
|
|
|
|
|
|
|
# property based test binaries
|
2017-10-13 21:30:06 +08:00
|
|
|
add_subdirectory(property_based)
|