From c6b5994fbc251ef99c90ed05ce8b10059778e7cd Mon Sep 17 00:00:00 2001 From: Mitchell Hwang Date: Fri, 28 May 2021 20:07:13 -0400 Subject: [PATCH] [libraries] Move library tests Feature Switches defaults to Functional tests (#53253) * [libraries] Remove UseSystemResourceKeys true default * [libraries] Remove UseSystemResourceKeys for iOS * [libraries] Resolve WebSockets System resource keys activeissue * [tests] Move default feature switches from libraries to functional tests * [tests] Move Browser wasm default switches into FuntionalTests scope * Add Browser OS condition * Move DefaultFeatureSwitches initialization to FunctionalTests project * Consolidate trimming framework library features and condition for libraries with EnableAggressiveTrimming * [testing][EAT] Revert trimming framework library features to browser defaults for enable aggressive trimming * [tests] Add Xamarin Android, Xamarin Mac/iOS, and Wasm feature defaults to Functional tests * Fixup tabs to spaces * Add common feature switches, links, and cleanup * Cleanup Xamarin Android link Co-authored-by: Mitchell Hwang --- .../linker/SupportFiles/Directory.Build.props | 3 -- eng/testing/tests.mobile.targets | 31 ++++------------ eng/testing/tests.wasm.targets | 10 ------ .../tests/WebSocketDeflateTests.cs | 3 -- .../FunctionalTests/Directory.Build.props | 35 +++++++++++++++++++ 5 files changed, 42 insertions(+), 40 deletions(-) diff --git a/eng/testing/linker/SupportFiles/Directory.Build.props b/eng/testing/linker/SupportFiles/Directory.Build.props index 46e0d3bcc0aad..c1220c719b9af 100644 --- a/eng/testing/linker/SupportFiles/Directory.Build.props +++ b/eng/testing/linker/SupportFiles/Directory.Build.props @@ -1,9 +1,6 @@ true - false - false - false true true true diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets index 3e5321d57ebdb..61d7421402d89 100644 --- a/eng/testing/tests.mobile.targets +++ b/eng/testing/tests.mobile.targets @@ -6,37 +6,20 @@ true true - true - true - true BundleTestAppleApp;BundleTestAndroidApp - - false - false - false - false - true - false - false - true - - - - false - false - false - false - false - true - true - - true true + + + false + false + false + false + false diff --git a/eng/testing/tests.wasm.targets b/eng/testing/tests.wasm.targets index 5d6c2e626eab7..ce10194388d55 100644 --- a/eng/testing/tests.wasm.targets +++ b/eng/testing/tests.wasm.targets @@ -47,16 +47,6 @@ $(_AOTBuildCommand) && $(RunScriptCommand) - - false - false - false - false - - - false - - diff --git a/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs b/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs index 9a068e3de46a4..184c7e9089e2a 100644 --- a/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs +++ b/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs @@ -349,7 +349,6 @@ public async Task LargeMessageSplitInMultipleFrames(int windowBits) } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52645", TestPlatforms.Android)] public async Task WebSocketWithoutDeflateShouldThrowOnCompressedMessage() { WebSocketTestStream stream = new(); @@ -364,7 +363,6 @@ public async Task WebSocketWithoutDeflateShouldThrowOnCompressedMessage() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52645", TestPlatforms.Android)] public async Task ReceiveUncompressedMessageWhenCompressionEnabled() { // We should be able to handle the situation where even if we have @@ -401,7 +399,6 @@ public async Task ReceiveUncompressedMessageWhenCompressionEnabled() } [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/52645", TestPlatforms.Android)] public async Task ReceiveInvalidCompressedData() { WebSocketTestStream stream = new(); diff --git a/src/tests/FunctionalTests/Directory.Build.props b/src/tests/FunctionalTests/Directory.Build.props index b55014abfd0ce..5dea1a35e0ccc 100644 --- a/src/tests/FunctionalTests/Directory.Build.props +++ b/src/tests/FunctionalTests/Directory.Build.props @@ -7,5 +7,40 @@ true + + + false + false + false + true + + + + + false + false + + false + true + + + + + false + false + + + + + false + true + false + false + false + true + false + true + +