forked from dotnet/diagnostics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugger.Tests.Config.txt
More file actions
207 lines (193 loc) · 11 KB
/
Debugger.Tests.Config.txt
File metadata and controls
207 lines (193 loc) · 11 KB
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!--
The xunit tests in Debugger.Tests aren't truly unit tests - they depend on other stuff that may
not be in the same directory. This file configures the tests to find what they need. At the moment
this file is generated in a hard coded way to support running from the bin directory on our git
based build, but once we understand the different environments the tests will need to run in we
can figure out the right build and deployment strategy for each. Hopefully this configuration offers
enough flexibility that the tests themselves don't need to change.
-->
<Configuration>
<RepoRootDir>..\..\..\..\..</RepoRootDir>
<DotNetRoot Condition="'$(TargetArchitecture)' != 'x86'">$(RepoRootDir)\.dotnet-test</DotNetRoot>
<DotNetRoot Condition="'$(TargetArchitecture)' == 'x86'">$(RepoRootDir)\.dotnet-test\x86</DotNetRoot>
<Import ConfigFile="Debugger.Tests.Common.txt" />
<Import ConfigFile="$(DotNetRoot)\Debugger.Tests.Versions.txt" />
<ScriptRootDir>$(RepoRootDir)\src\SOS\SOS.UnitTests\Scripts</ScriptRootDir>
<RootBinDir>$(RepoRootDir)\artifacts</RootBinDir>
<InstallDir>$(RootBinDir)\bin\Windows_NT.$(TargetArchitecture).$(TargetConfiguration)</InstallDir>
<LogDir>$(RootBinDir)\TestResults\$(TargetConfiguration)\sos.unittests_$(Timestamp)</LogDir>
<DumpDir>$(RootBinDir)\tmp\$(TargetConfiguration)\dumps</DumpDir>
<CDBHelperExtension>$(InstallDir)\runcommand.dll</CDBHelperExtension>
<TestWebApp3>true</TestWebApp3>
<TestWebApp3 Condition="'$(InternalReleaseTesting)' == 'true'">false</TestWebApp3>
<TestDesktop>true</TestDesktop>
<TestDesktop Condition="'$(PrivateBuildTesting)' == 'true'">false</TestDesktop>
<TestDesktop Condition="'$(InternalReleaseTesting)' == 'true'">false</TestDesktop>
<TestDesktop Condition="'$(TargetArchitecture)' == 'arm64'">false</TestDesktop>
<BuildProjectFrameworkLatest Condition="StartsWith('$(RuntimeVersionLatest)', '7')">net7.0</BuildProjectFrameworkLatest>
<BuildProjectFrameworkLatest Condition="StartsWith('$(RuntimeVersionLatest)', '6')">net6.0</BuildProjectFrameworkLatest>
<BuildProjectFrameworkLatest Condition="StartsWith('$(RuntimeVersionLatest)', '5')">net5.0</BuildProjectFrameworkLatest>
<DesktopFrameworkPath Condition="$(TargetArchitecture) == x64">$(WinDir)\Microsoft.Net\Framework64\v4.0.30319\</DesktopFrameworkPath>
<DesktopFrameworkPath Condition="$(TargetArchitecture) != x64">$(WinDir)\Microsoft.Net\Framework\v4.0.30319\</DesktopFrameworkPath>
<DesktopFramework>net462</DesktopFramework>
<DebuggeeSourceRoot>$(RepoRootDir)\src\SOS\SOS.UnitTests\Debuggees</DebuggeeSourceRoot>
<DebuggeeMsbuildAuxRoot>$(RepoRootDir)\eng\AuxMsbuildFiles</DebuggeeMsbuildAuxRoot>
<DebuggeeBuildProcess>sdk.prebuilt</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)</DebuggeeBuildRoot>
<CliPath>$(DotNetRoot)\dotnet.exe</CliPath>
<NuGetPackageFeeds>
dotnet7=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet7/nuget/v3/index.json;
dotnet6=https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet6/nuget/v3/index.json;
dotnet-core=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
dotnet-public=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json
</NuGetPackageFeeds>
<Options>
<!--
.NET Core Runtime
-->
<Option>
<TestProduct>ProjectK</TestProduct>
<Options>
<!--
Single file (debuggees cli built)
-->
<Option Condition="'$(RuntimeVersionLatest)' != ''">
<DebuggeeBuildProcess>cli</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees\SingleFile</DebuggeeBuildRoot>
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(SingleFileRuntimeLatestVersion)</RuntimeFrameworkVersion>
<PublishSingleFile>true</PublishSingleFile>
<!-- Add the symbol server so SOS can find DAC/DBI for single file apps which
may not have been built with the runtime pointed by RuntimeSymbolsPath
since we use the arcade provided SDK (in .dotnet) to build them. -->
<SetSymbolServer>-ms</SetSymbolServer>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
</Option>
<Option Condition="'$(RuntimeVersion60)' != ''">
<DebuggeeBuildProcess>cli</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees\SingleFile</DebuggeeBuildRoot>
<BuildProjectFramework>net6.0</BuildProjectFramework>
<RuntimeFrameworkVersion>$(SingleFileRuntime60Version)</RuntimeFrameworkVersion>
<PublishSingleFile>true</PublishSingleFile>
<SetSymbolServer>-ms</SetSymbolServer>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
</Option>
<!--
Default (prebuilt)
-->
<Option Condition="'$(RuntimeVersionLatest)' != ''">
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersionLatest)</RuntimeFrameworkVersion>
<SetHostRuntime>$(DotNetRoot)/shared/Microsoft.NETCore.App/$(RuntimeFrameworkVersion)</SetHostRuntime>
</Option>
<Option Condition="'$(RuntimeVersion60)' != ''">
<BuildProjectFramework>net6.0</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersion60)</RuntimeFrameworkVersion>
</Option>
<!--
SOS.StackAndOtherTests (cli because tested with full, embedded and portable PDBs)
-->
<Option>
<DebuggeeBuildProcess>cli</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees</DebuggeeBuildRoot>
<TestName>SOS.StackAndOtherTests</TestName>
<Options>
<Option Condition="'$(RuntimeVersionLatest)' != ''">
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees\SingleFile</DebuggeeBuildRoot>
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(SingleFileRuntimeLatestVersion)</RuntimeFrameworkVersion>
<PublishSingleFile>true</PublishSingleFile>
<SetSymbolServer>-ms</SetSymbolServer>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
</Option>
<Option Condition="'$(RuntimeVersion60)' != ''">
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees\SingleFile</DebuggeeBuildRoot>
<BuildProjectFramework>net6.0</BuildProjectFramework>
<RuntimeFrameworkVersion>$(SingleFileRuntime60Version)</RuntimeFrameworkVersion>
<PublishSingleFile>true</PublishSingleFile>
<SetSymbolServer>-ms</SetSymbolServer>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
</Option>
<Option Condition="'$(RuntimeVersionLatest)' != ''">
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersionLatest)</RuntimeFrameworkVersion>
</Option>
<Option Condition="'$(RuntimeVersion60)' != ''">
<BuildProjectFramework>net6.0</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersion60)</RuntimeFrameworkVersion>
</Option>
</Options>
</Option>
<!--
SOS.WebApp3 and SOS.DualRuntimes (runs on 3.1 and latest aspnetcore)
-->
<Option Condition="'$(TestWebApp3)' == 'true'">
<Options>
<Option>
<TestName>SOS.WebApp3</TestName>
</Option>
<Option>
<TestName>SOS.DualRuntimes</TestName>
<SetSymbolServer>-ms</SetSymbolServer>
<!-- The assembly path, class and function name of the desktop test code to load/run -->
<DesktopTestParameters>$(RootBinDir)\bin\SymbolTestDll\$(TargetConfiguration)\$(DesktopFramework)\SymbolTestDll.dll SymbolTestDll.TestClass ThrowException</DesktopTestParameters>
</Option>
</Options>
<Options>
<Option Condition="'$(AspNetCoreVersionLatest)' != ''">
<DebuggeeBuildProcess>cli</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees\SingleFile</DebuggeeBuildRoot>
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(SingleFileRuntimeLatestVersion)</RuntimeFrameworkVersion>
<PublishSingleFile>true</PublishSingleFile>
<SetSymbolServer>-ms</SetSymbolServer>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
</Option>
<Option Condition="'$(AspNetCoreVersionLatest)' != ''">
<BuildProjectFramework>$(BuildProjectFrameworkLatest)</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersionLatest)</RuntimeFrameworkVersion>
</Option>
<Option Condition="'$(AspNetCoreVersion60)' != ''">
<BuildProjectFramework>net6.0</BuildProjectFramework>
<RuntimeFrameworkVersion>$(RuntimeVersion60)</RuntimeFrameworkVersion>
<FrameworkVersion>$(AspNetCoreVersion60)</FrameworkVersion>
</Option>
</Options>
</Option>
</Options>
<FrameworkVersion Condition="'$(FrameworkVersion)' == ''">$(RuntimeFrameworkVersion)</FrameworkVersion>
<RuntimeSymbolsPath>$(DotNetRoot)\shared\Microsoft.NETCore.App\$(RuntimeFrameworkVersion)</RuntimeSymbolsPath>
<!-- Single-file debuggees don't need the host -->
<HostExe Condition="'$(PublishSingleFile)' != 'true'">$(DotNetRoot)\dotnet.exe</HostExe>
<HostArgs Condition="'$(PublishSingleFile)' != 'true'">--fx-version $(FrameworkVersion)</HostArgs>
</Option>
<!--
Desktop Runtime (debuggees cli built)
-->
<Option Condition="'$(TestDesktop)' == 'true'">
<Options>
<Option>
</Option>
<Option>
<TestName>SOS.StackAndOtherTests</TestName>
</Option>
<Option>
<TestName>DotnetDumpCommands</TestName>
</Option>
</Options>
<TestProduct>Desktop</TestProduct>
<DebuggeeBuildProcess>cli</DebuggeeBuildProcess>
<DebuggeeBuildRoot>$(RootBinDir)\Debuggees</DebuggeeBuildRoot>
<BuildProjectFramework>$(DesktopFramework)</BuildProjectFramework>
<BuildProjectRuntime>$(TargetRid)</BuildProjectRuntime>
<DebugType>full</DebugType>
<RuntimeSymbolsPath>$(DesktopFrameworkPath)</RuntimeSymbolsPath>
<SetHostRuntime>-netfx</SetHostRuntime>
</Option>
</Options>
<SOSPath>$(InstallDir)\sos.dll</SOSPath>
<DotNetDumpHost>$(DotNetRoot)\dotnet.exe</DotNetDumpHost>
<DotNetDumpPath>$(RootBinDir)\bin\dotnet-dump\$(TargetConfiguration)\net6.0\publish\dotnet-dump.dll</DotNetDumpPath>
<DebuggeeDumpOutputRootDir>$(DumpDir)\$(TestProduct)\$(RuntimeFrameworkVersion)\$(BuildProjectFramework)</DebuggeeDumpOutputRootDir>
<DebuggeeDumpInputRootDir>$(DebuggeeDumpOutputRootDir)</DebuggeeDumpInputRootDir>
</Configuration>