2002-02-10 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / Test / corlib_test.build
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <!-- NAnt build file for corlib_test.dll -->
4 <!-- Target build (default) builds tests -->
5 <!-- Target test runs tests -->
6
7 <project name="corlib_test" default="build">
8         <property name="debug" value="false"/>
9         <property name="nunit_home" value="..\..\..\nunit"/>
10
11         <target name="build">
12                 <csc target="library" output="corlib_test.dll" debug="${debug}">
13                         <sources>
14                                 <includes name="**/*.cs"/>
15                                 <excludes name="System/IntegerFormatterTest.cs"/>
16                         </sources>
17                         <references basedir="..\..\..\nunit">
18                                 <includes name="NUnitCore.dll"/>
19                         </references>
20                         <arg value="/r:corlib_res.dll"/>
21                         <arg value="/nowarn:1595"/>
22                 </csc>
23
24                 <csc target="library" output="corlib_reference.dll" debug="${debug}">
25                         <sources>
26                                 <includes name="**/*.cs"/>
27                                 <excludes name="System/IntegerFormatterTest.cs"/>
28                         </sources>
29                         <references basedir="..\..\..\nunit">
30                                 <includes name="NUnitCore.dll"/>
31                         </references>
32                         <arg value="/nowarn:1595"/>
33                 </csc>
34         </target>
35
36
37         <target name="test" depends="build">
38                 <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/>
39                 <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_reference.dll" failonerror="false"/>
40         </target>
41
42         <target name="clean">
43                 <delete file="corlib_test.dll" failonerror="false"/>
44         </target>
45 </project>