Skip to content

Commit

Permalink
Don't test shared lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 18, 2024
1 parent b49cb26 commit ab15304
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/IKVM.Clang.Sdk.Tests/ProjectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static void Init(TestContext context)
//[DataRow(EnvironmentPreference.Core, "linux-x64", "lib{0}.so", "lib{0}.a", "{0}", "_")]
//[DataRow(EnvironmentPreference.Core, "linux-arm", "lib{0}.so", "lib{0}.a", "{0}", "_")]
//[DataRow(EnvironmentPreference.Core, "linux-arm64", "lib{0}.so", "lib{0}.a", "{0}", "_")]
[DataRow(EnvironmentPreference.Core, "browser-wasm", "lib{0}.so", "lib{0}.a", "{0}.wasm", "_")]
[DataRow(EnvironmentPreference.Core, "browser-wasm", "_", "lib{0}.a", "{0}.wasm", "_")]
public void CanBuildTestProject(EnvironmentPreference env, string tid, string dllName, string libName, string exeName, string symName)
{
TestContext.WriteLine("TestRoot: {0}", TestRoot);
Expand Down Expand Up @@ -198,22 +198,26 @@ public void CanBuildTestProject(EnvironmentPreference env, string tid, string dl
result.OverallSuccess.Should().BeTrue();

var binDir = Path.Combine(TestRoot, "Executable", "obj", "Debug", tid);
File.Exists(Path.Combine(binDir, string.Format(exeName, "Executable"))).Should().BeTrue();
if (exeName != "_")
File.Exists(Path.Combine(binDir, string.Format(exeName, "Executable"))).Should().BeTrue();
if (symName != "_")
File.Exists(Path.Combine(binDir, string.Format(symName, "Executable"))).Should().BeTrue();

var dllDir1 = Path.Combine(TestRoot, "SharedLibrary1", "obj", "Debug", tid);
File.Exists(Path.Combine(dllDir1, string.Format(dllName, "SharedLibrary1"))).Should().BeTrue();
if (dllName != "_")
File.Exists(Path.Combine(dllDir1, string.Format(dllName, "SharedLibrary1"))).Should().BeTrue();
if (symName != "_")
File.Exists(Path.Combine(dllDir1, string.Format(symName, "SharedLibrary1"))).Should().BeTrue();

var dllDir2 = Path.Combine(TestRoot, "SharedLibrary2", "obj", "Debug", tid);
File.Exists(Path.Combine(dllDir2, string.Format(dllName, "SharedLibrary2"))).Should().BeTrue();
if (dllName != "_")
File.Exists(Path.Combine(dllDir2, string.Format(dllName, "SharedLibrary2"))).Should().BeTrue();
if (symName != "_")
File.Exists(Path.Combine(dllDir2, string.Format(symName, "SharedLibrary2"))).Should().BeTrue();

var libDir1 = Path.Combine(TestRoot, "StaticLibrary1", "obj", "Debug", tid);
File.Exists(Path.Combine(libDir1, string.Format(libName, "StaticLibrary1"))).Should().BeTrue();
if (libName != "_")
File.Exists(Path.Combine(libDir1, string.Format(libName, "StaticLibrary1"))).Should().BeTrue();
}

}
Expand Down

0 comments on commit ab15304

Please sign in to comment.