diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2009-03-31 04:01:07 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2009-03-31 04:01:07 +0000 |
commit | 84d0842b16d6872a1d7bfa5c70f5c9422b6b0825 (patch) | |
tree | 806cc60aac505eef46a3ad685ac962710b486f5a | |
parent | 278055f601a4ab1968c33770105344ba1aa7a8a4 (diff) | |
download | qpid-python-84d0842b16d6872a1d7bfa5c70f5c9422b6b0825.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@760312 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/build.xml | 13 | ||||
-rw-r--r-- | qpid/java/client/example/bin/verify_all | 7 |
2 files changed, 18 insertions, 2 deletions
diff --git a/qpid/java/build.xml b/qpid/java/build.xml index fee47d59ca..26aab1c322 100644 --- a/qpid/java/build.xml +++ b/qpid/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/qpid/java/client/example/bin/verify_all b/qpid/java/client/example/bin/verify_all index 3c8db42dcc..e9a9e988c9 100644 --- a/qpid/java/client/example/bin/verify_all +++ b/qpid/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 |