Files
spring-net/test/Spring/Spring.Data.NHibernate21.Integration.Tests/Spring.Data.NHibernate21.Integration.Tests.build
sbohlen 6ee2ae5ee2 SPRNET-1372
Initial support for native .NET 4 compilation introduced
2010-09-24 21:27:51 +00:00

93 lines
3.6 KiB
XML

<?xml version="1.0" ?>
<project name="Spring.Data.NHibernate21.Integration.Tests" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
<include buildfile="${spring.basedir}/common-project.include" />
<!--
Required properties:
* current.bin.dir - (path) root level to build to
* current.build.debug - (true|false) debug build?
* current.build.defines.csc - framework-specific build defines for C# compiler
-->
<target name="build">
<!-- copy nh libs -->
<echo message="NH Libs: ${nh21.lib.dir}" />
<copy todir="${current.bin.dir}" overwrite="true">
<fileset basedir="${nh21.lib.dir}">
<include name="**/*.dll" />
</fileset>
</copy>
<!-- build Spring.Data.NHibernate21.Integration.Tests -->
<csc target="library" define="${current.build.defines.csc},NH_2_0,NH_2_1"
warnaserror="true"
optimize="${build.optimize}"
debug="${current.build.debug}"
output="${current.bin.dir}/${project::get-name()}.dll"
doc="${current.bin.dir}/${project::get-name()}.xml">
<nowarn>
<warning number="${nowarn.numbers.test}" />
</nowarn>
<sources failonempty="true">
<include name="../Spring.Data.NHibernate.Integration.Tests/**/*.cs" />
<include name="**/*.cs" />
<exclude name="AssemblyInfo.cs" />
</sources>
<references basedir="${current.bin.dir}">
<include name="System.Data.dll" />
<include name="System.EnterpriseServices.dll" />
<include name="*.dll" />
<include name="Spring.Data.NHibernate21.dll" />
<exclude name="Spring.Data.NHibernate.dll" />
<exclude name="Spring.Data.NHibernate12*.dll" />
<exclude name="Spring.Data.NHibernate20*.dll" />
<exclude name="Spring.Data.NHibernate*.Tests.dll" />
<exclude if="${net-4.0}" name="System.Web.Extensions.dll" />
</references>
<resources prefix="Spring" dynamicprefix="true" failonempty="true">
<include name="**/*.xml" />
<include name="**/*.sql" />
</resources>
<resources prefix="Spring" dynamicprefix="true" basedir="../Spring.Data.NHibernate.Integration.Tests" failonempty="true">
<include name="**/*.sql" />
</resources>
</csc>
<copy file="${project::get-base-directory()}/${project::get-name()}.dll.config"
tofile="${current.bin.dir}/${project::get-name()}.dll.config"/>
<copy todir="${current.bin.dir}" overwrite="true">
<fileset basedir="${project::get-base-directory()}">
<include name="NHibernate.Test.dll.config" />
<include name="TestEnbeddedConfig.cfg.xml" />
</fileset>
</copy>
</target>
<target name="test" depends="build">
<property name="test.assemblyfile" value="${project::get-name()}.dll" />
<call target="common.run-tests" if="${test.integration.data}" />
<!-- 1) Test Failure : NHibernate.Test.CacheTest.TimestamperFixture.VerifyIncrease
diff was 0. It should always increase. Loop i=4094 with currentTicks = 5152049817206783 and newTicks = 5152049817206783
-->
<!--
<property name="test.assemblyfile" value="NHibernate.Test.dll" />
<call target="common.run-tests" if="${test.integration.data}" />
-->
<!-- cleanup after NH tests - they unfortunately generate a bunch of assemblies as well -->
<!--
<delete>
<fileset basedir="${current.bin.dir}">
<include name="*.hbm.xml"/>
<include name="My*.*"/>
</fileset>
</delete>
-->
</target>
</project>