Skip to content

Commit a908424

Browse files
jonathanpeppersjonpryor
authored andcommitted
[tests] Add missing copy command to MSBuild test targets (#209)
Context: https://github.com/xamarin/java.interop/blob/5cf61f5/Makefile#L149 When we ported the NUnit tests from `Makefile` to `MSBuild`, there was a target missing that copies `libjava-interop.dylib` from `bin/Debug` to `bin/TestDebug`. It went unnoticed on Windows, because these tests are not passing yet there.
1 parent 8b95a79 commit a908424

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build-tools/scripts/RunNUnitTests.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
</ItemGroup>
1616
<Target Name="RunTests"
1717
Outputs="$(_TopDir)\TestResult-%(_TestAssembly.Filename).xml">
18+
<ItemGroup>
19+
<_JavaInteropNativeLibrary Include="$(_TopDir)\bin\$(Configuration)\libjava-interop.*" />
20+
</ItemGroup>
21+
<Copy
22+
SourceFiles="@(_JavaInteropNativeLibrary)"
23+
DestinationFolder="$(_TopDir)\bin\Test$(Configuration)"
24+
SkipUnchangedFiles="True"
25+
/>
1826
<SetEnvironmentVariable Name="MONO_TRACE_LISTENER" Value="Console.Out" />
1927
<SetEnvironmentVariable Name="JAVA_INTEROP_GREF_LOG" Value="g-%(_TestAssembly.Filename).txt" />
2028
<SetEnvironmentVariable Name="JAVA_INTEROP_LREF_LOG" Value="l-%(_TestAssembly.Filename).txt" />

0 commit comments

Comments
 (0)