summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-12-25 15:11:42 +0100
committerGitHub <noreply@github.com>2021-12-25 15:11:42 +0100
commitd7e233566543d4c83199f5644f90bb116d7070f2 (patch)
treeecfcb6e5abb937ee976eed6daac1bf2ab3bac51d /Makefile
parentfix: dont pass nil opts (diff)
downloadmason-d7e233566543d4c83199f5644f90bb116d7070f2.tar
mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.gz
mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.bz2
mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.lz
mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.xz
mason-d7e233566543d4c83199f5644f90bb116d7070f2.tar.zst
mason-d7e233566543d4c83199f5644f90bb116d7070f2.zip
add some tests (#360)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..48a28d7a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+INSTALL_ROOT_DIR:=$(shell pwd)/tests/fixtures/lsp_servers
+NVIM_HEADLESS:=nvim --headless --noplugin -u tests/minimal_init.vim
+
+dependencies:
+ git clone --depth 1 https://github.com/nvim-lua/plenary.nvim dependencies/pack/vendor/start/plenary.nvim
+
+.PHONY: clean_dependencies
+clean_dependencies:
+ rm -rf dependencies
+
+.PHONY: clean_servers
+clean_servers:
+ rm -rf "${INSTALL_ROOT_DIR}"
+
+.PHONY: clean
+clean: clean_servers clean_dependencies
+
+.PHONY: test
+test: clean_servers dependencies
+ INSTALL_ROOT_DIR=${INSTALL_ROOT_DIR} $(NVIM_HEADLESS) -c "call RunTests()"
+
+# vim:noexpandtab