Add a Batch script for running tests on Windows

This commit is contained in:
w0rp 2017-09-08 22:15:39 +01:00
parent a33b3f189d
commit d9bdbd5a58
1 changed files with 16 additions and 0 deletions

16
run-tests.bat Normal file
View File

@ -0,0 +1,16 @@
@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
type nul > "%VADER_OUTPUT_FILE%"
C:\vim\vim\vim80\vim.exe -u test/vimrc "+Vader! %tests%"
type "%VADER_OUTPUT_FILE%"
del "%VADER_OUTPUT_FILE%"