diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-02-10 20:51:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 20:51:36 +0100 |
commit | b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802 (patch) | |
tree | ea341bee19c2202cbe94ccefb2afeba953af713e /test/busted_runner.lua | |
parent | 4c64cbe99f2616a1d1126257da8d40773f4adba1 (diff) | |
parent | 0837980db4958baca96449869d31120f349f3500 (diff) | |
download | rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.tar.gz rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.tar.bz2 rneovim-b8ad1bfe8bc23ed5ffbfe43df5fda3501f1d2802.zip |
Merge pull request #22077 from bfredl/neolua_client
refactor(tests): integrate lua-client into core and use core for functionaltests
Diffstat (limited to 'test/busted_runner.lua')
-rw-r--r-- | test/busted_runner.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/busted_runner.lua b/test/busted_runner.lua index b195ce3cc5..62d1e611e7 100644 --- a/test/busted_runner.lua +++ b/test/busted_runner.lua @@ -1 +1,12 @@ +local platform = vim.loop.os_uname() +if platform and platform.sysname:lower():find'windows' then + local deps_prefix = os.getenv 'DEPS_PREFIX' + if deps_prefix ~= nil and deps_prefix ~= "" then + package.path = deps_prefix.."/share/lua/5.1/?.lua;"..deps_prefix.."/share/lua/5.1/?/init.lua;"..package.path + package.path = deps_prefix.."/bin/lua/?.lua;"..deps_prefix.."/bin/lua/?/init.lua;"..package.path + package.cpath = deps_prefix.."/lib/lua/5.1/?.dll;"..package.cpath; + package.cpath = deps_prefix.."/bin/?.dll;"..deps_prefix.."/bin/loadall.dll;"..package.cpath; + end +end + require 'busted.runner'({ standalone = false }) |