You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
699 B
Makefile

PLENARY-DIR=../plenary.nvim
PLENARY-REPO=https://github.com/nvim-lua/plenary.nvim.git
.PHONY: test
test:
nvim --headless --noplugin -u tests/minimal_init.vim -c "lua require('plenary.test_harness').test_directory('tests/', { minimal_init = 'tests/minimal_init.vim', sequential = true, timeout = 120000 })"
.PHONY: test-file
test-file:
nvim --headless --noplugin -u tests/minimal_init.vim -c "lua require('plenary.busted').run(vim.loop.cwd()..'/'..[[$(FILE)]])"
.PHONY: plenary
plenary:
@if [ ! -d $(PLENARY-DIR) ] ;\
then \
echo "Cloning plenary.nvim..."; \
git clone $(PLENARY-REPO) $(PLENARY-DIR); \
else \
echo "Updating plenary.nvim..."; \
git -C $(PLENARY-DIR) pull; \
fi