summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2009-03-31 04:01:07 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2009-03-31 04:01:07 +0000
commit10b3d5f1fc2530f27f45d05cb0ad339de858da86 (patch)
treed2e097307401e55152d5b06f2b7ccc44fd74ca66 /java
parent09981f0e35539923d77a8ce844e2cf80d1aa693b (diff)
downloadqpid-python-10b3d5f1fc2530f27f45d05cb0ad339de858da86.tar.gz
This is a fix for QPID-1781
Added an ant target called test-interop git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@760312 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/build.xml13
-rw-r--r--java/client/example/bin/verify_all7
2 files changed, 18 insertions, 2 deletions
diff --git a/java/build.xml b/java/build.xml
index fee47d59ca..26aab1c322 100644
--- a/java/build.xml
+++ b/java/build.xml
@@ -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>
diff --git a/java/client/example/bin/verify_all b/java/client/example/bin/verify_all
index 3c8db42dcc..e9a9e988c9 100644
--- a/java/client/example/bin/verify_all
+++ b/java/client/example/bin/verify_all
@@ -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