aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2021-07-28 22:05:08 +0100
committerDuncan Bellamy <dunk@denkimushi.com>2021-07-29 22:59:48 +0100
commitf3bdc035d3c047a34da22b97c9243451dd8ebc2a (patch)
tree31b4472044148ae4d03a38dfad6c72c07d299652 /CMakeLists.txt
parent49e5514eaf91f70205374c55ed7383a6b9f8a12d (diff)
downloadrspamd-f3bdc035d3c047a34da22b97c9243451dd8ebc2a.tar.gz
rspamd-f3bdc035d3c047a34da22b97c9243451dd8ebc2a.zip
[Minor] CMakeLists.txt: add LUA_PATH for run-test
* fixes #3826
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 43af327b2..49446c194 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -787,7 +787,10 @@ ADD_CUSTOM_TARGET(dist ${CMAKE_SOURCE_DIR}/dist.sh
IF(NOT DEBIAN_BUILD)
ADD_CUSTOM_TARGET(check DEPENDS rspamd-test-cxx rspamd-test)
- ADD_CUSTOM_TARGET(run-test DEPENDS check COMMAND test/rspamd-test-cxx COMMAND test/rspamd-test -p /rspamd/lua)
+ ADD_CUSTOM_TARGET(run-test DEPENDS check
+ COMMAND test/rspamd-test-cxx
+ COMMAND sh -c 'LUA_PATH="${CMAKE_SOURCE_DIR}/lualib/?.lua\;${CMAKE_SOURCE_DIR}/lualib/?/?.lua\;${CMAKE_SOURCE_DIR}/lualib/?/init.lua\;${CMAKE_SOURCE_DIR}/contrib/lua-?/?.lua"
+ test/rspamd-test -p /rspamd/lua')
ENDIF(NOT DEBIAN_BUILD)