Welcome to mirror list, hosted at ThFree Co, Russian Federation.

corlib_test.build « Test « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d0840a32f7275d0d1deec1cdf04d246407d4a2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?xml version="1.0" encoding="iso-8859-1"?>

<!-- NAnt build file for corlib_test.dll -->
<!-- Target build (default) builds tests -->
<!-- Target test runs tests -->

<project name="corlib_test" default="build">
	<property name="debug" value="true"/>
	<property name="nunit_home" value="..\..\..\nunit"/>

	<target name="build">
	</target>

	<target name="assemblies">
		<csc target="library" output="corlib_linux_test.dll" debug="${debug}">
			<sources>
				<includes name="**/*.cs"/>
				<excludes name="System.Security.Policy/*.cs"/>
			</sources>
			<references basedir="..\..\..\nunit">
				<includes name="NUnitCore_mono.dll"/>
			</references>
			<arg value="/r:..\..\lib\corlib.dll"/>
			<arg value="/r:..\..\lib\System.dll"/>
			<arg value="/nowarn:1595"/>
			<arg value="/nostdlib"/> 	<!-- don't reference mscorlib -->
			<arg value="/noconfig"/>	<!-- don't reference ms assemblies -->
		</csc>

		<csc target="library" output="corlib_test.dll" debug="${debug}">
			<sources>
				<includes name="**/*.cs"/>
			</sources>
			<references basedir="..\..\..\nunit">
				<includes name="NUnitCore.dll"/>
			</references>
			<arg value="/r:corlib_res.dll"/>
			<arg value="/nowarn:1595"/>
		</csc>

		<csc target="library" output="corlib_reference.dll" debug="${debug}">
			<sources>
				<includes name="**/*.cs"/>
			</sources>
			<references basedir="..\..\..\nunit">
				<includes name="NUnitCore.dll"/>
			</references>
			<arg value="/nowarn:1595"/>
		</csc>
</target>


	<target name="test" depends="assemblies">
<!-- Do not run the unit tests with mono corlib on ms.net.  With all the icalls the results provide no useful info -->
<!-- Change this to be "mint NUnitConsole" or "mono NUnitConsole" when those are ready to be run on Windows -->
<!--		<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_test.dll" failonerror="false"/> -->
		<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.AllTests,corlib_reference.dll" failonerror="false"/>
	</target>

	<target name="clean">
		<delete file="corlib_test.dll" failonerror="false"/>
		<delete file="corlib_linux_test.dll" failonerror="false"/>
		<delete file="corlib_reference.dll" failonerror="false"/>

		<delete file="corlib_test.pdb" failonerror="false"/>
		<delete file="corlib_linux_test.pdb" failonerror="false"/>
		<delete file="corlib_reference.pdb" failonerror="false"/>
		
	</target>
</project>