Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9322513742
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (52 sloc) 1.775 kb
<?xml version="1.0"?>
<project name="Tests" default="build" basedir=".">
<property name="debug" value="False"/>
<property name="optimize" value="True"/>
<property name="build.dir" value="."/>
<property name="nunit.dir" value="${environment::get-variable('ProgramFiles')}/NUnit-Net-2.0 2.2.9"/>
<target name="build" description="Build unit tests">
<copy todir="bin/debug">
<fileset basedir="../bin">
<include name="ICSharpCode.SharpZipLib.dll"/>
</fileset>
</copy>
<!-- compile Tests -->
<echo message="Building #ZipLib Tests"/>
<csc
target="library"
output="bin/debug/tests.dll"
optimize="${optimize}"
debug="${debug}">
<sources basedir=".">
<include name="**/*.cs"/>
</sources>
<references basedir="bin/debug">
<include name="ICSharpCode.SharpZipLib.dll" />
<include name="${nunit.dir}/bin/nunit.framework.dll" />
</references>
</csc>
</target>
<target name="clean" description="Remove build artefacts">
<echo message="Cleaning #ZipLib Tests"/>
<delete verbose="true" >
<fileset basedir=".">
<include name="./bin/**/*.dll"/>
</fileset>
</delete>
</target>
<target name="rebuild" depends="clean, build" description="Rebuild unit tests" />
<target name="test" depends="build" description="Run unit tests" >
<echo message="Running #ZipLib Tests"/>
<nunit2>
<formatter type="Xml" usefile="true" extension=".xml" outputdir="${build.dir}/results" />
<test>
<assemblies basedir="bin/debug">
<include name="tests.dll" />
</assemblies>
<categories>
<exclude name="ExcludeFromAutoBuild" />
</categories>
</test>
</nunit2>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.