-
Notifications
You must be signed in to change notification settings - Fork 111
/
RunTests_VC14.bat
122 lines (90 loc) · 6.7 KB
/
RunTests_VC14.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
@CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsMSBuildCmd.bat"
@SET SLN_PATH=OpenGL.Net_VC14.sln
@SET SLN_BUILD_OPTS=/nologo /verbosity:minimal
@IF '%COVERAGE_ONLY%' NEQ '' GOTO :COVERAGE_ONLY
@IF '%SKIP_BUILD%' NEQ '' GOTO :SKIP_BUILD
.\nuget.exe restore %SLN_PATH%
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Release /p:Platform="Any CPU"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Release /p:Platform="x86"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Release /p:Platform="x64"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Debug /p:Platform="Any CPU"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Debug /p:Platform="x86"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild %SLN_PATH% %SLN_BUILD_OPTS% /property:Configuration=Debug /p:Platform="x64"
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
:SKIP_BUILD
@SET PATH=%PATH%;%ProgramFiles(x86)%\Android\android-sdk\platform-tools
@SET TEST_OPTS=--noheader --labels=All
SET OPENGL_NET_PLATFORM=WGL
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Objects.Test\OpenGL.Net.Objects.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Objects.Test\OpenGL.Net.Objects.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
SET OPENGL_NET_PLATFORM=EGL
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
REM FAILING!!! msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
REM FAILING!!! msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Objects.Test\OpenGL.Net.Objects.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Objects.Test\OpenGL.Net.Objects.Test_net461.csproj %SLN_BUILD_OPTS% /target:UnitTest /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
:COVERAGE_ONLY
@SET COVER_RUN=packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
@SET COVER_OPTS=-register:user -target:"packages\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe" -hideskipped:All
@SET COVER_EXCLUDE=-excludebyattribute:*.RequiredByFeature*
@SET COVER_WHERE=--where=\"cat=EGL||cat=WGL||cat=Math||cat=Framework||cat=Toolkit_CoreUI\"
SET OPENGL_NET_PLATFORM=WGL
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
rem msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
SET OPENGL_NET_PLATFORM=EGL
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.Test\OpenGL.Net.Test_net35.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x86"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
msbuild OpenGL.Net.CoreUI.Test\OpenGL.Net.CoreUI.Test_net461.csproj %SLN_BUILD_OPTS% /target:Coverage /property:Configuration=Release /p:Platform="x64"
@IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
@SET REPORT_RUN=packages\ReportGenerator.2.5.7\tools\ReportGenerator.exe
%REPORT_RUN% "-reports:Cov*.xml" "-targetdir:CodeCoverageReport" "-reporttypes:Html"
:ERROR
pause