commit f3bdc03: [Minor] CMakeLists.txt: add LUA_PATH for run-test * fixes #3826

Duncan Bellamy dunk at denkimushi.com
Thu Jul 29 22:07:04 UTC 2021


Author: Duncan Bellamy
Date: 2021-07-28 22:05:08 +0100
URL: https://github.com/rspamd/rspamd/commit/f3bdc035d3c047a34da22b97c9243451dd8ebc2a (refs/pull/3835/head)

[Minor] CMakeLists.txt: add LUA_PATH for run-test * fixes #3826

---
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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)
 
 


More information about the Commits mailing list