Skip to content

Commit

Permalink
Combine local repo tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Dec 4, 2023
1 parent 9efb4e3 commit 2b66110
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 311 deletions.
14 changes: 0 additions & 14 deletions src/IKVM.Maven.Sdk.Tests/IKVM.Maven.Sdk.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<ItemGroup>
<Compile Remove="Project\**\*" />
<None Include="Project\**\*" CopyToOutputDirectory="PreserveNewest" />
<Compile Remove="LocalRepoProject\**\*" />
<None Include="LocalRepoProject\**\*" CopyToOutputDirectory="PreserveNewest" />
<Compile Remove="PackProject\**\*" />
<None Include="PackProject\**\*" CopyToOutputDirectory="PreserveNewest" />
<Compile Remove="PackageReferenceProject\**\*" />
Expand All @@ -32,18 +30,6 @@
</PackageProjectReference>
</ItemGroup>

<ItemGroup>
<None Update="LocalRepoProject\repository\hellotest\1.0\hellotest-1.0.jar">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="LocalRepoProject\repository\hellotest\1.0\hellotest-1.0.pom">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="LocalRepoProject\repository\hellotest\maven-metadata-local.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

<!-- Generate a file the Tests can use to retrieve various MSBuild properties. -->
Expand Down
20 changes: 0 additions & 20 deletions src/IKVM.Maven.Sdk.Tests/LocalRepoProject/Exe/Program.cs

This file was deleted.

13 changes: 0 additions & 13 deletions src/IKVM.Maven.Sdk.Tests/LocalRepoProject/Exe/ProjectExe.csproj

This file was deleted.

11 changes: 0 additions & 11 deletions src/IKVM.Maven.Sdk.Tests/LocalRepoProject/Lib/Helloworld.cs

This file was deleted.

15 changes: 0 additions & 15 deletions src/IKVM.Maven.Sdk.Tests/LocalRepoProject/Lib/ProjectLib.csproj

This file was deleted.

238 changes: 0 additions & 238 deletions src/IKVM.Maven.Sdk.Tests/LocalRepoProjectTests.cs

This file was deleted.

1 change: 1 addition & 0 deletions src/IKVM.Maven.Sdk.Tests/Project/Exe/ProjectExe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>net472;net48;net6.0;net7.0</TargetFrameworks>
<RuntimeIdentifiers>win-x64;win-x86;win-arm64;linux-x64;linux-arm;linux-arm64;linux-musl-x64;linux-musl-arm;linux-musl-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
<MavenAdditionalRepositories>local=file:///$(MSBuildThisFileDirectory.Replace('\', '/'))../repository</MavenAdditionalRepositories>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/IKVM.Maven.Sdk.Tests/Project/Lib/ProjectLib.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;net48;net6.0;net7.0</TargetFrameworks>
<MavenAdditionalRepositories>local=file:///$(MSBuildThisFileDirectory.Replace('\', '/'))../repository</MavenAdditionalRepositories>
</PropertyGroup>

<ItemGroup>
Expand All @@ -10,6 +11,7 @@
<ItemGroup>
<MavenReference Include="org.apache.maven:maven-core" Version="3.8.6" />
<MavenReference Include="com.yahoo.vespa:documentapi" Version="8.12.48" />
<MavenReference Include="hellotest:hellotest" Version="1.0" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/IKVM.Maven.Sdk.Tests/ProjectTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public void CanBuildProject(EnvironmentPreference env, string tfm, string rid, s
File.Exists(Path.Combine(outDir, "org.apache.commons.logging.dll")).Should().BeFalse();
File.Exists(Path.Combine(outDir, "org.slf4j.dll")).Should().BeTrue();
File.Exists(Path.Combine(outDir, "xml.apis.dll")).Should().BeFalse();
File.Exists(Path.Combine(outDir, "hellotest.dll")).Should().BeTrue();

// ikvm libraries
File.Exists(Path.Combine(outDir, "IKVM.Runtime.dll")).Should().BeTrue();
Expand Down

0 comments on commit 2b66110

Please sign in to comment.