<!-- Target test runs tests -->\r
\r
<project name="corlib_test" default="build">\r
- <property name="debug" value="false"/>\r
+ <property name="debug" value="true"/>\r
<property name="nunit_home" value="..\..\..\nunit"/>\r
\r
<target name="build">\r
- <csc target="library" output="corlib_test.dll" debug="${debug}">\r
+ </target>\r
+\r
+ <target name="assemblies">\r
+ <csc target="library" output="corlib_linux_test.dll" debug="${debug}">\r
<sources>\r
<includes name="**/*.cs"/>\r
- <excludes name="System/IntegerFormatterTest.cs"/>\r
+ <excludes name="System.Security.Policy/*.cs"/>\r
</sources>\r
<references basedir="..\..\..\nunit">\r
- <includes name="NUnitCore.dll"/>\r
+ <includes name="NUnitCore_mono.dll"/>\r
</references>\r
- <arg value="/r:corlib_res.dll"/>\r
+ <arg value="/r:..\..\lib\corlib.dll"/>\r
+ <arg value="/r:..\..\lib\System.dll"/>\r
<arg value="/nowarn:1595"/>\r
+ <arg value="/nostdlib"/> <!-- don't reference mscorlib -->\r
+ <arg value="/noconfig"/> <!-- don't reference ms assemblies -->\r
</csc>\r
\r
- <csc target="library" output="corlib_reference.dll" debug="${debug}">\r
+ <csc target="library" output="corlib_test.dll" debug="${debug}">\r
<sources>\r
<includes name="**/*.cs"/>\r
- <excludes name="System/IntegerFormatterTest.cs"/>\r
</sources>\r
<references basedir="..\..\..\nunit">\r
<includes name="NUnitCore.dll"/>\r
</references>\r
+ <arg value="/r:corlib_res.dll"/>\r
<arg value="/nowarn:1595"/>\r
</csc>\r
\r
- <csc target="exe" output="RunTests.exe" debug="${debug}">\r
+ <csc target="library" output="corlib_reference.dll" debug="${debug}">\r
<sources>\r
<includes name="**/*.cs"/>\r
- <excludes name="System/IntegerFormatterTest.cs"/>\r
- <excludes name="System.Collections/StackTest.cs"/>\r
- <excludes name="**/AllTests.cs"/>\r
</sources>\r
<references basedir="..\..\..\nunit">\r
<includes name="NUnitCore.dll"/>\r
</references>\r
<arg value="/nowarn:1595"/>\r
</csc>\r
- </target>\r
+</target>\r
\r
\r
- <target name="test" depends="build">\r
- <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/>\r
+ <target name="test" depends="assemblies">\r
+<!-- Do not run the unit tests with mono corlib on ms.net. With all the icalls the results provide no useful info -->\r
+<!-- Change this to be "mint NUnitConsole" or "mono NUnitConsole" when those are ready to be run on Windows -->\r
+<!-- <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/> -->\r
<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_reference.dll" failonerror="false"/>\r
</target>\r
\r
<target name="clean">\r
<delete file="corlib_test.dll" failonerror="false"/>\r
+ <delete file="corlib_linux_test.dll" failonerror="false"/>\r
+ <delete file="corlib_reference.dll" failonerror="false"/>\r
+\r
+ <delete file="corlib_test.pdb" failonerror="false"/>\r
+ <delete file="corlib_linux_test.pdb" failonerror="false"/>\r
+ <delete file="corlib_reference.pdb" failonerror="false"/>\r
+ \r
</target>\r
</project>\r