dotnet-installer/test/EndToEnd/ValidateInsertedManifests.cs

48 lines
1.8 KiB
C#
Raw Normal View History

[main] Update dependencies from dotnet/sdk (#10226) [main] Update dependencies from dotnet/sdk - Coherency Updates: - Microsoft.WindowsDesktop.App.Ref: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.NetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Ref: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Host.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.DotNetHostResolver: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.Platforms: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref.Internal: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-dev-certs: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-user-secrets: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Common.ItemTemplates: from 6.0.100-preview.4.21213.1 to 6.0.100-preview.4.21216.1 (parent: Microsoft.NET.Sdk) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.Dotnet.WinForms.ProjectTemplates: from 6.0.0-preview.4.21213.10 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Wpf.ProjectTemplates: from 6.0.0-preview.4.21213.18 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.FSharp.Compiler: from 11.4.2-beta.21212.7 to 11.4.2-beta.21214.1 (parent: Microsoft.NET.Sdk) - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21212.5 to 6.0.100-preview.2.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.Net.Compilers.Toolset: from 3.10.0-3.21213.18 to 3.10.0-3.21215.28 (parent: Microsoft.NET.Sdk) - validate inserted manifest - Merge branch 'darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97' of https://github.com/dotnet/core-sdk into darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97
2021-04-16 16:17:09 +00:00
using System;
using System.IO;
using System.Linq;
using FluentAssertions;
using Microsoft.DotNet.Tools.Test.Utilities;
using Microsoft.NET.Sdk.WorkloadManifestReader;
using Xunit;
using Xunit.Abstractions;
namespace EndToEnd.Tests
{
public class ValidateInsertedManifests : TestBase
{
private readonly ITestOutputHelper output;
public ValidateInsertedManifests(ITestOutputHelper output)
{
this.output = output;
}
[Fact]
public void ManifestReaderCanReadManifests()
{
var sdkManifestDir = Path.Combine(Path.GetDirectoryName(RepoDirectoriesProvider.DotnetUnderTest), "sdk-manifests");
var sdkversionDir = new DirectoryInfo(sdkManifestDir).EnumerateDirectories().First();
2023-07-31 16:35:27 +00:00
foreach (var manifestVersionDir in sdkversionDir.EnumerateDirectories())
[main] Update dependencies from dotnet/sdk (#10226) [main] Update dependencies from dotnet/sdk - Coherency Updates: - Microsoft.WindowsDesktop.App.Ref: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.NetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Ref: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Host.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.DotNetHostResolver: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.Platforms: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref.Internal: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-dev-certs: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-user-secrets: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Common.ItemTemplates: from 6.0.100-preview.4.21213.1 to 6.0.100-preview.4.21216.1 (parent: Microsoft.NET.Sdk) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.Dotnet.WinForms.ProjectTemplates: from 6.0.0-preview.4.21213.10 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Wpf.ProjectTemplates: from 6.0.0-preview.4.21213.18 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.FSharp.Compiler: from 11.4.2-beta.21212.7 to 11.4.2-beta.21214.1 (parent: Microsoft.NET.Sdk) - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21212.5 to 6.0.100-preview.2.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.Net.Compilers.Toolset: from 3.10.0-3.21213.18 to 3.10.0-3.21215.28 (parent: Microsoft.NET.Sdk) - validate inserted manifest - Merge branch 'darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97' of https://github.com/dotnet/core-sdk into darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97
2021-04-16 16:17:09 +00:00
{
2023-07-31 16:35:27 +00:00
foreach (var manifestDir in manifestVersionDir.EnumerateDirectories())
{
var manifestId = manifestDir.Name;
[main] Update dependencies from dotnet/sdk (#10226) [main] Update dependencies from dotnet/sdk - Coherency Updates: - Microsoft.WindowsDesktop.App.Ref: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.NetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Ref: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Host.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.DotNetHostResolver: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.Platforms: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref.Internal: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-dev-certs: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-user-secrets: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Common.ItemTemplates: from 6.0.100-preview.4.21213.1 to 6.0.100-preview.4.21216.1 (parent: Microsoft.NET.Sdk) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.Dotnet.WinForms.ProjectTemplates: from 6.0.0-preview.4.21213.10 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Wpf.ProjectTemplates: from 6.0.0-preview.4.21213.18 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.FSharp.Compiler: from 11.4.2-beta.21212.7 to 11.4.2-beta.21214.1 (parent: Microsoft.NET.Sdk) - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21212.5 to 6.0.100-preview.2.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.Net.Compilers.Toolset: from 3.10.0-3.21213.18 to 3.10.0-3.21215.28 (parent: Microsoft.NET.Sdk) - validate inserted manifest - Merge branch 'darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97' of https://github.com/dotnet/core-sdk into darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97
2021-04-16 16:17:09 +00:00
2023-07-31 16:35:27 +00:00
string manifestFile = manifestDir.GetFile("WorkloadManifest.json").FullName;
[main] Update dependencies from dotnet/sdk (#10226) [main] Update dependencies from dotnet/sdk - Coherency Updates: - Microsoft.WindowsDesktop.App.Ref: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.NetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Ref: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Host.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.DotNetHostResolver: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.Platforms: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref.Internal: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-dev-certs: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-user-secrets: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Common.ItemTemplates: from 6.0.100-preview.4.21213.1 to 6.0.100-preview.4.21216.1 (parent: Microsoft.NET.Sdk) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.Dotnet.WinForms.ProjectTemplates: from 6.0.0-preview.4.21213.10 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Wpf.ProjectTemplates: from 6.0.0-preview.4.21213.18 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.FSharp.Compiler: from 11.4.2-beta.21212.7 to 11.4.2-beta.21214.1 (parent: Microsoft.NET.Sdk) - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21212.5 to 6.0.100-preview.2.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.Net.Compilers.Toolset: from 3.10.0-3.21213.18 to 3.10.0-3.21215.28 (parent: Microsoft.NET.Sdk) - validate inserted manifest - Merge branch 'darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97' of https://github.com/dotnet/core-sdk into darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97
2021-04-16 16:17:09 +00:00
2023-08-10 16:19:55 +00:00
var baselineFile = manifestDir.GetFile("Baseline.WorkloadSet.json").FullName;
if (!(new FileInfo(baselineFile).Exists))
{
new FileInfo(manifestFile).Exists.Should().BeTrue();
2023-08-10 16:35:04 +00:00
using var fileStream = new FileStream(manifestFile, FileMode.Open, FileAccess.Read);
Action readManifest = () => WorkloadManifestReader.ReadWorkloadManifest(manifestId, fileStream, manifestFile);
readManifest.ShouldNotThrow("manifestId:" + manifestId + " manifestFile:" + manifestFile + "is invalid");
2023-08-10 16:19:55 +00:00
}
2023-07-31 16:35:27 +00:00
}
[main] Update dependencies from dotnet/sdk (#10226) [main] Update dependencies from dotnet/sdk - Coherency Updates: - Microsoft.WindowsDesktop.App.Ref: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.NetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Ref: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.App.Host.win-x64: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.DotNetHostResolver: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.NETCore.Platforms: from 6.0.0-preview.4.21213.3 to 6.0.0-preview.4.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Ref.Internal: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.AspNetCore.App.Runtime.win-x64: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - VS.Redist.Common.AspNetCore.SharedFramework.x64.6.0: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-dev-certs: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - dotnet-user-secrets: from 6.0.0-preview.4.21213.1 to 6.0.0-preview.4.21215.16 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Common.ItemTemplates: from 6.0.100-preview.4.21213.1 to 6.0.100-preview.4.21216.1 (parent: Microsoft.NET.Sdk) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.Dotnet.WinForms.ProjectTemplates: from 6.0.0-preview.4.21213.10 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.WindowsDesktop.App.Runtime.win-x64: from 6.0.0-preview.4.21213.9 to 6.0.0-preview.4.21215.3 (parent: Microsoft.NET.Sdk) - Microsoft.DotNet.Wpf.ProjectTemplates: from 6.0.0-preview.4.21213.18 to 6.0.0-preview.4.21215.2 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64) - Microsoft.FSharp.Compiler: from 11.4.2-beta.21212.7 to 11.4.2-beta.21214.1 (parent: Microsoft.NET.Sdk) - Microsoft.NET.ILLink.Tasks: from 6.0.100-preview.2.21212.5 to 6.0.100-preview.2.21215.2 (parent: Microsoft.NET.Sdk) - Microsoft.Net.Compilers.Toolset: from 3.10.0-3.21213.18 to 3.10.0-3.21215.28 (parent: Microsoft.NET.Sdk) - validate inserted manifest - Merge branch 'darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97' of https://github.com/dotnet/core-sdk into darc-main-64df7133-1e9b-45ab-b603-1cefc648ba97
2021-04-16 16:17:09 +00:00
}
}
}
}