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
|
<?xml version="1.0"?>
<project name="NAnt.SourceControl" default="test">
<!--
Required properties:
* build.dir - (path) root level to build to, assemblies will go in ${build.dir}/bin
* build.debug - (true|false) debug build?
* current.build.defines - framework-specific build defines
-->
<target name="build">
<!-- build test assembly -->
<csc target="library" define="${current.build.defines}" warnaserror="true" debug="${build.debug}" output="${build.dir}/bin/${project::get-name()}.Tests.dll">
<nowarn>
<!-- do not report warnings for missing XML comments -->
<warning number="1591" />
</nowarn>
<sources>
<include name="**/*.cs" />
<!-- common assembly-level attributes -->
<include name="../../src/CommonAssemblyInfo.cs" />
</sources>
<references>
<!-- temporary workaround for Mono Runtime bug #57602 -->
<include name="${lib.framework.dir}/log4net.dll" />
<!-- end workaround -->
<include name="${build.dir}/bin/NAnt.Core.dll" />
<include name="${build.dir}/bin/NAnt.Core.Tests.dll" />
<include name="${lib.framework.dir}/nunit.framework.dll" />
</references>
</csc>
</target>
<target name="test" depends="build">
<nunit2>
<formatter type="Plain" />
<test assemblyname="${build.dir}/bin/${project::get-name()}.Tests.dll" appconfig="${path::combine(nant::get-base-directory(), 'nant.tests.config')}">
<categories>
<exclude name="InetAccess" />
</categories>
</test>
</nunit2>
</target>
</project>
|