]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/run-tests.bat

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / ale / run-tests.bat
1 @echo off
2 REM Run tests on Windows.
3 REM
4 REM To run these tests, you should set up your Windows machine with the same
5 REM paths that are used in AppVeyor.
6
7 set tests=test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*/*.vader
8
9 REM Use the first argument for selecting tests to run.
10 if not "%1"=="" set tests=%1
11
12 set VADER_OUTPUT_FILE=%~dp0\vader_output
13 REM Automatically re-run Windows tests, which can fail some times.
14 set tries=0
15
16 :RUN_TESTS
17 set /a tries=%tries%+1
18 type nul > "%VADER_OUTPUT_FILE%"
19 C:\vim\vim\vim80\vim.exe -u test/vimrc "+Vader! %tests%"
20 set code=%ERRORLEVEL%
21
22 IF %code% EQU 0 GOTO :SHOW_RESULTS
23 IF %tries%  GEQ 2 GOTO :SHOW_RESULTS
24 GOTO :RUN_TESTS
25
26 :SHOW_RESULTS
27 type "%VADER_OUTPUT_FILE%"
28 del "%VADER_OUTPUT_FILE%"
29
30 exit /B %code%