aboutsummaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-27 15:33:58 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-27 15:33:58 +0000
commit2f20e4f7fe5cf9b40dc8781675672e69437166e3 (patch)
tree33ac38199af643b735ff5c513fe3c0ffa1662c7d /test/CMakeLists.txt
parent755c318fc6f67687042a03719adf13e86399337b (diff)
downloadrspamd-2f20e4f7fe5cf9b40dc8781675672e69437166e3.tar.gz
rspamd-2f20e4f7fe5cf9b40dc8781675672e69437166e3.zip
Add lua test framework.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index f5743bd2f..9932fb87d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -11,6 +11,7 @@ SET(TESTSRC rspamd_expression_test.c
rspamd_shingles_test.c
rspamd_upstream_test.c
rspamd_http_test.c
+ rspamd_lua_test.c
rspamd_test_suite.c)
ADD_EXECUTABLE(rspamd-test EXCLUDE_FROM_ALL ${TESTSRC})
@@ -18,4 +19,13 @@ SET_TARGET_PROPERTIES(rspamd-test PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(rspamd-test PROPERTIES COMPILE_FLAGS "-DRSPAMD_TEST")
TARGET_LINK_LIBRARIES(rspamd-test rspamd-server)
-TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES}) \ No newline at end of file
+TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES})
+TARGET_LINK_LIBRARIES(rspamd-test stemmer)
+
+IF(NOT ${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
+ FILE(COPY "${CMAKE_CURRENT_SOURCE_DIR}/busted.lua"
+ "${CMAKE_CURRENT_SOURCE_DIR}/busted"
+ "${CMAKE_CURRENT_SOURCE_DIR}/lua"
+ DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+
+ENDIF() \ No newline at end of file