Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eng
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2021-10-13 23:01:51 +0300
committerGitHub <noreply@github.com>2021-10-13 23:01:51 +0300
commit51c16ae0281632d6e29b273bec9fdca43d61d952 (patch)
treee06549b72a8782eb5f55194f9dd30d10e5c70cca /eng
parent5b1ebf72747f530f59427783ce73501cd840a279 (diff)
Fix System.Numerics.Vectors tests on iOS and other FullAOT targets (#60335)
* Fix System.Numerics.Vectors tests on iOS and other FullAOT targets Instead of using dynamic we can use explicit type checks which don't require runtime code generation. Also fixed running just a subset of xunit tests on Apple targets in tests.mobile.targets. * Disable tests that fail on x86 due to a Mono runtime asserts See https://github.com/dotnet/runtime/issues/60347
Diffstat (limited to 'eng')
-rw-r--r--eng/testing/tests.mobile.targets6
1 files changed, 6 insertions, 0 deletions
diff --git a/eng/testing/tests.mobile.targets b/eng/testing/tests.mobile.targets
index 58dbfac94db..acce583b8a9 100644
--- a/eng/testing/tests.mobile.targets
+++ b/eng/testing/tests.mobile.targets
@@ -42,6 +42,12 @@
<AdditionalXHarnessArguments Condition="'$(XUnitClassName)' != ''">$(AdditionalXHarnessArguments) --arg=-c=$(XUnitClassName)</AdditionalXHarnessArguments>
</PropertyGroup>
+ <PropertyGroup Condition="'$(TargetOS)' == 'MacCatalyst' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'iOSSimulator' or '$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'tvOSSimulator'">
+ <!-- Pass the -m or -c flag along to the app bundle, note that due to the double hyphen this needs to be the last argument -->
+ <AdditionalXHarnessArguments Condition="'$(XUnitMethodName)' != ''">$(AdditionalXHarnessArguments) -- -m=$(XUnitMethodName)</AdditionalXHarnessArguments>
+ <AdditionalXHarnessArguments Condition="'$(XUnitClassName)' != ''">$(AdditionalXHarnessArguments) -- -c=$(XUnitClassName)</AdditionalXHarnessArguments>
+ </PropertyGroup>
+
<UsingTask Condition="'$(RunAOTCompilation)' == 'true'" TaskName="MonoAOTCompiler" AssemblyFile="$(MonoAOTCompilerTasksAssemblyPath)" />
<Import Condition="'$(RunAOTCompilation)' == 'true'" Project="$(MonoAOTCompilerDir)MonoAOTCompiler.props" />