aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_test.sh')
-rw-r--r--scripts/run_test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/run_test.sh b/scripts/run_test.sh
new file mode 100644
index 00000000..164a4392
--- /dev/null
+++ b/scripts/run_test.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+PJ_ROOT=$(pwd)
+
+if [ ! -d ./neovim ]; then
+ git clone --depth 1 https://github.com/neovim/neovim
+fi
+
+cd ./neovim
+
+make functionaltest \
+ BUSTED_ARGS="--lpath=$PJ_ROOT/?.lua --lpath=$PJ_ROOT/lua/?.lua --lpath=$PJ_ROOT/lua/nvim_lsp/?.lua" \
+ TEST_FILE="../test/nvim_lsp_spec.lua"