From: Vsevolod Stakhov Date: Wed, 17 Dec 2014 17:28:07 +0000 (+0000) Subject: Add custom targets check and run-test. X-Git-Tag: 0.8.0~78^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e771cd9604aca7831495e2cb04592ae9ebc9eba8;p=rspamd.git Add custom targets check and run-test. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 33348ac6b..be81d3eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ IF(NOT RSPAMD_USER) ENDIF(NOT RSPAMD_USER) CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +SET_PROPERTY(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1) ############################# OPTIONS SECTION ############################################# @@ -939,3 +940,6 @@ ADD_CUSTOM_TARGET(dist ${CMAKE_SOURCE_DIR}/dist.sh "${CMAKE_BINARY_DIR}/rspamd-${RSPAMD_VERSION}.tar.xz" COMMENT "Create source distribution" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +ADD_CUSTOM_TARGET(check DEPENDS rspamd-test) +ADD_CUSTOM_TARGET(run-test DEPENDS check COMMAND test/rspamd-test) \ No newline at end of file diff --git a/contrib/siphash b/contrib/siphash index 17e54301c..a2008b797 160000 --- a/contrib/siphash +++ b/contrib/siphash @@ -1 +1 @@ -Subproject commit 17e54301cb629d5711af0f85eec0b760efce4b52 +Subproject commit a2008b797d528768f849f7b7ab2ec4cde66cc1c2