You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2009/03/31 06:01:09 UTC

svn commit: r760312 - in /qpid/trunk/qpid/java: build.xml client/example/bin/verify_all

Author: rajith
Date: Tue Mar 31 04:01:07 2009
New Revision: 760312

URL: http://svn.apache.org/viewvc?rev=760312&view=rev
Log:
This is a fix for QPID-1781
Added an ant target called test-interop

Modified:
    qpid/trunk/qpid/java/build.xml
    qpid/trunk/qpid/java/client/example/bin/verify_all

Modified: qpid/trunk/qpid/java/build.xml
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/build.xml?rev=760312&r1=760311&r2=760312&view=diff
==============================================================================
--- qpid/trunk/qpid/java/build.xml (original)
+++ qpid/trunk/qpid/java/build.xml Tue Mar 31 04:01:07 2009
@@ -219,5 +219,16 @@
   <target name="cover-test" description="run tests and generate coverage information" depends="build">
     <iterate target="cover-test" modules="broker client common"/>
   </target>
-    
+
+  <target name="test-interop" depends="build,compile-tests"
+      description="run JMS examples against the corresponding c++ and python examples">
+      <property name="qpid.src.home" location=".."/> 
+      <echo-prop name="qpid.src.home"/>
+      <exec executable="/bin/sh">
+         <env key="QPID_SRC_HOME" value="${qpid.src.home}"/>
+         <arg value="-c"/>
+         <arg value="${project.root}/client/example/bin/verify_all"/>
+      </exec>
+  </target>
+
 </project>

Modified: qpid/trunk/qpid/java/client/example/bin/verify_all
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/example/bin/verify_all?rev=760312&r1=760311&r2=760312&view=diff
==============================================================================
--- qpid/trunk/qpid/java/client/example/bin/verify_all (original)
+++ qpid/trunk/qpid/java/client/example/bin/verify_all Tue Mar 31 04:01:07 2009
@@ -18,7 +18,12 @@
 # under the License.
 #
 
-export QPID_SRC_HOME=$(cd "$(dirname $0)/../../../.."; pwd)
+echo $QPID_SRC_HOME
+
+if test "'x$QPID_SRC_HOME'" == "'x'"
+then
+    export QPID_SRC_HOME=$(cd "$(dirname $0)/../../../.."; pwd)
+fi
 export CPP=$QPID_SRC_HOME/cpp/examples
 export PYTHON=$QPID_SRC_HOME/python/examples
 export JAVA=$QPID_SRC_HOME/java/client/example/src/main/java/org/apache/qpid/example/jmsexample



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org