main
 1<project name="spec.dox">
 2
 3	<property name="src.test.dir" value="${product.dir}/test" />
 4	<property name="test.output.dll" value="${project::get-name()}.dll" />
 5	<property name="build.tools.gallio.dir" value="${build.tools.dir}/gallio" />
 6	<property name="build.tools.rhino.dir" value="${build.tools.dir}/rhino.mocks" />
 7	
 8	<target name="test.compile" depends="clean.up, test.copy.dependencies">
 9		<csc output="${build.compile.dir}/${test.output.dll}" target="library" debug="true">
10			<sources>
11				<include name="${product.dir}/**/*.cs" />
12				<exclude name="${product.dir}/**/AssemblyInfo.cs" />
13			</sources>
14			<references>
15				<include name="${build.lib.dir}/**.dll" />
16			</references>
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="run.test" depends="test.compile">
29		<exec
30			program="${build.tools.gallio.dir}/gallio.echo.exe"
31			commandline="${build.compile.dir}/${test.output.dll} /sr /rt:${report.type} /rd:${build.compile.dir}" />			  
32	</target>
33
34	<target name="test" depends="test.compile">
35		<property name="report.type" value="text" />
36		<call target="run.test" />
37	</target>
38	
39	<target name="test.html" depends="test.compile">
40		<property name="report.type" value="html" />
41		<call target="run.test" />
42	</target>
43	
44</project>