X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/run-tests.bat?ds=sidebyside diff --git a/.vim/bundle/ale/run-tests.bat b/.vim/bundle/ale/run-tests.bat new file mode 100644 index 00000000..9ba6b554 --- /dev/null +++ b/.vim/bundle/ale/run-tests.bat @@ -0,0 +1,30 @@ +@echo off +REM Run tests on Windows. +REM +REM To run these tests, you should set up your Windows machine with the same +REM paths that are used in AppVeyor. + +set tests=test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*/*.vader + +REM Use the first argument for selecting tests to run. +if not "%1"=="" set tests=%1 + +set VADER_OUTPUT_FILE=%~dp0\vader_output +REM Automatically re-run Windows tests, which can fail some times. +set tries=0 + +:RUN_TESTS +set /a tries=%tries%+1 +type nul > "%VADER_OUTPUT_FILE%" +C:\vim\vim\vim80\vim.exe -u test/vimrc "+Vader! %tests%" +set code=%ERRORLEVEL% + +IF %code% EQU 0 GOTO :SHOW_RESULTS +IF %tries% GEQ 2 GOTO :SHOW_RESULTS +GOTO :RUN_TESTS + +:SHOW_RESULTS +type "%VADER_OUTPUT_FILE%" +del "%VADER_OUTPUT_FILE%" + +exit /B %code%