-
Notifications
You must be signed in to change notification settings - Fork 109
/
OpenGL.Net.targets
37 lines (34 loc) · 2.33 KB
/
OpenGL.Net.targets
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="MSBuildTasks.SetEnvVar" AssemblyFile="$(ProjectDir)..\Tools\MSBuildTasks.dll"/>
<PropertyGroup>
<OPENGL_NET_PLATFORM Condition="'$(OPENGL_NET_PLATFORM)' == ''">WGL</OPENGL_NET_PLATFORM>
</PropertyGroup>
<PropertyGroup>
<NUnitConsole>$(ProjectDir)..\packages\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe</NUnitConsole>
<NUnitOptions>--where="cat=GL||cat=GL_VERSION_1_0||cat=EGL||cat=WGL||cat=Math||cat=Framework||cat=Toolkit_CoreUI||cat=Objects" --noheader --labels=All --workers=1</NUnitOptions>
<NUnitResultFormat /> <!-- ;format=AppVeyor -->
<NUnitResult>--result=$(ProjectDir)..\Tst$(OPENGL_NET_PLATFORM)$(ProjectName)_$(Platform)_$(Configuration).xml$(NUnitResultFormat)</NUnitResult>
</PropertyGroup>
<Target Name="UnitTest">
<Exec Command="$(NUnitConsole) "$(TargetPath)" $(NUnitResult) $(NUnitOptions)"/>
</Target>
<Target Name="UnitTestNoInit">
<SetEnvVar Variable="OPENGL_NET_INIT" Value="NO" />
<SetEnvVar Variable="OPENGL_NET_EGL_STATIC_INIT" Value="NO" />
<Exec Command="$(NUnitConsole) "$(TargetPath)" $(NUnitResult) $(NUnitOptions)"/>
</Target>
<PropertyGroup>
<OpenCoverConsole>$(ProjectDir)..\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe</OpenCoverConsole>
<OpenCoverOptions>-register:user -target:"$(NUnitConsole)" -hideskipped:All -excludebyattribute:*.RequiredByFeature*</OpenCoverOptions>
<OpenCoverTargetArgs>-targetargs:"$(TargetPath) --where=cat=GL||cat=GL_VERSION_1_0||cat=EGL||cat=WGL||cat=Math||cat=Framework||cat=Toolkit_CoreUI --noheader --noresult"</OpenCoverTargetArgs>
<OpenCoverResult>-output:$(ProjectDir)..\Cov$(OPENGL_NET_PLATFORM)$(ProjectName)_$(Platform)_$(Configuration).xml</OpenCoverResult>
</PropertyGroup>
<Target Name="Coverage">
<Exec Command="$(OpenCoverConsole) $(OpenCoverOptions) $(OpenCoverTargetArgs) $(OpenCoverResult)"/>
</Target>
<Target Name="CoverageNoInit">
<SetEnvVar Variable="OPENGL_NET_INIT" Value="NO" />
<SetEnvVar Variable="OPENGL_NET_EGL_STATIC_INIT" Value="NO" />
<Exec Command="$(OpenCoverConsole) $(OpenCoverOptions) $(OpenCoverTargetArgs) $(OpenCoverResult)"/>
</Target>
</Project>