]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] CMakeLists.txt: add LUA_PATH for run-test 3835/head
authorDuncan Bellamy <dunk@denkimushi.com>
Wed, 28 Jul 2021 21:05:08 +0000 (22:05 +0100)
committerDuncan Bellamy <dunk@denkimushi.com>
Thu, 29 Jul 2021 21:59:48 +0000 (22:59 +0100)
* fixes #3826

CMakeLists.txt

index 43af327b2204833441a1b2f738179a6160eb100b..49446c194bd9e6d690c4b4d781ebfef99d316517 100644 (file)
@@ -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)