summaryrefslogtreecommitdiff
path: root/run-tests.bat
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-08 22:15:39 +0100
committerw0rp <devw0rp@gmail.com>2017-09-08 22:15:39 +0100
commitd9bdbd5a58faa1547fbeccc53a69bd0846628243 (patch)
treef0e8f2be5e0f66db0158738ddad2dc7fddcccaed /run-tests.bat
parenta33b3f189dc6ff4c5fe04adb2860b6ec09d2d4fb (diff)
downloadale-d9bdbd5a58faa1547fbeccc53a69bd0846628243.zip
Add a Batch script for running tests on Windows
Diffstat (limited to 'run-tests.bat')
-rw-r--r--run-tests.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/run-tests.bat b/run-tests.bat
new file mode 100644
index 00000000..4650516d
--- /dev/null
+++ b/run-tests.bat
@@ -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%"