Rename native libraries test for Dynamic project
このコミットが含まれているのは:
1 親
3e1f18b659
コミット
bc1669d38f
6ファイル変更
+26
-26
検索条件に一致するファイルはありません
@@ -24,7 +24,7 @@ public class NativeLibrariesResolverTests
|
||||
path = Path.GetDirectoryName(path)!;
|
||||
}
|
||||
|
||||
SampleProjectDirectory = Path.Combine(path, "ComputeSharp.NuGet");
|
||||
SampleProjectDirectory = Path.Combine(path, "ComputeSharp.Dynamic.NuGet");
|
||||
|
||||
while (Path.GetFileName(path) is not "ComputeSharp")
|
||||
{
|
||||
@@ -42,7 +42,7 @@ public class NativeLibrariesResolverTests
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the directory of the ComputeSharp.NuGet project.
|
||||
/// Gets the directory of the ComputeSharp.Dynamic.NuGet project.
|
||||
/// </summary>
|
||||
private static string? SampleProjectDirectory { get; set; }
|
||||
|
||||
@@ -68,7 +68,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.dll");
|
||||
string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.dll");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", realtivePathToDll));
|
||||
}
|
||||
@@ -85,7 +85,7 @@ public class NativeLibrariesResolverTests
|
||||
|
||||
string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}");
|
||||
|
||||
Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.NuGet.dll"));
|
||||
Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.Dynamic.NuGet.dll"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@@ -98,7 +98,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.NuGet.exe");
|
||||
string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Dynamic.NuGet.exe");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, relativePathToAppHost, ""));
|
||||
}
|
||||
@@ -115,7 +115,7 @@ public class NativeLibrariesResolverTests
|
||||
|
||||
string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}");
|
||||
|
||||
Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.NuGet.exe", ""));
|
||||
Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.Dynamic.NuGet.exe", ""));
|
||||
}
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ public class NativeLibrariesResolverTests
|
||||
|
||||
Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -f net6.0 -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl");
|
||||
|
||||
string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.NuGet.exe");
|
||||
string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Dynamic.NuGet.exe");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, pathToAppHost, ""));
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする