mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add support for bootstrapping arm64; Allow other dotnet sku's eg. AspNetCore
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
namespace Squirrel.Tests
|
||||
@@ -12,17 +8,21 @@ namespace Squirrel.Tests
|
||||
// we are upgrading net6 to a minimum version of 6.0.2 to work
|
||||
// around a dotnet SDK bug right now.
|
||||
[Theory]
|
||||
[InlineData("net6", "net6.0.2-x64")]
|
||||
[InlineData("net6.0", "net6.0.2-x64")]
|
||||
[InlineData("net6-x64", "net6.0.2-x64")]
|
||||
[InlineData("net6-x86", "net6.0.2-x86")]
|
||||
[InlineData("net3.1", "netcoreapp3.1-x64")]
|
||||
[InlineData("netcoreapp3.1", "netcoreapp3.1-x64")]
|
||||
[InlineData("net3.1-x86", "netcoreapp3.1-x86")]
|
||||
[InlineData("net6.0.2", "net6.0.2-x64")]
|
||||
[InlineData("net6.0.2-x86", "net6.0.2-x86")]
|
||||
[InlineData("net6.0.1-x86", "net6.0.1-x86")]
|
||||
[InlineData("net6.0.0", "net6-x64")]
|
||||
[InlineData("net6", "net6.0.2-x64-desktop")]
|
||||
[InlineData("net6.0", "net6.0.2-x64-desktop")]
|
||||
[InlineData("net6-x64", "net6.0.2-x64-desktop")]
|
||||
[InlineData("net6-x86", "net6.0.2-x86-desktop")]
|
||||
[InlineData("net3.1", "netcoreapp3.1-x64-desktop")]
|
||||
[InlineData("netcoreapp3.1", "netcoreapp3.1-x64-desktop")]
|
||||
[InlineData("net3.1-x86", "netcoreapp3.1-x86-desktop")]
|
||||
[InlineData("net6.0.2", "net6.0.2-x64-desktop")]
|
||||
[InlineData("net6.0.2-x86", "net6.0.2-x86-desktop")]
|
||||
[InlineData("net6.0.1-x86", "net6.0.1-x86-desktop")]
|
||||
[InlineData("net6.0.0", "net6-x64-desktop")]
|
||||
[InlineData("net6.0-x64-desktop", "net6.0.2-x64-desktop")]
|
||||
[InlineData("net7.0-x64-base", "net7-x64-base")]
|
||||
[InlineData("net7.0-x64-asp", "net7-x64-asp")]
|
||||
[InlineData("net7.0-x64-sdk", "net7-x64-sdk")]
|
||||
public void DotnetParsesValidVersions(string input, string expected)
|
||||
{
|
||||
var p = Runtimes.DotnetInfo.Parse(input);
|
||||
@@ -33,6 +33,8 @@ namespace Squirrel.Tests
|
||||
[InlineData("net3.2")]
|
||||
[InlineData("net4.9")]
|
||||
[InlineData("net6.0.0.4")]
|
||||
[InlineData("net6-basd")]
|
||||
[InlineData("net6-x64-aakaka")]
|
||||
public void DotnetParseThrowsInvalidVersion(string input)
|
||||
{
|
||||
Assert.ThrowsAny<Exception>(() => Runtimes.DotnetInfo.Parse(input));
|
||||
@@ -54,6 +56,8 @@ namespace Squirrel.Tests
|
||||
[InlineData("asd", false)]
|
||||
[InlineData("", false)]
|
||||
[InlineData(null, false)]
|
||||
[InlineData("net6-x64", true)]
|
||||
[InlineData("net6-x64-sdk", true)]
|
||||
public void GetRuntimeTests(string input, bool expected)
|
||||
{
|
||||
var dn = Runtimes.GetRuntimeByName(input);
|
||||
|
||||
Reference in New Issue
Block a user