summaryrefslogtreecommitdiff
path: root/test/windows/setenv.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-16 09:39:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-16 09:39:06 +0200
commitc832963ebe7939393f1108d31aa569723190177c (patch)
treefb978ada240abbca55a0bf17283795b044615cea /test/windows/setenv.bat
parent0f61d97cb8e971308d91cfe305d20f1f33190dc0 (diff)
Add Windows test scripts (VC and MinGW)
Diffstat (limited to 'test/windows/setenv.bat')
-rw-r--r--test/windows/setenv.bat34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/windows/setenv.bat b/test/windows/setenv.bat
new file mode 100644
index 0000000..411f931
--- /dev/null
+++ b/test/windows/setenv.bat
@@ -0,0 +1,34 @@
+@echo off
+
+if "_%1_" == "__" (
+ echo no VC++ version specified
+ goto usage
+)
+
+set ROOT=c:\projects
+set "DIFF=c:\cygwin\bin\diff.exe -ubB"
+
+if "_%1_" == "_8_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.com"
+if "_%1_" == "_9_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com"
+if "_%1_" == "_10_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com"
+if "_%1_" == "_11_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.com"
+if "_%1_" == "_12_" set "DEVENV=c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"
+
+set PATH=%ROOT%\xsd\xsd-i686-windows\bin;%PATH%
+set PATH=%ROOT%\xerces-vc\bin;%PATH%
+set PATH=%ROOT%\xerces-vc\bin64;%PATH%
+
+if "_%2_" == "__" goto end
+
+%2 %3 %4 %5 %6 %7 %8 %9
+goto end
+
+:usage
+echo.
+echo usage: setenv.bat vc-version ...
+echo.
+
+:error
+exit /b 1
+
+:end