diff options
Diffstat (limited to 'qpid/java')
| -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 |
