Skip to content

Commit

Permalink
All mobile platforms go down the RunTests.sh path, not just browser. (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Sep 10, 2024
1 parent 9e4878a commit 7fbba5c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions src/tests/Common/helixpublishwitharcade.proj
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@
<_MergedWrapperMarker Include="$(TestBinDir)**\*.MergedTestAssembly" Exclude="$(TestBinDir)**\supportFiles\*.MergedTestAssembly" />

<_MergedWrapperMarker Update="@(_MergedWrapperMarker)">
<TestExecutionScriptPath Condition="'$(TargetsBrowser)' != 'true'">$([System.IO.Path]::ChangeExtension('%(Identity)', '.$(TestScriptExtension)'))</TestExecutionScriptPath>
<TestExecutionScriptPath Condition="'$(TargetsBrowser)' == 'true'">%(RootDir)%(Directory)AppBundle/RunTests.$(TestScriptExtension)</TestExecutionScriptPath>
<TestExecutionScriptPath Condition="'$(TargetsMobile)' != 'true'">$([System.IO.Path]::ChangeExtension('%(Identity)', '.$(TestScriptExtension)'))</TestExecutionScriptPath>
<TestExecutionScriptPath Condition="'$(TargetsMobile)' == 'true'">%(RootDir)%(Directory)AppBundle/RunTests.$(TestScriptExtension)</TestExecutionScriptPath>
</_MergedWrapperMarker>

<!-- Exclude merged test wrappers without the test execution script for this target (skipped due to CLRTestTargetUnsupported et al) -->
Expand Down Expand Up @@ -473,11 +473,15 @@
<PropertyGroup>
<_MergedWrapperDirectory>%(_MergedWrapperMarker.RootDir)%(Directory)</_MergedWrapperDirectory>
<_MergedWrapperName>%(_MergedWrapperMarker.FileName)</_MergedWrapperName>
<!-- Android package names can't have hyphens, so we replace them with underscores -->
<_MergedApkName>$(_MergedWrapperName.Replace('-', '_'))</_MergedApkName>
</PropertyGroup>

<ItemGroup>
<_MergedPayloadGroups Include="$(_MergedWrapperName)" />
<_MergedPayloadFiles Include="@(_MergedPayloadGroups->'$(_MergedWrapperDirectory)AppBundle/bin/%(Identity).apk')" />
<_MergedPayloadGroups Include="$(_MergedWrapperName)">
<ApkPackageName>$(_MergedApkName)</ApkPackageName>
</_MergedPayloadGroups>
<_MergedPayloadFiles Include="@(_MergedPayloadGroups->'$(_MergedWrapperDirectory)AppBundle/bin/%(ApkPackageName).apk')" />
</ItemGroup>

<Copy SourceFiles="@(_MergedPayloadFiles)" DestinationFiles="@(_MergedPayloadFiles->'$(MergedPayloadsRootDirectory)\$(_MergedWrapperName)\%(FileName)%(Extension)')" />
Expand Down Expand Up @@ -801,7 +805,11 @@
<ItemGroup Condition="'$(TargetHasHelixXHarnessSdkSupport)' == 'true'">
<MergedPayloads Update="@(MergedPayloads)">
<PayloadGroup>%(FileName)%(Extension)</PayloadGroup>
<ApkPath>$(MergedPayloadsRootDirectory)%(FileName)%(Extension)/%(FileName)%(Extension).apk</ApkPath>
<!-- Android package names can't have dashes, so we replace them with underscores. -->
<ApkFileName>$([System.String]::new('%(FileName)%(Extension)').Replace('-', '_'))</ApkFileName>
</MergedPayloads>
<MergedPayloads Update="@(MergedPayloads)">
<ApkPath>$(MergedPayloadsRootDirectory)%(FileName)%(Extension)/%(ApkFileName).apk</ApkPath>
<AppBundlePath>$(MergedPayloadsRootDirectory)%(FileName)%(Extension)/%(FileName)%(Extension).app</AppBundlePath>
</MergedPayloads>
</ItemGroup>
Expand Down Expand Up @@ -890,7 +898,7 @@

<XHarnessApkToTest Include="@(MergedPayloads->Metadata('PayloadGroup'))" Condition="'$(TargetsAndroid)' == 'true'">
<Arguments>--arg=env:TestExclusionListPath=TestExclusionList.txt</Arguments>
<AndroidPackageName>net.dot.%(PayloadGroup)</AndroidPackageName>
<AndroidPackageName>net.dot.%(ApkFileName)</AndroidPackageName>
<AndroidInstrumentationName>net.dot.MonoRunner</AndroidInstrumentationName>
<TestTimeout Condition=" '$(TimeoutPerTestCollectionInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestCollectionInMinutes)))</TestTimeout>
</XHarnessApkToTest>
Expand Down
4 changes: 2 additions & 2 deletions src/tests/Interop/PInvoke/Vector2_3_4/Vector2_3_4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void RunVector2Tests()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/93669", TestPlatforms.Browser)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/91388", typeof(TestLibrary.PlatformDetection), nameof(TestLibrary.PlatformDetection.PlatformDoesNotSupportNativeTestAssets))]
public static void RunVector3Tests()
{
Console.WriteLine($"Running {nameof(RunVector3Tests)}... ");
Expand Down Expand Up @@ -100,7 +100,7 @@ public static void RunVector3Tests()
}

[Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/93669", TestPlatforms.Browser)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/91388", typeof(TestLibrary.PlatformDetection), nameof(TestLibrary.PlatformDetection.PlatformDoesNotSupportNativeTestAssets))]
public static void RunVector4Tests()
{
Console.WriteLine($"Running {nameof(RunVector4Tests)}... ");
Expand Down

0 comments on commit 7fbba5c

Please sign in to comment.