Re-enable SB tests (#17672)
This commit is contained in:
parent
b1e9f3e7a4
commit
7ac1022e78
14 changed files with 33 additions and 44 deletions
|
@ -199,6 +199,7 @@
|
|||
|
||||
<!-- Multiple loggers are specified so that results are captured in trx and pipelines can fail with AzDO pipeline warnings -->
|
||||
<Exec Command="$(DotnetToolCommand) test $(SmokeTestsDir) --logger:trx --logger:'console;verbosity=$(SmokeTestConsoleVerbosity)' -c $(Configuration)"
|
||||
IgnoreStandardErrorWarningFormat="true"
|
||||
EnvironmentVariables="
|
||||
SMOKE_TESTS_SDK_TARBALL_PATH=$(SdkTarballPath);
|
||||
SMOKE_TESTS_SOURCEBUILT_ARTIFACTS_PATH=$(SourceBuiltArtifactsPath);
|
||||
|
|
|
@ -40,9 +40,7 @@ public class ArtifactsSizeTest : SdkTests
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[SkippableFact(Config.IncludeArtifactsSizeEnv, skipOnFalseEnv: true)]
|
||||
[SkippableFact(Config.IncludeArtifactsSizeEnv, skipOnFalseEnv: true)]
|
||||
public void CompareArtifactsToBaseline()
|
||||
{
|
||||
Utilities.ValidateNotNullOrWhiteSpace(Config.SourceBuiltArtifactsPath, Config.SourceBuiltArtifactsPathEnv);
|
||||
|
|
|
@ -19,9 +19,8 @@ public class BasicScenarioTests : SdkTests
|
|||
{
|
||||
public BasicScenarioTests(ITestOutputHelper outputHelper) : base(outputHelper) { }
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [Theory]
|
||||
// [MemberData(nameof(GetScenarioObjects))]
|
||||
[Theory]
|
||||
[MemberData(nameof(GetScenarioObjects))]
|
||||
public void VerifyScenario(TestScenario scenario) => scenario.Execute(DotNetHelper);
|
||||
|
||||
public static IEnumerable<object[]> GetScenarioObjects() => GetScenarios().Select(scenario => new object[] { scenario });
|
||||
|
@ -37,9 +36,10 @@ public class BasicScenarioTests : SdkTests
|
|||
// R2R is not supported on Mono (see https://github.com/dotnet/runtime/issues/88419#issuecomment-1623762676)
|
||||
DotNetActions.Build | DotNetActions.Run | (DotNetHelper.ShouldPublishComplex() ? DotNetActions.None : DotNetActions.PublishComplex) | (helper.IsMonoRuntime ? DotNetActions.None : DotNetActions.PublishR2R));
|
||||
yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.ClassLib, DotNetActions.Build | DotNetActions.Publish);
|
||||
yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.XUnit, DotNetActions.Test);
|
||||
yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.NUnit, DotNetActions.Test);
|
||||
yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.MSTest, DotNetActions.Test);
|
||||
// TODO: Uncomment when test templates are updated to net9.0: https://github.com/dotnet/source-build/issues/3668
|
||||
// yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.XUnit, DotNetActions.Test);
|
||||
// yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.NUnit, DotNetActions.Test);
|
||||
// yield return new(nameof(BasicScenarioTests), language, DotNetTemplate.MSTest, DotNetActions.Test);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,8 +21,7 @@ public class DebugTests : SdkTests
|
|||
/// <Summary>
|
||||
/// Verifies that all generated native files include native debug symbols.
|
||||
/// </Summary>
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[Fact]
|
||||
[Fact]
|
||||
public void SourceBuiltSdkContainsNativeDebugSymbols()
|
||||
{
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@ public class DotNetFormatTests : SdkTests
|
|||
/// <Summary>
|
||||
/// Format an unformatted project and verify that the output matches the pre-computed solution.
|
||||
/// </Summary>
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [Fact]
|
||||
[Fact]
|
||||
public void FormatProject()
|
||||
{
|
||||
string unformattedCsFilePath = Path.Combine(BaselineHelper.GetAssetsDirectory(), UnformattedFileName);
|
||||
|
|
|
@ -13,8 +13,7 @@ public class DotNetWatchTests : SdkTests
|
|||
{
|
||||
public DotNetWatchTests(ITestOutputHelper outputHelper) : base(outputHelper) { }
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[Fact]
|
||||
[Fact]
|
||||
public void WatchTests()
|
||||
{
|
||||
string projectDirectory = DotNetHelper.ExecuteNew(DotNetTemplate.Console.GetName(), nameof(DotNetWatchTests));
|
||||
|
|
|
@ -137,8 +137,7 @@ public class LicenseScanTests : TestBase
|
|||
_targetRepo = new DirectoryInfo(Config.LicenseScanPath).Name;
|
||||
}
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[SkippableFact(Config.LicenseScanPathEnv, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
[SkippableFact(Config.LicenseScanPathEnv, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
public void ScanForLicenses()
|
||||
{
|
||||
Assert.NotNull(Config.LicenseScanPath);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
|
|
|
@ -25,19 +25,18 @@ public class OmniSharpTests : SdkTests
|
|||
|
||||
public OmniSharpTests(ITestOutputHelper outputHelper) : base(outputHelper) { }
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [SkippableTheory(Config.ExcludeOmniSharpEnv, skipOnTrueEnv: true, skipArchitectures: new[] { "ppc64le", "s390x" })]
|
||||
// [InlineData(DotNetTemplate.BlazorWasm)]
|
||||
// [InlineData(DotNetTemplate.ClassLib)]
|
||||
// [InlineData(DotNetTemplate.Console)]
|
||||
// [InlineData(DotNetTemplate.MSTest)]
|
||||
// [InlineData(DotNetTemplate.Mvc)]
|
||||
// [InlineData(DotNetTemplate.NUnit)]
|
||||
// [InlineData(DotNetTemplate.Web)]
|
||||
// [InlineData(DotNetTemplate.WebApp)]
|
||||
// [InlineData(DotNetTemplate.WebApi)]
|
||||
// [InlineData(DotNetTemplate.Worker)]
|
||||
// [InlineData(DotNetTemplate.XUnit)]
|
||||
[SkippableTheory(Config.ExcludeOmniSharpEnv, skipOnTrueEnv: true, skipArchitectures: new[] { "ppc64le", "s390x" })]
|
||||
[InlineData(DotNetTemplate.BlazorWasm)]
|
||||
[InlineData(DotNetTemplate.ClassLib)]
|
||||
[InlineData(DotNetTemplate.Console)]
|
||||
[InlineData(DotNetTemplate.MSTest)]
|
||||
[InlineData(DotNetTemplate.Mvc)]
|
||||
[InlineData(DotNetTemplate.NUnit)]
|
||||
[InlineData(DotNetTemplate.Web)]
|
||||
[InlineData(DotNetTemplate.WebApp)]
|
||||
[InlineData(DotNetTemplate.WebApi)]
|
||||
[InlineData(DotNetTemplate.Worker)]
|
||||
[InlineData(DotNetTemplate.XUnit)]
|
||||
public async void VerifyScenario(DotNetTemplate template)
|
||||
{
|
||||
await InitializeOmniSharp();
|
||||
|
|
|
@ -13,8 +13,7 @@ namespace Microsoft.DotNet.SourceBuild.SmokeTests
|
|||
{
|
||||
public PoisonTests(ITestOutputHelper outputHelper) : base(outputHelper) { }
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [SkippableFact(Config.PoisonReportPathEnv, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
[SkippableFact(Config.PoisonReportPathEnv, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
public void VerifyUsage()
|
||||
{
|
||||
if (!File.Exists(Config.PoisonReportPath))
|
||||
|
|
|
@ -31,8 +31,7 @@ public class SdkContentTests : SdkTests
|
|||
/// This makes the baseline durable between releases. This does mean however, entries
|
||||
/// in the baseline may appear identical if the diff is version specific.
|
||||
/// </Summary>
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[SkippableFact(new[] { Config.MsftSdkTarballPathEnv, Config.SdkTarballPathEnv }, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
[SkippableFact(new[] { Config.MsftSdkTarballPathEnv, Config.SdkTarballPathEnv }, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
public void CompareMsftToSbFileList()
|
||||
{
|
||||
const string msftFileListingFileName = "msftSdkFiles.txt";
|
||||
|
@ -45,8 +44,7 @@ public class SdkContentTests : SdkTests
|
|||
BaselineHelper.CompareBaselineContents("MsftToSbSdkFiles.diff", diff, OutputHelper, Config.WarnOnSdkContentDiffs);
|
||||
}
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
//[SkippableFact(new[] { Config.MsftSdkTarballPathEnv, Config.SdkTarballPathEnv }, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
[SkippableFact(new[] { Config.MsftSdkTarballPathEnv, Config.SdkTarballPathEnv }, skipOnNullOrWhiteSpaceEnv: true)]
|
||||
public void CompareMsftToSbAssemblyVersions()
|
||||
{
|
||||
Assert.NotNull(Config.MsftSdkTarballPath);
|
||||
|
|
|
@ -32,8 +32,7 @@ public class SourcelinkTests : SdkTests
|
|||
/// <summary>
|
||||
/// Verifies that all symbols have valid sourcelinks.
|
||||
/// </summary>
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [Fact]
|
||||
[Fact]
|
||||
public void VerifySourcelinks()
|
||||
{
|
||||
try
|
||||
|
|
|
@ -20,9 +20,8 @@ public class WebScenarioTests : SdkTests
|
|||
{
|
||||
public WebScenarioTests(ITestOutputHelper outputHelper) : base(outputHelper) { }
|
||||
|
||||
// https://github.com/dotnet/source-build/issues/3668
|
||||
// [Theory]
|
||||
// [MemberData(nameof(GetScenarioObjects))]
|
||||
[Theory]
|
||||
[MemberData(nameof(GetScenarioObjects))]
|
||||
public void VerifyScenario(TestScenario scenario) => scenario.Execute(DotNetHelper);
|
||||
|
||||
public static IEnumerable<object[]> GetScenarioObjects() => GetScenarios().Select(scenario => new object[] { scenario });
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<packageSources>
|
||||
<clear />
|
||||
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
|
||||
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
|
||||
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />
|
||||
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
|
||||
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
|
|
Loading…
Reference in a new issue