From fa9f76db81b21242e10dacf495a0bc365605e2e2 Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Tue, 19 May 2020 19:43:47 +0900 Subject: test: add test runner script --- Makefile | 3 +++ scripts/run_test.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Makefile create mode 100644 scripts/run_test.sh diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8ab91f98 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +test: + sh ./scripts/run_test.sh +.PHONY: test 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" -- cgit v1.2.3-70-g09d2