You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2008/03/20 01:14:55 UTC

svn commit: r639098 - /incubator/qpid/trunk/qpid/java/client/example/bin/verify_all

Author: rajith
Date: Wed Mar 19 17:14:54 2008
New Revision: 639098

URL: http://svn.apache.org/viewvc?rev=639098&view=rev
Log:
This commit is associated with JIRA QPID-859
The verify script is modfified to start and stop the c++ broker for each test.

Modified:
    incubator/qpid/trunk/qpid/java/client/example/bin/verify_all

Modified: incubator/qpid/trunk/qpid/java/client/example/bin/verify_all
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/example/bin/verify_all?rev=639098&r1=639097&r2=639098&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/example/bin/verify_all (original)
+++ incubator/qpid/trunk/qpid/java/client/example/bin/verify_all Wed Mar 19 17:14:54 2008
@@ -10,6 +10,14 @@
 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
 
@@ -17,10 +25,10 @@
 
 for dir in $(find $JAVA/ -maxdepth 1 -type d -not -name '*.svn')
 do
-  #echo "Dir" $dir
   for script in $(find $dir -maxdepth 1 -type f -name 'verify*' -not -name '*.*')
   do
-    #echo "Script"  $script
+    run_broker
     $verify $script
+    stop_broker
   done
 done