diff options
author | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:13:09 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-11 23:23:50 +0300 |
commit | ec730daee9bbdc34e250dea3beb7c15e6e7927dc (patch) | |
tree | 3c80093e4262d24050a3653d49dd1913b685616e /test/config/paths.lua.in | |
parent | ce12bda712bfe41ec606dc86604011e33690df3c (diff) | |
download | rneovim-ec730daee9bbdc34e250dea3beb7c15e6e7927dc.tar.gz rneovim-ec730daee9bbdc34e250dea3beb7c15e6e7927dc.tar.bz2 rneovim-ec730daee9bbdc34e250dea3beb7c15e6e7927dc.zip |
unittests: Do not use which, add data to paths.lua.in instead
Diffstat (limited to 'test/config/paths.lua.in')
-rw-r--r-- | test/config/paths.lua.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/config/paths.lua.in b/test/config/paths.lua.in index 80cc5629d1..8dd4de75db 100644 --- a/test/config/paths.lua.in +++ b/test/config/paths.lua.in @@ -8,6 +8,15 @@ end module.test_include_path = "${CMAKE_BINARY_DIR}/test/includes/post" module.test_libnvim_path = "${TEST_LIBNVIM_PATH}" module.test_source_path = "${CMAKE_SOURCE_DIR}" +module.test_lua_prg = "${LUA_PRG}" +module.test_luajit_prg = "" +if module.test_luajit_prg == '' then + if module.test_lua_prg:sub(-6) == 'luajit' then + module.test_luajit_prg = module.test_lua_prg + else + module.test_luajit_prg = nil + end +end table.insert(module.include_paths, "${CMAKE_BINARY_DIR}/include") return module |