2002/03/28 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / Test / corlib_test.build
1 <?xml version="1.0" encoding="iso-8859-1"?>\r
2 \r
3 <!-- NAnt build file for corlib_test.dll -->\r
4 <!-- Target build (default) builds tests -->\r
5 <!-- Target test runs tests -->\r
6 \r
7 <project name="corlib_test" default="build">\r
8         <property name="debug" value="true"/>\r
9         <property name="nunit_home" value="..\..\..\nunit"/>\r
10 \r
11         <target name="build">\r
12         </target>\r
13 \r
14         <target name="assemblies">\r
15                 <csc target="library" output="corlib_test.dll" debug="${debug}">\r
16                         <sources>\r
17                                 <includes name="**/*.cs"/>\r
18                                 <excludes name="TheTests.cs"/>\r
19                         </sources>\r
20                         <references basedir="..\..\..\nunit">\r
21                                 <includes name="NUnitCore.dll"/>\r
22                         </references>\r
23                         <arg value="/r:corlib_res.dll"/>\r
24                         <arg value="/nowarn:1595"/>\r
25                 </csc>\r
26 \r
27                 <csc target="library" output="corlib_reference.dll" debug="${debug}">\r
28                         <sources>\r
29                                 <includes name="**/*.cs"/>\r
30                                 <excludes name="TheTests.cs"/>\r
31                                 <excludes name="System/IntegerFormatterTest.cs"/>\r
32                         </sources>\r
33                         <references basedir="..\..\..\nunit">\r
34                                 <includes name="NUnitCore.dll"/>\r
35                         </references>\r
36                         <arg value="/nowarn:1595"/>\r
37                 </csc>\r
38 \r
39                 <csc target="exe" output="RunTests.corlib.exe" debug="${debug}">\r
40                         <sources>\r
41                                 <includes name="**/*.cs"/>\r
42                                 <excludes name="System.Collections/StackTest.cs"/>\r
43                                 <excludes name="System/IntegerFormatterTest.cs"/>\r
44                                 <excludes name="**/AllTests.cs"/>\r
45                                 <excludes name="**/MartinTests.cs"/>\r
46                         </sources>\r
47                         <references basedir="..\..\..\nunit">\r
48                                 <includes name="NUnitBase.dll"/>\r
49                         </references>\r
50                         <arg value="/r:..\..\lib\corlib.dll"/>\r
51                         <arg value="/r:..\..\lib\System.dll"/>\r
52                         <arg value="/nowarn:1595"/>\r
53                         <arg value="/nostdlib"/>        <!-- don't reference mscorlib -->\r
54                         <arg value="/noconfig"/>        <!-- don't reference ms assemblies -->\r
55                 </csc>\r
56 \r
57                         <csc target="library" output="corlib_linux_test.dll" debug="${debug}">\r
58                         <sources>\r
59                                 <includes name="**/*.cs"/>\r
60                                 <excludes name="**/MartinTests.cs"/>\r
61                                 <excludes name="TheTests.cs"/>\r
62                                 <excludes name="System.Security.Policy/*.cs"/>\r
63                         </sources>\r
64                         <references basedir="..\..\..\nunit">\r
65                                 <includes name="NUnitCore_mono.dll"/>\r
66                         </references>\r
67                         <arg value="/r:..\..\lib\corlib.dll"/>\r
68                         <arg value="/r:..\..\lib\System.dll"/>\r
69                         <arg value="/nowarn:1595"/>\r
70                         <arg value="/nostdlib"/>        <!-- don't reference mscorlib -->\r
71                         <arg value="/noconfig"/>        <!-- don't reference ms assemblies -->\r
72                 </csc>\r
73 \r
74 </target>\r
75 \r
76 \r
77         <target name="test" depends="assemblies">\r
78
79                 <!--<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/>-->\r
80
81                 <exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_reference.dll" failonerror="false"/>\r
82         </target>\r
83 \r
84         <target name="clean">\r
85                 <delete file="corlib_test.dll" failonerror="false"/>\r
86                 <delete file="RunTests.corlib.exe" failonerror="false"/>\r
87                 <delete file="corlib_linux_test.dll" failonerror="false"/>\r
88                 <delete file="corlib_reference.dll" failonerror="false"/>\r
89 \r
90                 <delete file="corlib_test.pdb" failonerror="false"/>\r
91                 <delete file="RunTests.corlib.pdb" failonerror="false"/>\r
92                 <delete file="corlib_linux_test.pdb" failonerror="false"/>\r
93                 <delete file="corlib_reference.pdb" failonerror="false"/>\r
94                 \r
95         </target>\r
96 </project>\r