summaryrefslogtreecommitdiff
path: root/java/client/example/bin/verify_all
blob: 5b90f708eb3a9830f29794da92c73a4f8da9ffcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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 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

run_broker(){
  $QPID_SRC_HOME/cpp/src/qpidd -d --no-data-dir
}

stop_broker(){
  $QPID_SRC_HOME/cpp/src/qpidd -q
}

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')
do
  for script in $(find $dir -maxdepth 1 -type f -name 'verify*' -not -name '*.*')
  do
    run_broker
    $verify $script
    stop_broker
  done
done