summaryrefslogtreecommitdiff
path: root/vim/pack/downloads/opt/lsp/test/run_tests.cmd
blob: 863d06dfc16db17d88822230be31ecc1842a3029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off

REM Script to run the unit-tests for the LSP Vim plugin on MS-Windows

SETLOCAL
SET VIMPRG="vim.exe"
SET VIM_CMD=%VIMPRG% -u NONE -U NONE -i NONE --noplugin -N --not-a-term

%VIM_CMD% -c "let g:TestName='clangd_tests.vim'" -S runner.vim

echo LSP unit test results
type results.txt

findstr /I FAIL results.txt > nul 2>&1
if %ERRORLEVEL% EQU 0 echo ERROR: Some test failed.
if %ERRORLEVEL% NEQ 0 echo SUCCESS: All the tests passed.