aboutsummaryrefslogtreecommitdiff
path: root/test/busted_runner.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-01-31 23:35:04 +0100
committerbfredl <bjorn.linse@gmail.com>2023-02-10 20:19:04 +0100
commitd6279f9392073cb1422d76c57baf3fd283ed954e (patch)
tree744661e70dd843edb434c662355cc3062de2d78a /test/busted_runner.lua
parente5d8220179f932ab9c9ef59996cab357a25eaaf8 (diff)
downloadrneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.tar.gz
rneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.tar.bz2
rneovim-d6279f9392073cb1422d76c57baf3fd283ed954e.zip
refactor(tests): move lua-client into core and use it for functionaltests
Eliminates lua-client and non-static libluv as test time dependencies Note: the API for a public lua-client is not yet finished. The interface needs to be adjusted to work in the embedded loop of a nvim instance (to use it to talk between instances)
Diffstat (limited to 'test/busted_runner.lua')
-rw-r--r--test/busted_runner.lua11
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 })