]> source.dussan.org Git - rspamd.git/commitdiff
Add custom targets check and run-test.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Dec 2014 17:28:07 +0000 (17:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 17 Dec 2014 17:28:07 +0000 (17:28 +0000)
CMakeLists.txt
contrib/siphash

index 33348ac6b6e2e83bb5a488c923cd6b9184ebdc3d..be81d3eeb9f5f72f32573c4302713ff8e0b1db9d 100644 (file)
@@ -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
index 17e54301cb629d5711af0f85eec0b760efce4b52..a2008b797d528768f849f7b7ab2ec4cde66cc1c2 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 17e54301cb629d5711af0f85eec0b760efce4b52
+Subproject commit a2008b797d528768f849f7b7ab2ec4cde66cc1c2