You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2008/12/17 23:05:28 UTC

svn commit: r727534 - in /activemq/activemq-dotnet: Apache.NMS.ActiveMQ/trunk/ Apache.NMS.EMS/trunk/ Apache.NMS.MSMQ/trunk/ Apache.NMS.WCF/trunk/ Apache.NMS/trunk/

Author: jgomes
Date: Wed Dec 17 14:05:28 2008
New Revision: 727534

URL: http://svn.apache.org/viewvc?rev=727534&view=rev
Log:
Add test NAnt target.
Fixes [AMQNET-125]. (See https://issues.apache.org/activemq/browse/AMQNET-125)

Added:
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.MSMQ.Test.nunit
Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant.build
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml
    activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant.build
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml
    activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build
    activemq/activemq-dotnet/Apache.NMS.WCF/trunk/nant-common.xml
    activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant-common.xml Wed Dec 17 14:05:28 2008
@@ -463,6 +463,36 @@
   </target>
 
   <!-- ============================================================================================ -->
+  <!--      T E S T     T A R G E T S                                                               -->
+  <!-- ============================================================================================ -->
+
+  <target name="test" depends="test-debug" description="Alias test target to test-debug"/>
+  <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations"/>
+
+  <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
+	<property name="current.build.config" value="debug"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
+	<property name="current.build.config" value="release"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-frameworks">
+    <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+      <call target="init" />
+	  <if test="${not build.skip}">
+	    <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
+	      <arg value="${NUnit.Projectfile}"/>
+	      <arg value="/labels"/>
+	      <arg value="/xml=Nunit.TestOutput.xml"/>
+	    </exec>
+	  </if>
+    </foreach>
+  </target>
+
+  <!-- ============================================================================================ -->
   <!--      M I S C E L L A N E O U S    T A R G E T S                                              -->
   <!-- ============================================================================================ -->
 

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant.build
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant.build?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant.build (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/nant.build Wed Dec 17 14:05:28 2008
@@ -35,6 +35,8 @@
   <property name="Apache.NMS.Test.dll" value="${basedir}/lib/Apache.NMS/${current.build.framework}//Apache.NMS.Test.dll" dynamic="true"/>
   <property name="Apache.NMS.Test.pdb" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.Test.pdb" dynamic="true"/>
 
+  <property name="NUnit.Projectfile" value="${basedir}/Apache.NMS.ActiveMQ.Test.nunit"/>
+
   <!-- Skip certain frameworks, since ActiveMQ.NET Client is not supported on those platforms. -->
   <property name="build.net-1.1.skip" value="true"/>
 
@@ -93,6 +95,7 @@
       <include name="${Apache.NMS.Test.pdb}"/>
       <include name="${nunit.dll}"/>
       <include name="${nunit.extensions.dll}"/>
+      <include name="${NUnit.Projectfile}"/>
     </fileset>
 
     <fileset id="install.filenames">

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant-common.xml Wed Dec 17 14:05:28 2008
@@ -463,6 +463,36 @@
   </target>
 
   <!-- ============================================================================================ -->
+  <!--      T E S T     T A R G E T S                                                               -->
+  <!-- ============================================================================================ -->
+
+  <target name="test" depends="test-debug" description="Alias test target to test-debug"/>
+  <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations"/>
+
+  <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
+	<property name="current.build.config" value="debug"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
+	<property name="current.build.config" value="release"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-frameworks">
+    <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+      <call target="init" />
+	  <if test="${not build.skip}">
+	    <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
+	      <arg value="${NUnit.Projectfile}"/>
+	      <arg value="/labels"/>
+	      <arg value="/xml=Nunit.TestOutput.xml"/>
+	    </exec>
+	  </if>
+    </foreach>
+  </target>
+
+  <!-- ============================================================================================ -->
   <!--      M I S C E L L A N E O U S    T A R G E T S                                              -->
   <!-- ============================================================================================ -->
 

Modified: activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant.build
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant.build?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant.build (original)
+++ activemq/activemq-dotnet/Apache.NMS.EMS/trunk/nant.build Wed Dec 17 14:05:28 2008
@@ -38,6 +38,8 @@
   <property name="Apache.NMS.Test.pdb" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.Test.pdb" dynamic="true"/>
   <property name="TIBCO.EMS.dll" value="${basedir}/lib/TIBCO.EMS/${current.build.framework}/TIBCO.EMS.dll" dynamic="true"/>
 
+  <property name="NUnit.Projectfile" value="${basedir}/Apache.NMS.EMS.Test.nunit"/>
+
   <!-- Skip certain frameworks, since TIBCO client is not supported on those platforms. -->
   <property name="build.net-1.1.skip" value="true"/>
   <property name="build.netcf-2.0.skip" value="true"/>
@@ -108,6 +110,7 @@
       <include name="${Apache.NMS.Test.pdb}"/>
       <include name="${nunit.dll}"/>
       <include name="${nunit.extensions.dll}"/>
+      <include name="${NUnit.Projectfile}"/>
     </fileset>
 
     <fileset id="install.filenames">

Added: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.MSMQ.Test.nunit
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.MSMQ.Test.nunit?rev=727534&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.MSMQ.Test.nunit (added)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/Apache.NMS.MSMQ.Test.nunit Wed Dec 17 14:05:28 2008
@@ -0,0 +1,7 @@
+<NUnitProject>
+  <Settings activeconfig="Default" />
+  <Config name="Default" binpathtype="Auto">
+    <assembly path="Apache.NMS.MSMQ.Test.dll" />
+    <assembly path="Apache.NMS.Test.dll" />
+  </Config>
+</NUnitProject>
\ No newline at end of file

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant-common.xml Wed Dec 17 14:05:28 2008
@@ -463,6 +463,36 @@
   </target>
 
   <!-- ============================================================================================ -->
+  <!--      T E S T     T A R G E T S                                                               -->
+  <!-- ============================================================================================ -->
+
+  <target name="test" depends="test-debug" description="Alias test target to test-debug"/>
+  <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations"/>
+
+  <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
+	<property name="current.build.config" value="debug"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
+	<property name="current.build.config" value="release"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-frameworks">
+    <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+      <call target="init" />
+	  <if test="${not build.skip}">
+	    <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
+	      <arg value="${NUnit.Projectfile}"/>
+	      <arg value="/labels"/>
+	      <arg value="/xml=Nunit.TestOutput.xml"/>
+	    </exec>
+	  </if>
+    </foreach>
+  </target>
+
+  <!-- ============================================================================================ -->
   <!--      M I S C E L L A N E O U S    T A R G E T S                                              -->
   <!-- ============================================================================================ -->
 

Modified: activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build (original)
+++ activemq/activemq-dotnet/Apache.NMS.MSMQ/trunk/nant.build Wed Dec 17 14:05:28 2008
@@ -35,6 +35,8 @@
   <property name="Apache.NMS.Test.dll" value="${basedir}/lib/Apache.NMS/${current.build.framework}//Apache.NMS.Test.dll" dynamic="true"/>
   <property name="Apache.NMS.Test.pdb" value="${basedir}/lib/Apache.NMS/${current.build.framework}/Apache.NMS.Test.pdb" dynamic="true"/>
 
+  <property name="NUnit.Projectfile" value="${basedir}/Apache.NMS.MSMQ.Test.nunit"/>
+
   <!-- Skip certain frameworks, since MSMQ is not supported on those platforms. -->
   <property name="build.netcf-2.0.skip" value="true"/>
   <property name="build.mono-2.0.skip" value="true"/>
@@ -96,6 +98,7 @@
       <include name="${Apache.NMS.Test.pdb}"/>
       <include name="${nunit.dll}"/>
       <include name="${nunit.extensions.dll}"/>
+      <include name="${NUnit.Projectfile}"/>
     </fileset>
 
     <fileset id="install.filenames">

Modified: activemq/activemq-dotnet/Apache.NMS.WCF/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.WCF/trunk/nant-common.xml?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.WCF/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.WCF/trunk/nant-common.xml Wed Dec 17 14:05:28 2008
@@ -463,6 +463,36 @@
   </target>
 
   <!-- ============================================================================================ -->
+  <!--      T E S T     T A R G E T S                                                               -->
+  <!-- ============================================================================================ -->
+
+  <target name="test" depends="test-debug" description="Alias test target to test-debug"/>
+  <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations"/>
+
+  <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
+	<property name="current.build.config" value="debug"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
+	<property name="current.build.config" value="release"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-frameworks">
+    <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+      <call target="init" />
+	  <if test="${not build.skip}">
+	    <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
+	      <arg value="${NUnit.Projectfile}"/>
+	      <arg value="/labels"/>
+	      <arg value="/xml=Nunit.TestOutput.xml"/>
+	    </exec>
+	  </if>
+    </foreach>
+  </target>
+
+  <!-- ============================================================================================ -->
   <!--      M I S C E L L A N E O U S    T A R G E T S                                              -->
   <!-- ============================================================================================ -->
 

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml?rev=727534&r1=727533&r2=727534&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/nant-common.xml Wed Dec 17 14:05:28 2008
@@ -463,6 +463,36 @@
   </target>
 
   <!-- ============================================================================================ -->
+  <!--      T E S T     T A R G E T S                                                               -->
+  <!-- ============================================================================================ -->
+
+  <target name="test" depends="test-debug" description="Alias test target to test-debug"/>
+  <target name="test-all" depends="test-debug, test-release" description="Test all build configurations for all runtime configurations"/>
+
+  <target name="test-debug" depends="" description="Test debug build configurations for all runtime configurations">
+	<property name="current.build.config" value="debug"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-release" depends="" description="Test release build configurations for all runtime configurations">
+	<property name="current.build.config" value="release"/>
+    <call target="test-frameworks" />
+  </target>
+  
+  <target name="test-frameworks">
+    <foreach item="String" in="${build.framework.strings}" delim="," property="current.build.framework">
+      <call target="init" />
+	  <if test="${not build.skip}">
+	    <exec program="nunit-console" failonerror="true" workingdir="build/${current.build.framework}/${current.build.config}">
+	      <arg value="${NUnit.Projectfile}"/>
+	      <arg value="/labels"/>
+	      <arg value="/xml=Nunit.TestOutput.xml"/>
+	    </exec>
+	  </if>
+    </foreach>
+  </target>
+
+  <!-- ============================================================================================ -->
   <!--      M I S C E L L A N E O U S    T A R G E T S                                              -->
   <!-- ============================================================================================ -->