mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-25 10:58:20 -10:00
Adds a small test to visit a list of sites using SocketsHttpHandler and allow easy debugging and comparison with platform handlers in case one needs to investigate. The tests are disabled by default and are controlled by Xunit traits. Commit migrated from https://github.com/dotnet/corefx/commit/8e18a0e0453654ed88c3729ffad580dff984601a
170 lines
9.5 KiB
XML
170 lines
9.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
|
<PropertyGroup>
|
|
<ProjectGuid>{C85CF035-7804-41FF-9557-48B7C948B58D}</ProjectGuid>
|
|
<DefineConstants Condition="'$(TargetGroup)'=='netcoreapp'">$(DefineConstants);netcoreapp</DefineConstants>
|
|
<DefineConstants Condition="'$(TargetsWindows)'=='true'">$(DefineConstants);TargetsWindows</DefineConstants>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Windows_NT-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Unix-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Unix-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netstandard-Windows_NT-Release|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Windows_NT-Debug|AnyCPU'" />
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Windows_NT-Release|AnyCPU'" />
|
|
<ItemGroup>
|
|
<Compile Include="$(CommonPath)\Interop\Unix\Interop.Libraries.cs" Condition="'$(TargetsUnix)' == 'true'">
|
|
<Link>Common\Interop\Unix\System.Net.Http.Native\Interop.VersionInfo.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonPath)\Interop\Unix\System.Net.Http.Native\Interop.VersionInfo.cs" Condition="'$(TargetsUnix)' == 'true'">
|
|
<Link>Common\Interop\Unix\System.Net.Http.Native\Interop.VersionInfo.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Buffers\NativeOwnedMemory.cs">
|
|
<Link>Common\System\Buffers\NativeOwnedMemory.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Diagnostics\Tracing\TestEventListener.cs">
|
|
<Link>Common\System\Diagnostics\Tracing\TestEventListener.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Diagnostics\Tracing\ConsoleEventListener.cs">
|
|
<Link>Common\System\Diagnostics\Tracing\ConsoleEventListener.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\IO\DelegateStream.cs">
|
|
<Link>Common\System\IO\DelegateStream.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\RemoteServerQuery.cs">
|
|
<Link>Common\System\Net\RemoteServerQuery.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Configuration.Certificates.cs">
|
|
<Link>Common\System\Net\Configuration.Certificates.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\EventSourceTestLogging.cs">
|
|
<Link>Common\System\Net\EventSourceTestLogging.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\HttpsTestServer.cs">
|
|
<Link>Common\System\Net\HttpsTestServer.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Capability.Security.cs">
|
|
<Link>Common\System\Net\Capability.Security.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Configuration.cs">
|
|
<Link>Common\System\Net\Configuration.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Configuration.Http.cs">
|
|
<Link>Common\System\Net\Configuration.Http.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Configuration.Security.cs">
|
|
<Link>Common\System\Net\Configuration.Security.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\TestWebProxies.cs">
|
|
<Link>Common\System\Net\TestWebProxies.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\VerboseTestLogging.cs">
|
|
<Link>Common\System\Net\VerboseTestLogging.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Http\LoopbackServer.cs">
|
|
<Link>Common\System\Net\Http\LoopbackServer.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Net\Http\LoopbackServer.AuthenticationHelpers.cs">
|
|
<Link>Common\System\Net\Http\LoopbackServer.AuthenticationHelpers.cs</Link>
|
|
</Compile>
|
|
<Compile Include="$(CommonTestPath)\System\Threading\Tasks\TaskTimeoutExtensions.cs">
|
|
<Link>Common\System\Threading\Tasks\TaskTimeoutExtensions.cs</Link>
|
|
</Compile>
|
|
<Compile Include="ByteArrayContentTest.cs" />
|
|
<Compile Include="ChannelBindingAwareContent.cs" />
|
|
<Compile Include="DribbleStream.cs" />
|
|
<Compile Include="CustomContent.cs" />
|
|
<Compile Include="DelegatingHandlerTest.cs" />
|
|
<Compile Include="FakeDiagnosticSourceListenerObserver.cs" />
|
|
<Compile Include="FormUrlEncodedContentTest.cs" />
|
|
<Compile Include="HttpClientHandlerTest.Authentication.cs" />
|
|
<Compile Include="HttpClientHandlerTest.cs" />
|
|
<Compile Include="HttpClientHandlerTest.Cancellation.cs" />
|
|
<Compile Include="HttpClientHandlerTest.ClientCertificates.cs" />
|
|
<Compile Include="HttpClientHandlerTest.DefaultProxyCredentials.cs" />
|
|
<Compile Include="HttpClientHandlerTest.ResponseDrain.cs" />
|
|
<Compile Include="HttpClientHandlerTest.MaxConnectionsPerServer.cs" />
|
|
<Compile Include="HttpClientHandlerTest.MaxResponseHeadersLength.cs" />
|
|
<Compile Include="HttpClientHandlerTest.ServerCertificates.cs" />
|
|
<Compile Include="HttpClientHandlerTest.ServerCertificates.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
|
|
<Compile Include="HttpClientHandlerTest.ServerCertificates.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
|
|
<Compile Include="HttpClientHandlerTest.SslProtocols.cs" />
|
|
<Compile Include="HttpClientHandlerTest.SslProtocols.Unix.cs" Condition="'$(TargetsUnix)' == 'true'" />
|
|
<Compile Include="HttpClientHandlerTest.SslProtocols.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
|
|
<Compile Include="DiagnosticsTests.cs" />
|
|
<Compile Include="HttpClientTestBase.cs" />
|
|
<Compile Include="HttpClientTest.cs" />
|
|
<Compile Include="HttpClientEKUTest.cs" />
|
|
<Compile Include="HttpClientMiniStressTest.cs" />
|
|
<Compile Include="HttpClient.SelectedSitesTest.cs" />
|
|
<Compile Include="HttpContentTest.cs" />
|
|
<Compile Include="HttpMessageInvokerTest.cs" />
|
|
<Compile Include="HttpMethodTest.cs" />
|
|
<Compile Include="HttpCookieProtocolTests.cs" />
|
|
<Compile Include="HttpRetryProtocolTests.cs" />
|
|
<Compile Include="IdnaProtocolTests.cs" />
|
|
<Compile Include="HttpProtocolTests.cs" />
|
|
<Compile Include="HttpRequestMessageTest.cs" />
|
|
<Compile Include="HttpResponseMessageTest.cs" />
|
|
<Compile Include="LoopbackGetRequestHttpProxy.cs" />
|
|
<Compile Include="MessageProcessingHandlerTest.cs" />
|
|
<Compile Include="MultipartContentTest.cs" />
|
|
<Compile Include="MultipartFormDataContentTest.cs" />
|
|
<Compile Include="PlatformHandlerTest.cs" />
|
|
<Compile Include="PostScenarioTest.cs" />
|
|
<Compile Include="RepeatedFlushContent.cs" />
|
|
<Compile Include="ResponseStreamTest.cs" />
|
|
<Compile Include="SchSendAuxRecordHttpTest.cs" />
|
|
<Compile Include="StreamContentTest.cs" />
|
|
<Compile Include="StringContentTest.cs" />
|
|
<Compile Include="SyncBlockingContent.cs" />
|
|
<Compile Include="TestHelper.cs" />
|
|
<Compile Include="DefaultCredentialsTest.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp'">
|
|
<Compile Include="HttpClientHandlerTest.AcceptAllCerts.cs" />
|
|
<Compile Include="HttpClientHandlerTest.Decompression.cs" />
|
|
<Compile Include="HttpClientTest.netcoreapp.cs" />
|
|
<Compile Include="HttpMethodTest.netcoreapp.cs" />
|
|
<Compile Include="ReadOnlyMemoryContentTest.cs" />
|
|
<Compile Include="SocketsHttpHandlerTest.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetGroup)' == 'netstandard'">
|
|
<Compile Include="$(CommonTestPath)\System\IO\StreamSpanExtensions.netstandard.cs">
|
|
<Link>Common\System\IO\StreamSpanExtensions.netstandard.cs</Link>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetGroup)' == 'uap'">
|
|
<Reference Include="Windows" />
|
|
<Compile Include="MultiInterfaceNonRewindableReadOnlyStream.cs" />
|
|
<Compile Include="MultiInterfaceReadOnlyStream.cs" />
|
|
<Compile Include="MultiInterfaceStreamContent.cs" />
|
|
<Compile Include="PostScenarioUWPTest.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="$(CommonTestPath)\System\Diagnostics\RemoteExecutorConsoleApp\RemoteExecutorConsoleApp.csproj">
|
|
<Project>{69e46a6f-9966-45a5-8945-2559fe337827}</Project>
|
|
<Name>RemoteExecutorConsoleApp</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<SupplementalTestData Include="$(PackagesDir)system.net.testdata\1.0.0-prerelease\content\**\*.*" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetsOSX)'=='true'">
|
|
<TestCommandLines Include="ulimit -Sn 4096" />
|
|
</ItemGroup>
|
|
<ItemGroup >
|
|
<EmbeddedResource Include="SelectedSitesTest.txt">
|
|
<Link>SelectedSitesTest.txt</Link>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
|
</ItemGroup>
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
|
</Project> |