master
 1<?xml version="1.0" encoding="utf-8" ?>
 2<project name="project.test">
 3	<property name="test.output" value="${project.name}.test.dll" />
 4	<property name="xunit.cons.exe" value="${build.tools.dir}\mbunit\mbunit.cons.exe" />
 5	<!--<property name="xunit.cons.exe" value="${build.tools.dir}\gallio\gallio.echo.exe" />-->
 6
 7	<fileset id="test.references.fileset">
 8		<include name="${build.lib.dir}\**\*.dll" />
 9	</fileset>
10
11	<target name="test.compile" depends="init">
12		<csc output="${build.compile.dir}\${test.output}" target="library" debug="${debug}">
13			<sources basedir="${src.dir}">
14				<include name="**\*.cs" />
15			</sources>
16			<references refid="test.references.fileset"/>
17		</csc>
18	</target>
19
20	<target name="test.copy.dependencies">
21		<copy todir="${build.compile.dir}" flatten="true">
22			<fileset basedir="${build.lib.dir}">
23				<include name="\**\*.dll" />
24			</fileset>
25		</copy>
26	</target>
27
28	<target name="test" depends="test.compile, test.copy.dependencies">
29		<exec program="${xunit.cons.exe}" commandline="${build.compile.dir}\${test.output} /sr /rt:text" />
30	</target>
31
32	<target name="test.html" depends="test.compile, test.copy.dependencies">
33		<exec program="${xunit.cons.exe}" commandline="${build.compile.dir}\${test.output} /sr /rt:html" />
34	</target>
35
36</project>