diff options
| author | Gordon Sim <gsim@apache.org> | 2008-05-04 16:45:54 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-05-04 16:45:54 +0000 |
| commit | 13f417586d6d192b88785cb12b8b1b70647d65de (patch) | |
| tree | e957e429ab17459dcad2261a9c8d5dc28ccc519c /java/client/example/bin | |
| parent | cb802d7d136c12bf0baf041679cf09fad34fd30c (diff) | |
| download | qpid-python-13f417586d6d192b88785cb12b8b1b70647d65de.tar.gz | |
Update and cleanup scripts for automated 0-10 example testing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653253 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/example/bin')
| -rw-r--r-- | java/client/example/bin/verify_all | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/java/client/example/bin/verify_all b/java/client/example/bin/verify_all index 5b90f708eb..0191ebd80e 100644 --- a/java/client/example/bin/verify_all +++ b/java/client/example/bin/verify_all @@ -1,34 +1,41 @@ #!/bin/sh -# This script assumes QPID_SRC_HOME is set . - -if [[ "x$QPID_SRC_HOME" = "x" ]]; then - echo "WARNING >>> QPID_SRC_HOME needs to be set " - exit -fi +export QPID_SRC_HOME=$(cd "$(dirname $0)/../../../.."; pwd) export CPP=$QPID_SRC_HOME/cpp/examples/examples export PYTHON=$QPID_SRC_HOME/python/examples export JAVA=$QPID_SRC_HOME/java/client/example/src/main/java/org/apache/qpid/example/jmsexample +export AMQP_SPEC=$QPID_SRC_HOME/specs/amqp.0-10.xml +export PYTHONPATH=$QPID_SRC_HOME/python/ + +trap cleanup EXIT + run_broker(){ - $QPID_SRC_HOME/cpp/src/qpidd -d --no-data-dir + $QPID_SRC_HOME/cpp/src/qpidd -d --no-data-dir --auth no } stop_broker(){ $QPID_SRC_HOME/cpp/src/qpidd -q } +cleanup(){ + if [ -e /tmp/qpidd.5672.pid ]; then + stop_broker + fi + find $CPP -name '*.out' | xargs rm -f + find $PYTHON -name '*.out' | xargs rm -f + find $JAVA -name '*.out' | xargs rm -f +} + QPID_LIBS=`find $QPID_SRC_HOME/java/build/lib -name '*.jar' | tr '\n' ":"` export CLASSPATH=$QPID_LIBS:$CLASSPATH verify=$QPID_SRC_HOME/cpp/examples/verify -for dir in $(find $JAVA/ -maxdepth 1 -type d -not -name '*.svn') +for script in $(find $JAVA -name 'verify*' -not -path '*.svn' -not -name '*.*') do - for script in $(find $dir -maxdepth 1 -type f -name 'verify*' -not -name '*.*') - do - run_broker - $verify $script - stop_broker - done + run_broker + $verify $script + stop_broker done + |
