summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client.Tests/default.build
blob: d1b1496a8b65c750252fc328fed5ed29a2c1e7db (plain)
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
42
43
44
45
46
47
48
49
<?xml version="1.0"?>
<project name="Apache.Qpid.Client" default="test">

   <target name="build">
        <csc target="library" 
			define="${build.defines}" 
			warnaserror="false" debug="${build.debug}" 
         output="${build.dir}/${project::get-name()}.Tests.dll">
			
            <sources>
                <include name="**/*.cs" />
            </sources>
            <references>
               <include name="${build.dir}/log4net.dll" />
               <include name="${build.dir}/nunit.framework.dll" />
               <include name="${build.dir}/${project::get-name()}.dll" />
               <include name="${build.dir}/Apache.Qpid.Common.dll" />
               <include name="${build.dir}/Apache.Qpid.Messaging.dll" />
               <include name="${build.dir}/Apache.Qpid.Sasl.dll" />
            </references>
        </csc>
         <copy 
            tofile="${build.dir}/${project::get-name()}.Tests.dll.config" 
            file="App.config"
         />
         <copy 
            todir="${build.dir}" 
            file="log4net.config"
         />
    </target>

    <target name="test" depends="build">
        <nunit2>
            <formatter type="${nant.formatter}" usefile="false" />
            <test>
                <assemblies>
                    <include name="${build.dir}/${project::get-name()}.tests.dll"/>
                </assemblies>
                <categories>
                    <!-- The fail-over tests are interactive so should not be run as part of the build. -->
                    <exclude name="Failover"/>
                    <exclude name="SSL" if="${framework::get-target-framework() == 'mono-2.0'}"/>
                </categories>
            </test>
        </nunit2>
    </target>

</project>