summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 23:49:54 -0300
committerFelipe Magno de Almeida <felipe@expertise.dev>2020-05-04 23:49:54 -0300
commite84115e1355b3a26d9f7907cbcdc26efafccb303 (patch)
treee1af7704d87ab2243659656e060096d8f264596a
parent5a98a48bd2749d81afd61fd1105850cf06534a27 (diff)
windows: Add test batch file
-rw-r--r--test.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/test.bat b/test.bat
new file mode 100644
index 0000000000..877950abb2
--- /dev/null
+++ b/test.bat
@@ -0,0 +1,22 @@
1@echo off
2
3set __OLD_vcvars64=%vcvars64%
4set vcvars64="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
5set CLICOLOR_FORCE=1
6
7set NINJAFLAGS=%*
8
9set vcvars64="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
10set CLICOLOR_FORCE=1
11
12if not defined DevEnvDir (
13 echo DevEnvDir not defined. Running vcvars64...
14 call %vcvars64%
15 @set DevEnvDir=%cd%
16)
17
18ninja %NINJAFLAGS% -C build test
19
20set vcvars64=%__OLD_vcvars64%
21set __OLD_vcvars64=
22exit /B %ERRORLEVEL%