diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-29 14:55:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-29 14:55:25 +0100 |
commit | 301aeb573abdcb237ab59d6f2c08ba069c0dff5a (patch) | |
tree | cfaaec4b11d9652c503ac4f51981dcd57bf5e8a5 /test | |
parent | 5f450d88f7dc79fa13371bdef6bc6dedb1c56aa5 (diff) | |
download | rspamd-301aeb573abdcb237ab59d6f2c08ba069c0dff5a.tar.gz rspamd-301aeb573abdcb237ab59d6f2c08ba069c0dff5a.zip |
[Fix] Fix build with the new tests framework
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e94a1a04b..f32d772b9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -40,14 +40,6 @@ IF (ENABLE_HYPERSCAN MATCHES "ON") ENDIF() TARGET_LINK_LIBRARIES(rspamd-test rspamd-actrie) -ADD_CUSTOM_TARGET(rspamd-func-test COMMAND - "/bin/sh" - "${CMAKE_CURRENT_BINARY_DIR}/functional/tests.sh") - -ADD_DEPENDENCIES(rspamd-func-test rspamd-test) -ADD_DEPENDENCIES(rspamd-func-test rspamc) -ADD_DEPENDENCIES(rspamd-func-test rspamd) - IF(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") # Also add dependencies for convenience FILE(GLOB_RECURSE LUA_TESTS "${CMAKE_CURRENT_SOURCE_DIR}/lua/*") @@ -68,24 +60,4 @@ IF(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") ) ADD_DEPENDENCIES(rspamd-test "${_NM}") ENDFOREACH() - - ADD_CUSTOM_TARGET(functional-dir COMMAND - ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/functional/cases" - COMMAND ${CMAKE_COMMAND} -E make_directory - "${CMAKE_CURRENT_BINARY_DIR}/functional/configs" - COMMAND ${CMAKE_COMMAND} -E make_directory - "${CMAKE_CURRENT_BINARY_DIR}/functional/messages" - ) - ADD_DEPENDENCIES(rspamd-func-test functional-dir) - FILE(GLOB_RECURSE BATS_TESTS "${CMAKE_CURRENT_SOURCE_DIR}/functional/*") - FOREACH(_LF IN LISTS BATS_TESTS) - GET_FILENAME_COMPONENT(_NM "${_LF}" NAME) - STRING(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_BINARY_DIR}" - _DS "${_LF}") - ADD_CUSTOM_TARGET("${_NM}" COMMAND - ${CMAKE_COMMAND} -E copy_if_different ${_LF} ${_DS} - SOURCES "${_LF}" - ) - ADD_DEPENDENCIES(rspamd-func-test "${_NM}") - ENDFOREACH() ENDIF()
\ No newline at end of file |