Rename ComputeSharp.Dynamic to ComputeSharp.Dxc
このコミットが含まれているのは:
1 親
c7bbec8df0
コミット
862ea5a51b
24ファイル変更
+37
-37
検索条件に一致するファイルはありません
@@ -0,0 +1,36 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using ComputeSharp.Tests.NativeLibrariesResolver.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace ComputeSharp.Tests.NativeLibrariesResolver;
|
||||
|
||||
[TestClass]
|
||||
public class DxcNativeLibrariesResolverTests : NativeLibrariesResolverTestsBase
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
protected override string SampleProjectName => "ComputeSharp.Dxc.NuGet";
|
||||
|
||||
/// <summary>
|
||||
/// Performs static initialization for the assembly before any unit tests are run.
|
||||
/// </summary>
|
||||
/// <param name="_">The <see cref="TestContext"/> for the test runner instance in use.</param>
|
||||
[ClassInitialize]
|
||||
public static void InitializeDynamicDependencies(TestContext _)
|
||||
{
|
||||
string path = Path.GetDirectoryName(typeof(DxcNativeLibrariesResolverTests).Assembly.Location)!;
|
||||
|
||||
while (Path.GetFileName(path) is not "ComputeSharp")
|
||||
{
|
||||
path = Path.GetDirectoryName(path)!;
|
||||
}
|
||||
|
||||
string coreProjectPath = Path.Combine(path, "src", "ComputeSharp.Core", "ComputeSharp.Core.csproj");
|
||||
string projectPath = Path.Combine(path, "src", "ComputeSharp", "ComputeSharp.csproj");
|
||||
string dxcProjectPath = Path.Combine(path, "src", "ComputeSharp.Dxc", "ComputeSharp.Dxc.csproj");
|
||||
|
||||
Process.Start("dotnet", $"pack {coreProjectPath} -c Release").WaitForExit();
|
||||
Process.Start("dotnet", $"pack {projectPath} -c Release").WaitForExit();
|
||||
Process.Start("dotnet", $"pack {dxcProjectPath} -c Release").WaitForExit();
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする