1 <?xml version="1.0" encoding="iso-8859-1"?>
\r
3 <!-- NAnt build file for corlib_test.dll -->
\r
4 <!-- Target build (default) builds tests -->
\r
5 <!-- Target test runs tests -->
\r
7 <project name="corlib_test" default="build">
\r
8 <property name="debug" value="true"/>
\r
9 <property name="nunit_home" value="..\..\..\nunit"/>
\r
11 <target name="build">
\r
14 <target name="assemblies">
\r
15 <csc target="library" output="corlib_test.dll" debug="${debug}">
\r
17 <includes name="**/*.cs"/>
\r
19 <references basedir="..\..\..\nunit">
\r
20 <includes name="NUnitCore.dll"/>
\r
22 <arg value="/r:corlib_res.dll"/>
\r
23 <arg value="/nowarn:1595"/>
\r
26 <csc target="library" output="corlib_reference.dll" debug="${debug}">
\r
28 <includes name="**/*.cs"/>
\r
30 <references basedir="..\..\..\nunit">
\r
31 <includes name="NUnitCore.dll"/>
\r
33 <arg value="/nowarn:1595"/>
\r
36 <csc target="library" output="corlib_linux_test.dll" debug="${debug}">
\r
38 <includes name="**/*.cs"/>
\r
39 <excludes name="System.Security.Policy/*.cs"/>
\r
41 <references basedir="..\..\..\nunit">
\r
42 <includes name="NUnitCore_mono.dll"/>
\r
44 <arg value="/r:..\..\lib\corlib.dll"/>
\r
45 <arg value="/r:..\..\lib\System.dll"/>
\r
46 <arg value="/nowarn:1595"/>
\r
47 <arg value="/nostdlib"/> <!-- don't reference mscorlib -->
\r
48 <arg value="/noconfig"/> <!-- don't reference ms assemblies -->
\r
53 <target name="test" depends="assemblies">
\r
54 <!-- Do not run the unit tests with mono corlib on ms.net. With all the icalls the results provide no useful info -->
\r
55 <!-- Change this to be "mint NUnitConsole" or "mono NUnitConsole" when those are ready to be run on Windows -->
\r
56 <!-- <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/> -->
\r
57 <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_reference.dll" failonerror="false"/>
\r
60 <target name="clean">
\r
61 <delete file="corlib_test.dll" failonerror="false"/>
\r
62 <delete file="corlib_linux_test.dll" failonerror="false"/>
\r
63 <delete file="corlib_reference.dll" failonerror="false"/>
\r
65 <delete file="corlib_test.pdb" failonerror="false"/>
\r
66 <delete file="corlib_linux_test.pdb" failonerror="false"/>
\r
67 <delete file="corlib_reference.pdb" failonerror="false"/>
\r