Skip to content

Commit 5b432db

Browse files
committed
Adding Test remote execution support
1 parent 04f35db commit 5b432db

5 files changed

+29
-0
lines changed

eng/Dependencies.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ and are generated based on the last package release.
141141
<LatestPackageReference Include="Microsoft.Internal.Runtime.AspNetCore.Transport" />
142142
<LatestPackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
143143
<LatestPackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" />
144+
<LatestPackageReference Include="Microsoft.DotNet.RemoteExecutor" />
144145
<LatestPackageReference Include="Microsoft.EntityFrameworkCore.Design" />
145146
<LatestPackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
146147
<LatestPackageReference Include="Microsoft.EntityFrameworkCore.Relational" />

eng/Version.Details.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,5 +319,9 @@
319319
<Uri>https://github.com/dotnet/arcade</Uri>
320320
<Sha>1b04d6de502c4108ada6ea8e5ccefdc2ddc3ee7b</Sha>
321321
</Dependency>
322+
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="8.0.0-beta.23063.7">
323+
<Uri>https://github.com/dotnet/arcade</Uri>
324+
<Sha>000000</Sha>
325+
</Dependency>
322326
</ToolsetDependencies>
323327
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
<!-- Packages from dotnet/arcade -->
138138
<MicrosoftDotNetBuildTasksInstallersVersion>8.0.0-beta.23063.7</MicrosoftDotNetBuildTasksInstallersVersion>
139139
<MicrosoftDotNetBuildTasksTemplatingVersion>8.0.0-beta.23063.7</MicrosoftDotNetBuildTasksTemplatingVersion>
140+
<MicrosoftDotNetRemoteExecutorVersion>8.0.0-beta.23063.7</MicrosoftDotNetRemoteExecutorVersion>
140141
<!-- Packages from dotnet/source-build-externals -->
141142
<MicrosoftSourceBuildIntermediatesourcebuildexternalsVersion>8.0.0-alpha.1.23062.2</MicrosoftSourceBuildIntermediatesourcebuildexternalsVersion>
142143
<!-- Packages from dotnet/xdt -->

src/Testing/src/Microsoft.AspNetCore.Testing.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
-->
4141
<Reference Include="xunit.assert" />
4242
<Reference Include="xunit.extensibility.execution" />
43+
<Reference Include="Microsoft.DotNet.RemoteExecutor" />
4344
</ItemGroup>
4445

4546
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
using System;
5+
using System.Runtime.InteropServices;
6+
#if !NETSTANDARD2_0
7+
using Microsoft.DotNet.RemoteExecutor;
8+
#endif
9+
10+
namespace Microsoft.AspNetCore.Testing;
11+
12+
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = true)]
13+
public class RemoteExecutionSupportedAttribute : Attribute, ITestCondition
14+
{
15+
#if NETSTANDARD2_0
16+
public bool IsMet => false;
17+
#else
18+
public bool IsMet => RemoteExecutor.IsSupported;
19+
#endif
20+
21+
public string SkipReason { get; set; }
22+
}

0 commit comments

Comments
 (0)