diff options
62 files changed, 1411 insertions, 11 deletions
diff --git a/qpid/cc/README b/qpid/cc/README index b0e3385d6d..8d1286f6d7 100644 --- a/qpid/cc/README +++ b/qpid/cc/README @@ -20,15 +20,41 @@ Download CruiseControl from: http://cruisecontrol.sourceforge.net/ Set system variables ****************** -Prior to use CruiseControl you'll need to set two system variables: +Prior to use CruiseControl you'll need to set three system variables: Variable Value CC_HOME path to your qpid project, for example /home/foo/projects/qpid CPPSTORE_HOME path to your C++ store, for example /home/foo/projects/bdbstore-cpp +NANT_HOME path to the nant directory -- only required for .net client -- + (nant can be downloaded from http://nant.sourceforge.net/) Edit the file CC_HOME/config.properties and set the properties so to match your system requirements. Notes - * the cpp store can be checked out from: https://svn.jboss.org/repos/rhmessaging/store/trunk/cpp + * the cpp store can be checked out from: https://svn.jboss.org/repos/rhmessaging/store/trunk/cpp * Only unix scrips are currently provided + * + + +****************** +Installing Mono +****************** +For building the .net client on a Linux platform you need to install Mono. +Mono website is: http://www.mono-project.com/Main_Page +Here are the instruction for a RHEL5 platform: + +Create the file "/etc/yum.repos.d/mono.repo" and add the following lines: + +[Mono] +name=Mono Stack (RHEL_5) +type=rpm-md +baseurl=http://download.opensuse.org/repositories/Mono/RHEL_5/ +gpgcheck=1 +gpgkey=http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml.key +enabled=1 + +Enter the following command to install Mono: + +# yum install mono-complete + ****************** Running CruiseControl diff --git a/qpid/cc/config.xml b/qpid/cc/config.xml index 2436cec1ca..ba89acc511 100644 --- a/qpid/cc/config.xml +++ b/qpid/cc/config.xml @@ -22,13 +22,16 @@ under the License. <property environment="env" toupper="true"/>
<!-- Set a collection of global properties from the properties file "config.properties" -->
- <property file="config.properties"/>
+ <property file="${env.CC_HOME}/cc/config.properties"/>
<include.projects file="./config/cpp-trunk.xml"/>
<include.projects file="./config/java-trunk.xml"/>
+ <include.projects file="./config/dotnet-trunk.xml"/>
<include.projects file="./config/bdbstore-cpp-trunk.xml"/>
<include.projects file="./config/cpp-perftests.xml"/>
<include.projects file="./config/example-automation.xml"/>
<include.projects file="./config/java-perftests.xml"/>
<include.projects file="./config/java-jmstck.xml"/>
</cruisecontrol>
+
+
diff --git a/qpid/cc/config/dotnet-trunk.xml b/qpid/cc/config/dotnet-trunk.xml new file mode 100644 index 0000000000..0d922967e4 --- /dev/null +++ b/qpid/cc/config/dotnet-trunk.xml @@ -0,0 +1,63 @@ +<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<cruisecontrol>
+ <project name="qpid-dotnet-trunk"
+ buildafterfailed="false">
+
+ <listeners>
+ <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
+ </listeners>
+
+ <bootstrappers>
+ <svnbootstrapper localWorkingCopy="../bin" />
+ <svnbootstrapper localWorkingCopy="../dotnet/client-010" />
+ <svnbootstrapper localWorkingCopy="../specs" />
+ </bootstrappers>
+
+ <modificationset quietperiod="30">
+ <svn localWorkingCopy="../bin"/>
+ <svn localWorkingCopy="../dotnet/client-010"/>
+ <svn localWorkingCopy="../specs"/>
+ </modificationset>
+
+ <schedule interval="3600">
+ <!-- generates code from specs -->
+ <ant target="build"
+ uselogger="false"
+ antworkingdir="../dotnet/client-010/gentool">
+ </ant>
+
+ <exec timeout="1800"
+ command="/bin/bash"
+ args="../cc/scripts/dotnetbuild.sh"
+ workingdir="../dotnet/client-010" />
+ </schedule>
+
+ <publishers>
+ <email subjectprefix="${mail.subject}: ${project.name}" mailhost="${mail.host}"
+ returnaddress="${mail.returnaddress}"
+ buildresultsurl="http://${env.HOSTNAME}:8080/buildresults/${project.name}"
+ skipusers="false"
+ reportsuccess="fixes"
+ spamwhilebroken="true">
+ <always address="${mail.list}"/>
+ </email>
+ </publishers>
+ </project>
+</cruisecontrol>
diff --git a/qpid/cc/scripts/dotnetbuild.sh b/qpid/cc/scripts/dotnetbuild.sh new file mode 100644 index 0000000000..51d2110757 --- /dev/null +++ b/qpid/cc/scripts/dotnetbuild.sh @@ -0,0 +1,21 @@ +#!/bin/bash -x +########################################################### +#Licensed to the Apache Software Foundation (ASF) under one +#or more contributor license agreements. See the NOTICE file +#distributed with this work for additional information +#regarding copyright ownership. The ASF licenses this file +#to you under the Apache License, Version 2.0 (the +#"License"); you may not use this file except in compliance +#with the License. You may obtain a copy of the License at +# +#http://www.apache.org/licenses/LICENSE-2.0 +# +#Unless required by applicable law or agreed to in writing, +#software distributed under the License is distributed on an +#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +#KIND, either express or implied. See the License for the +#specific language governing permissions and limitations +#under the License. +########################################################### + +mono $NANT_HOME/bin/NAnt.exe test
\ No newline at end of file diff --git a/qpid/cc/scripts/verify b/qpid/cc/scripts/verify index c183fee323..35191b17c9 100755 --- a/qpid/cc/scripts/verify +++ b/qpid/cc/scripts/verify @@ -18,6 +18,7 @@ #under the License. ########################################################### +export DOTNET_EXAMPLES=$CC_HOME/dotnet/client-010/bin/mono-2.0/debug export CLASSPATH=`find "$CC_HOME/java/build/lib" -name '*.jar' | tr '\n' ":"` export CPP=$CC_HOME/cpp/examples export JAVA=$CC_HOME/java/client/example/src/main/java @@ -77,6 +78,7 @@ verify() { else dir=`dirname $1`; script=`basename $1`; fi cd $dir || return 1 rm -f *.out + echo "Running: $dir/$script" { source ./$script && diff -ac $script.out $script.in ; } || fail test -z "$FAIL" && rm -f *.out return $FAIL diff --git a/qpid/cc/scripts/verify_all b/qpid/cc/scripts/verify_all index fcb38f3709..8d3ec669a7 100755 --- a/qpid/cc/scripts/verify_all +++ b/qpid/cc/scripts/verify_all @@ -35,7 +35,7 @@ run_broker() echo "Starting C++ broker" echo "******************************************************" echo "" - $CC_HOME/cpp/src/qpidd -t -d --auth no --no-data-dir --log-output $CC_HOME/broker.log + $CC_HOME/cpp/src/qpidd -t -d --auth no --no-data-dir --log-to-file $CC_HOME/broker.log } stop_broker() @@ -118,9 +118,49 @@ echo "-----------</Running Java/Python combination>--------" echo "" } +run_dotnet_dotnet() +{ +echo "-----------<Running .Net/.Net combination>---------" +verify $CC_HOME/dotnet/client-010/examples/ "verify" "*.svn" +echo "-----------</Running .Net/.Net combination>--------" +echo "" +} + +run_cpp_dotnet() +{ +echo "-----------<Running C++/.Net combination>---------" +verify $CC_HOME/dotnet/client-010/examples/ "verify_cpp_dotnet" "*.svn" +verify $CC_HOME/dotnet/client-010/examples/ "verify_dotnet_cpp" "*.svn" +echo "-----------</Running C++/.Net combination>--------" +echo "" +} + +run_java_dotnet() +{ +echo "-----------<Running Java/.Net combination>---------" +verify $CC_HOME/dotnet/client-010/examples/ "verify_java_dotnet" "*.svn" +verify $CC_HOME/dotnet/client-010/examples/ "verify_dotnet_java" "*.svn" +echo "-----------</Running Java/.Net combination>--------" +echo "" +} + +run_python_dotnet() +{ +echo "-----------<Running Python/.Net combination>---------" +verify $CC_HOME/dotnet/client-010/examples/ "verify_python_dotnet" "*.svn" +verify $CC_HOME/dotnet/client-010/examples/ "verify_dotnet_python" "*.svn" +echo "-----------</Running Python/.Net combination>--------" +echo "" +} + + run_python_python run_python_cpp_comb run_cpp_cpp run_java_java run_java_cpp_comb run_java_python_comb +run_dotnet_dotnet +run_cpp_dotnet +run_java_dotnet +run_python_dotnet
\ No newline at end of file diff --git a/qpid/dotnet/client-010/examples/direct/verify b/qpid/dotnet/client-010/examples/direct/verify new file mode 100644 index 0000000000..cd53687176 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/direct + +direct_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Listener.exe localhost 5672 +} + +direct_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Producer.exe localhost 5672 +} + +clients $cpp/declare_queues direct_producer_dotnet direct_listener_dotnet +outputs $cpp/declare_queues.out ./direct_producer_dotnet.out ./direct_listener_dotnet.out
\ No newline at end of file diff --git a/qpid/dotnet/client-010/examples/direct/verify.in b/qpid/dotnet/client-010/examples/direct/verify.in new file mode 100644 index 0000000000..f57d931663 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify.in @@ -0,0 +1,14 @@ +==== declare_queues.out +==== direct_producer_dotnet.out +==== direct_listener_dotnet.out +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet b/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet new file mode 100644 index 0000000000..86fb7dddd4 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet @@ -0,0 +1,10 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/direct + +direct_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Listener.exe localhost 5672 +} + +clients $cpp/declare_queues $cpp/direct_producer direct_listener_dotnet +outputs $cpp/declare_queues.out $cpp/direct_producer.out ./direct_listener_dotnet.out
\ No newline at end of file diff --git a/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet.in b/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet.in new file mode 100644 index 0000000000..b3543cefe5 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_cpp_dotnet.in @@ -0,0 +1,14 @@ +==== declare_queues.out +==== direct_producer.out +==== direct_listener_dotnet.out +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp b/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp new file mode 100644 index 0000000000..fe86159fcc --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp @@ -0,0 +1,10 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/direct + +direct_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Producer.exe localhost 5672 +} + +clients $cpp/declare_queues direct_producer_dotnet $cpp/listener +outputs $cpp/declare_queues.out ./direct_producer_dotnet.out $cpp/listener.out
\ No newline at end of file diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp.in b/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp.in new file mode 100644 index 0000000000..fcb6cd66de --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_cpp.in @@ -0,0 +1,15 @@ +==== declare_queues.out +==== direct_producer_dotnet.out +==== listener.out +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! +Shutting down listener for message_queue diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_java b/qpid/dotnet/client-010/examples/direct/verify_dotnet_java new file mode 100644 index 0000000000..528f3eb664 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_java @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/direct + +direct_consumer_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.direct.Consumer +} + +direct_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Producer.exe localhost 5672 +} + +clients $cpp/declare_queues direct_producer_dotnet direct_consumer_java +outputs $cpp/declare_queues.out ./direct_producer_dotnet.out ./direct_consumer_java.out diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_java.in b/qpid/dotnet/client-010/examples/direct/verify_dotnet_java.in new file mode 100644 index 0000000000..cd87551305 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_java.in @@ -0,0 +1,20 @@ +==== declare_queues.out +==== direct_producer_dotnet.out +==== direct_consumer_java.out +Consumer: Setting an ExceptionListener on the connection as sample uses a MessageConsumer +Consumer: Creating a non-transacted, auto-acknowledged session +Consumer: Creating a MessageConsumer +Consumer: Starting connection so MessageConsumer can receive messages +Consumer: Received message: Message 0 +Consumer: Received message: Message 1 +Consumer: Received message: Message 2 +Consumer: Received message: Message 3 +Consumer: Received message: Message 4 +Consumer: Received message: Message 5 +Consumer: Received message: Message 6 +Consumer: Received message: Message 7 +Consumer: Received message: Message 8 +Consumer: Received message: Message 9 +Consumer: Received final message That's all, folks! +Consumer: Closing connection +Consumer: Closing JNDI context diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_python b/qpid/dotnet/client-010/examples/direct/verify_dotnet_python new file mode 100644 index 0000000000..0c70465bc5 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_python @@ -0,0 +1,10 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/direct + +direct_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Producer.exe localhost 5672 +} + +clients $py/declare_queues.py direct_producer_dotnet $py/direct_consumer.py +outputs $py/declare_queues.py.out ./direct_producer_dotnet.out $py/direct_consumer.py.out diff --git a/qpid/dotnet/client-010/examples/direct/verify_dotnet_python.in b/qpid/dotnet/client-010/examples/direct/verify_dotnet_python.in new file mode 100644 index 0000000000..7059b3079c --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_dotnet_python.in @@ -0,0 +1,14 @@ +==== declare_queues.py.out +==== direct_producer_dotnet.out +==== direct_consumer.py.out +Message 0 +Message 1 +Message 2 +Message 3 +Message 4 +Message 5 +Message 6 +Message 7 +Message 8 +Message 9 +That's all, folks! diff --git a/qpid/dotnet/client-010/examples/direct/verify_java_dotnet b/qpid/dotnet/client-010/examples/direct/verify_java_dotnet new file mode 100644 index 0000000000..50eb73f9f5 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_java_dotnet @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/direct + +direct_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Listener.exe localhost 5672 +} + +direct_producer_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.direct.Producer +} + +clients $cpp/declare_queues direct_producer_java direct_listener_dotnet +outputs $cpp/declare_queues.out ./direct_producer_java.out ./direct_listener_dotnet.out diff --git a/qpid/dotnet/client-010/examples/direct/verify_java_dotnet.in b/qpid/dotnet/client-010/examples/direct/verify_java_dotnet.in new file mode 100644 index 0000000000..23628b89de --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_java_dotnet.in @@ -0,0 +1,29 @@ +==== declare_queues.out +==== direct_producer_java.out +Producer: Creating a non-transacted, auto-acknowledged session +Producer: Creating a Message Producer +Producer: Creating a TestMessage to send to the destination +Producer: Sending message: 1 +Producer: Sending message: 2 +Producer: Sending message: 3 +Producer: Sending message: 4 +Producer: Sending message: 5 +Producer: Sending message: 6 +Producer: Sending message: 7 +Producer: Sending message: 8 +Producer: Sending message: 9 +Producer: Sending message: 10 +Producer: Closing connection +Producer: Closing JNDI context +==== direct_listener_dotnet.out +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: Message 10 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/direct/verify_python_dotnet b/qpid/dotnet/client-010/examples/direct/verify_python_dotnet new file mode 100644 index 0000000000..086b31caf4 --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_python_dotnet @@ -0,0 +1,10 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/direct + +direct_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-direct-Listener.exe localhost 5672 +} + +clients $py/declare_queues.py $py/direct_producer.py direct_listener_dotnet +outputs $py/declare_queues.py.out $py/direct_producer.py.out ./direct_listener_dotnet.out diff --git a/qpid/dotnet/client-010/examples/direct/verify_python_dotnet.in b/qpid/dotnet/client-010/examples/direct/verify_python_dotnet.in new file mode 100644 index 0000000000..6fc2eeb18f --- /dev/null +++ b/qpid/dotnet/client-010/examples/direct/verify_python_dotnet.in @@ -0,0 +1,14 @@ +==== declare_queues.py.out +==== direct_producer.py.out +==== direct_listener_dotnet.out +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/fanout/verify b/qpid/dotnet/client-010/examples/fanout/verify new file mode 100644 index 0000000000..b53d440895 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +fanout_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Listener.exe localhost 5672 +} + +fanout_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Producer.exe localhost 5672 +} + +background "Listening" fanout_listener_dotnet +clients fanout_producer_dotnet +outputs ./fanout_listener_dotnet.out ./fanout_producer_dotnet.out diff --git a/qpid/dotnet/client-010/examples/fanout/verify.in b/qpid/dotnet/client-010/examples/fanout/verify.in new file mode 100644 index 0000000000..37a4a4aaa8 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify.in @@ -0,0 +1,14 @@ +==== fanout_listener_dotnet.out +Listening +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! +==== fanout_producer_dotnet.out diff --git a/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet b/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet new file mode 100644 index 0000000000..b9b0d94857 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/fanout + +fanout_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Listener.exe localhost 5672 +} + +background "Listening" fanout_listener_dotnet +clients $cpp/fanout_producer +outputs $cpp/fanout_producer.out "./fanout_listener_dotnet.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet.in b/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet.in new file mode 100644 index 0000000000..0a72d8fd3c --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_cpp_dotnet.in @@ -0,0 +1,14 @@ +==== fanout_producer.out +==== fanout_listener_dotnet.out | remove_uuid +Listening +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp new file mode 100644 index 0000000000..1b27ea8653 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/fanout + +fanout_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Producer.exe localhost 5672 +} + + +background "Listening" $cpp/listener +clients fanout_producer_dotnet +outputs ./fanout_producer_dotnet.out "$cpp/listener.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp.in b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp.in new file mode 100644 index 0000000000..588559938f --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_cpp.in @@ -0,0 +1,15 @@ +==== fanout_producer_dotnet.out +==== listener.out | remove_uuid +Listening +Message: Message 0 +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: That's all, folks! +Shutting down listener for diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java new file mode 100644 index 0000000000..88576814d7 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java @@ -0,0 +1,16 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +fanout_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Producer.exe localhost 5672 +} + + +fanout_listener_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.fanout.Listener $1 +} + +background "can receive messages" fanout_listener_java fanoutQueue1 +clients fanout_producer_dotnet +outputs ./fanout_producer_dotnet.out "./fanout_listener_java.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java.in b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java.in new file mode 100644 index 0000000000..06d3a6e66b --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_java.in @@ -0,0 +1,19 @@ +==== fanout_producer_dotnet.out +==== fanout_listener_java.out | remove_uuid +Listener: Setting an ExceptionListener on the connection as sample uses a MessageConsumer +Listener: Creating a non-transacted, auto-acknowledged session +Listener: Creating a MessageConsumer +Listener: Starting connection so MessageConsumer can receive messages +Listener: Received message: Message 0 +Listener: Received message: Message 1 +Listener: Received message: Message 2 +Listener: Received message: Message 3 +Listener: Received message: Message 4 +Listener: Received message: Message 5 +Listener: Received message: Message 6 +Listener: Received message: Message 7 +Listener: Received message: Message 8 +Listener: Received message: Message 9 +Listener: Received final message That's all, folks! +Listener: Closing connection +Listener: Closing JNDI context diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python new file mode 100644 index 0000000000..a09b26ca6a --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/fanout + +fanout_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Producer.exe localhost 5672 +} + +background "Subscribed" $py/fanout_consumer.py +clients fanout_producer_dotnet +outputs ./fanout_producer_dotnet.out "$py/fanout_consumer.py.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python.in b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python.in new file mode 100644 index 0000000000..e9959c2e25 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_dotnet_python.in @@ -0,0 +1,14 @@ +==== fanout_producer_dotnet.out +==== fanout_consumer.py.out | remove_uuid +Subscribed to queue +Message 0 +Message 1 +Message 2 +Message 3 +Message 4 +Message 5 +Message 6 +Message 7 +Message 8 +Message 9 +That's all, folks! diff --git a/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet b/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet new file mode 100644 index 0000000000..d72954de0e --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet @@ -0,0 +1,16 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +fanout_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Listener.exe localhost 5672 +} + + +fanout_producer_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.fanout.Producer +} + +background "Listening" fanout_listener_dotnet +clients fanout_producer_java +outputs fanout_producer_java.out "./fanout_listener_dotnet.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet.in b/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet.in new file mode 100644 index 0000000000..acf1b61221 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_java_dotnet.in @@ -0,0 +1,29 @@ +==== fanout_producer_java.out +Producer: Creating a non-transacted, auto-acknowledged session +Producer: Creating a Message Producer +Producer: Creating a TestMessage to send to the destination +Producer: Sending message: 1 +Producer: Sending message: 2 +Producer: Sending message: 3 +Producer: Sending message: 4 +Producer: Sending message: 5 +Producer: Sending message: 6 +Producer: Sending message: 7 +Producer: Sending message: 8 +Producer: Sending message: 9 +Producer: Sending message: 10 +Producer: Closing connection +Producer: Closing JNDI context +==== fanout_listener_dotnet.out | remove_uuid +Listening +Message: Message 1 +Message: Message 2 +Message: Message 3 +Message: Message 4 +Message: Message 5 +Message: Message 6 +Message: Message 7 +Message: Message 8 +Message: Message 9 +Message: Message 10 +Message: That's all, folks! diff --git a/qpid/dotnet/client-010/examples/fanout/verify_python_dotnet b/qpid/dotnet/client-010/examples/fanout/verify_python_dotnet new file mode 100644 index 0000000000..ac472c0f72 --- /dev/null +++ b/qpid/dotnet/client-010/examples/fanout/verify_python_dotnet @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/fanout + +fanout_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-fanout-Listener.exe localhost 5672 +} + +background "Listening" fanout_listener_dotnet +clients $py/fanout_producer.py +outputs $py/fanout_producer.py.out "./fanout_listener_dotnet.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify b/qpid/dotnet/client-010/examples/pub-sub/verify new file mode 100644 index 0000000000..8e4e7516ab --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +pubsub_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Listener.exe localhost 5672 +} + +pubsub_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Publisher.exe localhost 5672 +} + +background "Listening for messages ..." pubsub_listener_dotnet +clients pubsub_producer_dotnet +outputs pubsub_producer_dotnet.out "pubsub_listener_dotnet.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify.in b/qpid/dotnet/client-010/examples/pub-sub/verify.in new file mode 100644 index 0000000000..6a5adc4d89 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify.in @@ -0,0 +1,95 @@ +==== pubsub_producer_dotnet.out +==== pubsub_listener_dotnet.out | remove_uuid | sort +Declaring queue: europe +Declaring queue: news +Declaring queue: usa +Declaring queue: weather +Listening for messages ... +Message: Message 0 from europe +Message: Message 0 from europe +Message: Message 0 from news +Message: Message 0 from news +Message: Message 0 from usa +Message: Message 0 from usa +Message: Message 0 from weather +Message: Message 0 from weather +Message: Message 1 from europe +Message: Message 1 from europe +Message: Message 1 from news +Message: Message 1 from news +Message: Message 1 from usa +Message: Message 1 from usa +Message: Message 1 from weather +Message: Message 1 from weather +Message: Message 2 from europe +Message: Message 2 from europe +Message: Message 2 from news +Message: Message 2 from news +Message: Message 2 from usa +Message: Message 2 from usa +Message: Message 2 from weather +Message: Message 2 from weather +Message: Message 3 from europe +Message: Message 3 from europe +Message: Message 3 from news +Message: Message 3 from news +Message: Message 3 from usa +Message: Message 3 from usa +Message: Message 3 from weather +Message: Message 3 from weather +Message: Message 4 from europe +Message: Message 4 from europe +Message: Message 4 from news +Message: Message 4 from news +Message: Message 4 from usa +Message: Message 4 from usa +Message: Message 4 from weather +Message: Message 4 from weather +Message: Message 5 from europe +Message: Message 5 from europe +Message: Message 5 from news +Message: Message 5 from news +Message: Message 5 from usa +Message: Message 5 from usa +Message: Message 5 from weather +Message: Message 5 from weather +Message: Message 6 from europe +Message: Message 6 from europe +Message: Message 6 from news +Message: Message 6 from news +Message: Message 6 from usa +Message: Message 6 from usa +Message: Message 6 from weather +Message: Message 6 from weather +Message: Message 7 from europe +Message: Message 7 from europe +Message: Message 7 from news +Message: Message 7 from news +Message: Message 7 from usa +Message: Message 7 from usa +Message: Message 7 from weather +Message: Message 7 from weather +Message: Message 8 from europe +Message: Message 8 from europe +Message: Message 8 from news +Message: Message 8 from news +Message: Message 8 from usa +Message: Message 8 from usa +Message: Message 8 from weather +Message: Message 8 from weather +Message: Message 9 from europe +Message: Message 9 from europe +Message: Message 9 from news +Message: Message 9 from news +Message: Message 9 from usa +Message: Message 9 from usa +Message: Message 9 from weather +Message: Message 9 from weather +Message: That's all, folks! from europe +Message: That's all, folks! from news +Message: That's all, folks! from usa +Message: That's all, folks! from weather +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet b/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet new file mode 100644 index 0000000000..86d60578ad --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/pub-sub + +pubsub_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Listener.exe localhost 5672 +} + + +background "Listening for messages ..." pubsub_listener_dotnet +clients $cpp/topic_publisher +outputs $cpp/topic_publisher.out "pubsub_listener_dotnet.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet.in b/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet.in new file mode 100644 index 0000000000..4e058f7645 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_cpp_dotnet.in @@ -0,0 +1,55 @@ +==== topic_publisher.out +==== pubsub_listener_dotnet.out | remove_uuid | sort +Declaring queue: europe +Declaring queue: news +Declaring queue: usa +Declaring queue: weather +Listening for messages ... +Message: Message 0 from europe +Message: Message 0 from europe +Message: Message 0 from news +Message: Message 0 from news +Message: Message 0 from usa +Message: Message 0 from usa +Message: Message 0 from weather +Message: Message 0 from weather +Message: Message 1 from europe +Message: Message 1 from europe +Message: Message 1 from news +Message: Message 1 from news +Message: Message 1 from usa +Message: Message 1 from usa +Message: Message 1 from weather +Message: Message 1 from weather +Message: Message 2 from europe +Message: Message 2 from europe +Message: Message 2 from news +Message: Message 2 from news +Message: Message 2 from usa +Message: Message 2 from usa +Message: Message 2 from weather +Message: Message 2 from weather +Message: Message 3 from europe +Message: Message 3 from europe +Message: Message 3 from news +Message: Message 3 from news +Message: Message 3 from usa +Message: Message 3 from usa +Message: Message 3 from weather +Message: Message 3 from weather +Message: Message 4 from europe +Message: Message 4 from europe +Message: Message 4 from news +Message: Message 4 from news +Message: Message 4 from usa +Message: Message 4 from usa +Message: Message 4 from weather +Message: Message 4 from weather +Message: That's all, folks! from europe +Message: That's all, folks! from news +Message: That's all, folks! from usa +Message: That's all, folks! from weather +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp new file mode 100644 index 0000000000..66d0f5ba52 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/pub-sub + +pubsub_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Publisher.exe localhost 5672 +} + +background "Listening" $cpp/topic_listener +clients pubsub_producer_dotnet +outputs pubsub_producer_dotnet.out "$cpp/topic_listener.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp.in b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp.in new file mode 100644 index 0000000000..64ac27846d --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_cpp.in @@ -0,0 +1,99 @@ +==== pubsub_producer_dotnet.out +==== topic_listener.out | remove_uuid | sort +Declaring queue: europe +Declaring queue: news +Declaring queue: usa +Declaring queue: weather +Listening for messages ... +Message: Message 0 from europe +Message: Message 0 from europe +Message: Message 0 from news +Message: Message 0 from news +Message: Message 0 from usa +Message: Message 0 from usa +Message: Message 0 from weather +Message: Message 0 from weather +Message: Message 1 from europe +Message: Message 1 from europe +Message: Message 1 from news +Message: Message 1 from news +Message: Message 1 from usa +Message: Message 1 from usa +Message: Message 1 from weather +Message: Message 1 from weather +Message: Message 2 from europe +Message: Message 2 from europe +Message: Message 2 from news +Message: Message 2 from news +Message: Message 2 from usa +Message: Message 2 from usa +Message: Message 2 from weather +Message: Message 2 from weather +Message: Message 3 from europe +Message: Message 3 from europe +Message: Message 3 from news +Message: Message 3 from news +Message: Message 3 from usa +Message: Message 3 from usa +Message: Message 3 from weather +Message: Message 3 from weather +Message: Message 4 from europe +Message: Message 4 from europe +Message: Message 4 from news +Message: Message 4 from news +Message: Message 4 from usa +Message: Message 4 from usa +Message: Message 4 from weather +Message: Message 4 from weather +Message: Message 5 from europe +Message: Message 5 from europe +Message: Message 5 from news +Message: Message 5 from news +Message: Message 5 from usa +Message: Message 5 from usa +Message: Message 5 from weather +Message: Message 5 from weather +Message: Message 6 from europe +Message: Message 6 from europe +Message: Message 6 from news +Message: Message 6 from news +Message: Message 6 from usa +Message: Message 6 from usa +Message: Message 6 from weather +Message: Message 6 from weather +Message: Message 7 from europe +Message: Message 7 from europe +Message: Message 7 from news +Message: Message 7 from news +Message: Message 7 from usa +Message: Message 7 from usa +Message: Message 7 from weather +Message: Message 7 from weather +Message: Message 8 from europe +Message: Message 8 from europe +Message: Message 8 from news +Message: Message 8 from news +Message: Message 8 from usa +Message: Message 8 from usa +Message: Message 8 from weather +Message: Message 8 from weather +Message: Message 9 from europe +Message: Message 9 from europe +Message: Message 9 from news +Message: Message 9 from news +Message: Message 9 from usa +Message: Message 9 from usa +Message: Message 9 from weather +Message: Message 9 from weather +Message: That's all, folks! from europe +Message: That's all, folks! from news +Message: That's all, folks! from usa +Message: That's all, folks! from weather +Shutting down listener for europe +Shutting down listener for news +Shutting down listener for usa +Shutting down listener for weather +Subscribing to queue europe +Subscribing to queue news +Subscribing to queue usa +Subscribing to queue weather diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java new file mode 100644 index 0000000000..0b90416a7e --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +topic_listener_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.pubsub.Listener +} + +pubsub_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Publisher.exe localhost 5672 +} + +background "can receive messages" topic_listener_java +clients pubsub_producer_dotnet +outputs pubsub_producer_dotnet.out "topic_listener_java.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java.in b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java.in new file mode 100644 index 0000000000..5db02e64b1 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_java.in @@ -0,0 +1,95 @@ +==== pubsub_producer_dotnet.out +==== topic_listener_java.out | remove_uuid | sort +Listener: Closing connection +Listener: Closing JNDI context +Listener: Creating a Message Subscriber for topic europe +Listener: Creating a Message Subscriber for topic news +Listener: Creating a Message Subscriber for topic usa +Listener: Creating a Message Subscriber for topic weather +Listener: Creating a non-transacted, auto-acknowledged session +Listener: Received message for topic: europe: Message 0 +Listener: Received message for topic: europe: Message 0 +Listener: Received message for topic: europe: Message 1 +Listener: Received message for topic: europe: Message 1 +Listener: Received message for topic: europe: Message 2 +Listener: Received message for topic: europe: Message 2 +Listener: Received message for topic: europe: Message 3 +Listener: Received message for topic: europe: Message 3 +Listener: Received message for topic: europe: Message 4 +Listener: Received message for topic: europe: Message 4 +Listener: Received message for topic: europe: Message 5 +Listener: Received message for topic: europe: Message 5 +Listener: Received message for topic: europe: Message 6 +Listener: Received message for topic: europe: Message 6 +Listener: Received message for topic: europe: Message 7 +Listener: Received message for topic: europe: Message 7 +Listener: Received message for topic: europe: Message 8 +Listener: Received message for topic: europe: Message 8 +Listener: Received message for topic: europe: Message 9 +Listener: Received message for topic: europe: Message 9 +Listener: Received message for topic: news: Message 0 +Listener: Received message for topic: news: Message 0 +Listener: Received message for topic: news: Message 1 +Listener: Received message for topic: news: Message 1 +Listener: Received message for topic: news: Message 2 +Listener: Received message for topic: news: Message 2 +Listener: Received message for topic: news: Message 3 +Listener: Received message for topic: news: Message 3 +Listener: Received message for topic: news: Message 4 +Listener: Received message for topic: news: Message 4 +Listener: Received message for topic: news: Message 5 +Listener: Received message for topic: news: Message 5 +Listener: Received message for topic: news: Message 6 +Listener: Received message for topic: news: Message 6 +Listener: Received message for topic: news: Message 7 +Listener: Received message for topic: news: Message 7 +Listener: Received message for topic: news: Message 8 +Listener: Received message for topic: news: Message 8 +Listener: Received message for topic: news: Message 9 +Listener: Received message for topic: news: Message 9 +Listener: Received message for topic: usa: Message 0 +Listener: Received message for topic: usa: Message 0 +Listener: Received message for topic: usa: Message 1 +Listener: Received message for topic: usa: Message 1 +Listener: Received message for topic: usa: Message 2 +Listener: Received message for topic: usa: Message 2 +Listener: Received message for topic: usa: Message 3 +Listener: Received message for topic: usa: Message 3 +Listener: Received message for topic: usa: Message 4 +Listener: Received message for topic: usa: Message 4 +Listener: Received message for topic: usa: Message 5 +Listener: Received message for topic: usa: Message 5 +Listener: Received message for topic: usa: Message 6 +Listener: Received message for topic: usa: Message 6 +Listener: Received message for topic: usa: Message 7 +Listener: Received message for topic: usa: Message 7 +Listener: Received message for topic: usa: Message 8 +Listener: Received message for topic: usa: Message 8 +Listener: Received message for topic: usa: Message 9 +Listener: Received message for topic: usa: Message 9 +Listener: Received message for topic: weather: Message 0 +Listener: Received message for topic: weather: Message 0 +Listener: Received message for topic: weather: Message 1 +Listener: Received message for topic: weather: Message 1 +Listener: Received message for topic: weather: Message 2 +Listener: Received message for topic: weather: Message 2 +Listener: Received message for topic: weather: Message 3 +Listener: Received message for topic: weather: Message 3 +Listener: Received message for topic: weather: Message 4 +Listener: Received message for topic: weather: Message 4 +Listener: Received message for topic: weather: Message 5 +Listener: Received message for topic: weather: Message 5 +Listener: Received message for topic: weather: Message 6 +Listener: Received message for topic: weather: Message 6 +Listener: Received message for topic: weather: Message 7 +Listener: Received message for topic: weather: Message 7 +Listener: Received message for topic: weather: Message 8 +Listener: Received message for topic: weather: Message 8 +Listener: Received message for topic: weather: Message 9 +Listener: Received message for topic: weather: Message 9 +Listener: Setting an ExceptionListener on the connection as sample uses a TopicSubscriber +Listener: Shutting down listener for europe +Listener: Shutting down listener for news +Listener: Shutting down listener for usa +Listener: Shutting down listener for weather +Listener: Starting connection so TopicSubscriber can receive messages diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python new file mode 100644 index 0000000000..dd62dbcbeb --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/pubsub + +pubsub_producer_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Publisher.exe localhost 5672 +} + +background "Queues created" $py/topic_subscriber.py +clients pubsub_producer_dotnet +outputs ./pubsub_producer_dotnet.out "$py/topic_subscriber.py.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python.in b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python.in new file mode 100644 index 0000000000..130efa2b0e --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_dotnet_python.in @@ -0,0 +1,95 @@ +==== pubsub_producer_dotnet.out +==== topic_subscriber.py.out | remove_uuid | sort +Message 0 +Message 0 +Message 0 +Message 0 +Message 0 +Message 0 +Message 0 +Message 0 +Message 1 +Message 1 +Message 1 +Message 1 +Message 1 +Message 1 +Message 1 +Message 1 +Message 2 +Message 2 +Message 2 +Message 2 +Message 2 +Message 2 +Message 2 +Message 2 +Message 3 +Message 3 +Message 3 +Message 3 +Message 3 +Message 3 +Message 3 +Message 3 +Message 4 +Message 4 +Message 4 +Message 4 +Message 4 +Message 4 +Message 4 +Message 4 +Message 5 +Message 5 +Message 5 +Message 5 +Message 5 +Message 5 +Message 5 +Message 5 +Message 6 +Message 6 +Message 6 +Message 6 +Message 6 +Message 6 +Message 6 +Message 6 +Message 7 +Message 7 +Message 7 +Message 7 +Message 7 +Message 7 +Message 7 +Message 7 +Message 8 +Message 8 +Message 8 +Message 8 +Message 8 +Message 8 +Message 8 +Message 8 +Message 9 +Message 9 +Message 9 +Message 9 +Message 9 +Message 9 +Message 9 +Message 9 +Messages on 'europe' queue: +Messages on 'news' queue: +Messages on 'usa' queue: +Messages on 'weather' queue: +Queues created - please start the topic producer +Subscribing local queue 'local_europe' to europe-' +Subscribing local queue 'local_news' to news-' +Subscribing local queue 'local_usa' to usa-' +Subscribing local queue 'local_weather' to weather-' +That's all, folks! +That's all, folks! +That's all, folks! +That's all, folks! diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet b/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet new file mode 100644 index 0000000000..52069957c5 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +pubsub_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Listener.exe localhost 5672 +} + +topic_publisher_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.pubsub.Publisher +} + +background "Listening for messages ..." pubsub_listener_dotnet +clients topic_publisher_java +outputs topic_publisher_java.out "pubsub_listener_dotnet.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet.in b/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet.in new file mode 100644 index 0000000000..1b37f711c4 --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_java_dotnet.in @@ -0,0 +1,95 @@ +==== topic_publisher_java.out +Publisher: Creating a non-transacted, auto-acknowledged session +Publisher: Creating a TestMessage to send to the topics +Publisher: Creating a Message Publisher for topic usa.weather +Publisher: Sending message 1 +Publisher: Sending message 2 +Publisher: Sending message 3 +Publisher: Sending message 4 +Publisher: Sending message 5 +Publisher: Sending message 6 +Publisher: Creating a Message Publisher for topic usa.news +Publisher: Sending message 1 +Publisher: Sending message 2 +Publisher: Sending message 3 +Publisher: Sending message 4 +Publisher: Sending message 5 +Publisher: Sending message 6 +Publisher: Creating a Message Publisher for topic europe.weather +Publisher: Sending message 1 +Publisher: Sending message 2 +Publisher: Sending message 3 +Publisher: Sending message 4 +Publisher: Sending message 5 +Publisher: Sending message 6 +Publisher: Creating a Message Publisher for topic europe.news +Publisher: Sending message 1 +Publisher: Sending message 2 +Publisher: Sending message 3 +Publisher: Sending message 4 +Publisher: Sending message 5 +Publisher: Sending message 6 +Publisher: Closing connection +Publisher: Closing JNDI context +==== pubsub_listener_dotnet.out | remove_uuid | sort +Declaring queue: europe +Declaring queue: news +Declaring queue: usa +Declaring queue: weather +Listening for messages ... +Message: message 1 from europe +Message: message 1 from europe +Message: message 1 from news +Message: message 1 from news +Message: message 1 from usa +Message: message 1 from usa +Message: message 1 from weather +Message: message 1 from weather +Message: message 2 from europe +Message: message 2 from europe +Message: message 2 from news +Message: message 2 from news +Message: message 2 from usa +Message: message 2 from usa +Message: message 2 from weather +Message: message 2 from weather +Message: message 3 from europe +Message: message 3 from europe +Message: message 3 from news +Message: message 3 from news +Message: message 3 from usa +Message: message 3 from usa +Message: message 3 from weather +Message: message 3 from weather +Message: message 4 from europe +Message: message 4 from europe +Message: message 4 from news +Message: message 4 from news +Message: message 4 from usa +Message: message 4 from usa +Message: message 4 from weather +Message: message 4 from weather +Message: message 5 from europe +Message: message 5 from europe +Message: message 5 from news +Message: message 5 from news +Message: message 5 from usa +Message: message 5 from usa +Message: message 5 from weather +Message: message 5 from weather +Message: message 6 from europe +Message: message 6 from europe +Message: message 6 from news +Message: message 6 from news +Message: message 6 from usa +Message: message 6 from usa +Message: message 6 from weather +Message: message 6 from weather +Message: That's all, folks! from europe +Message: That's all, folks! from news +Message: That's all, folks! from usa +Message: That's all, folks! from weather +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control +Shutting down listener for control diff --git a/qpid/dotnet/client-010/examples/pub-sub/verify_python_dotnet b/qpid/dotnet/client-010/examples/pub-sub/verify_python_dotnet new file mode 100644 index 0000000000..0366e3a9ac --- /dev/null +++ b/qpid/dotnet/client-010/examples/pub-sub/verify_python_dotnet @@ -0,0 +1,11 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/pubsub + +pubsub_listener_dotnet() +{ +mono $DOTNET_EXAMPLES/example-pub-sub-Listener.exe localhost 5672 +} + +background "Listening for messages ..." pubsub_listener_dotnet +clients $py/topic_publisher.py +outputs $py/topic_publisher.py.out "pubsub_listener_dotnet.out | remove_uuid | sort" diff --git a/qpid/dotnet/client-010/examples/request-response/verify b/qpid/dotnet/client-010/examples/request-response/verify new file mode 100644 index 0000000000..1ee4f25c18 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +server_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Server.exe localhost 5672 +} + +client_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Client.exe localhost 5672 +} + +background "Waiting for requests" server_dotnet +clients client_dotnet +outputs ./server_dotnet.out ./client_dotnet.out diff --git a/qpid/dotnet/client-010/examples/request-response/verify.in b/qpid/dotnet/client-010/examples/request-response/verify.in new file mode 100644 index 0000000000..5357591289 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify.in @@ -0,0 +1,16 @@ +==== server_dotnet.out +Waiting for requests +Request: Twas brillig, and the slithy toves +Request: Did gire and gymble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. +Request: That's all, folks! +==== client_dotnet.out +Activating response queue listener for: clientSystem.Byte[] +Waiting for all responses to arrive ... +Response: TWAS BRILLIG, AND THE SLITHY TOVES +Response: DID GIRE AND GYMBLE IN THE WABE. +Response: ALL MIMSY WERE THE BOROGROVES, +Response: AND THE MOME RATHS OUTGRABE. +Shutting down listener for clientSystem.Byte[] +Response: THAT'S ALL, FOLKS! diff --git a/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet b/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet new file mode 100644 index 0000000000..3cc0370ada --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/request-response + +client_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Client.exe localhost 5672 +} + +background "Waiting" $cpp/server +clients client_dotnet +kill %% +outputs ./client_dotnet.out "$cpp/server.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet.in b/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet.in new file mode 100644 index 0000000000..0f4b5341b2 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_cpp_dotnet.in @@ -0,0 +1,17 @@ +==== client_dotnet.out +Activating response queue listener for: clientSystem.Byte[] +Waiting for all responses to arrive ... +Response: TWAS BRILLIG, AND THE SLITHY TOVES +Response: DID GIRE AND GYMBLE IN THE WABE. +Response: ALL MIMSY WERE THE BOROGROVES, +Response: AND THE MOME RATHS OUTGRABE. +Shutting down listener for clientSystem.Byte[] +Response: THAT'S ALL, FOLKS! +==== server.out | remove_uuid +Activating request queue listener for: request +Waiting for requests +Request: Twas brillig, and the slithy toves (clientSystem.Byte[]) +Request: Did gire and gymble in the wabe. (clientSystem.Byte[]) +Request: All mimsy were the borogroves, (clientSystem.Byte[]) +Request: And the mome raths outgrabe. (clientSystem.Byte[]) +Request: That's all, folks! (clientSystem.Byte[]) diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp new file mode 100644 index 0000000000..81b86a0b41 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +cpp=$CPP/request-response + +server_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Server.exe localhost 5672 +} + +background "Waiting for requests" server_dotnet +clients $cpp/client +kill %% +outputs "$cpp/client.out | remove_uuid" ./server_dotnet.out diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp.in b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp.in new file mode 100644 index 0000000000..849fad39c6 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_cpp.in @@ -0,0 +1,18 @@ +==== client.out | remove_uuid +Activating response queue listener for: client +Request: Twas brillig, and the slithy toves +Request: Did gire and gymble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. +Waiting for all responses to arrive ... +Response: TWAS BRILLIG, AND THE SLITHY TOVES +Response: DID GIRE AND GYMBLE IN THE WABE. +Response: ALL MIMSY WERE THE BOROGROVES, +Response: AND THE MOME RATHS OUTGRABE. +Shutting down listener for client +==== server_dotnet.out +Waiting for requests +Request: Twas brillig, and the slithy toves +Request: Did gire and gymble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java new file mode 100644 index 0000000000..56477c623a --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java @@ -0,0 +1,16 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +server_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Server.exe localhost 5672 +} + +client_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.requestResponse.Client +} + +background "Waiting for requests" server_dotnet +clients client_java +kill %% +outputs ./server_dotnet.out "client_java.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java.in b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java.in new file mode 100644 index 0000000000..96e8b8a255 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_java.in @@ -0,0 +1,21 @@ +==== server_dotnet.out +Waiting for requests +Request: Twas brillig, and the slithy toves +Request: Did gire and gymble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. +==== client_java.out | remove_uuid +Client: Setting an ExceptionListener on the connection as sample uses a MessageConsumer +Client: Creating a non-transacted, auto-acknowledged session +Client: Creating a QueueRequestor +Client: Starting connection +Client: Request Content= Twas brillig, and the slithy toves +Client: Response Content= TWAS BRILLIG, AND THE SLITHY TOVES +Client: Request Content= Did gire and gymble in the wabe. +Client: Response Content= DID GIRE AND GYMBLE IN THE WABE. +Client: Request Content= All mimsy were the borogroves, +Client: Response Content= ALL MIMSY WERE THE BOROGROVES, +Client: Request Content= And the mome raths outgrabe. +Client: Response Content= AND THE MOME RATHS OUTGRABE. +Client: Closing connection +Client: Closing JNDI context diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python new file mode 100644 index 0000000000..8ae2f41361 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/request-response + +server_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Server.exe localhost 5672 +} + +background "Waiting for requests" server_dotnet +clients $py/client.py +kill %% +outputs "$py/client.py.out | remove_uuid" "server_dotnet.out | remove_uuid" diff --git a/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python.in b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python.in new file mode 100644 index 0000000000..4455f4e133 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_dotnet_python.in @@ -0,0 +1,17 @@ +==== client.py.out | remove_uuid +Request: Twas brillig, and the slithy toves +Request: Did gyre and gimble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. +Messages on queue: reply_to: +Response: TWAS BRILLIG, AND THE SLITHY TOVES +Response: DID GYRE AND GIMBLE IN THE WABE. +Response: ALL MIMSY WERE THE BOROGROVES, +Response: AND THE MOME RATHS OUTGRABE. +No more messages! +==== server_dotnet.out | remove_uuid +Waiting for requests +Request: Twas brillig, and the slithy toves +Request: Did gyre and gimble in the wabe. +Request: All mimsy were the borogroves, +Request: And the mome raths outgrabe. diff --git a/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet b/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet new file mode 100644 index 0000000000..6950a6a4ec --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet @@ -0,0 +1,15 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify + +server_java() +{ +java -Dlog4j.configuration=file://"$JAVA"/log4j.xml -cp "$CLASSPATH" org.apache.qpid.example.jmsexample.requestResponse.Server +} + +client_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Client.exe localhost 5672 +} +background "can receive messages" server_java +clients client_dotnet +kill %% +outputs "server_java.out | remove_uuid" ./client_dotnet.out diff --git a/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet.in b/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet.in new file mode 100644 index 0000000000..16b1853f37 --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_java_dotnet.in @@ -0,0 +1,36 @@ +==== server_java.out | remove_uuid +Server: Setting an ExceptionListener on the connection as sample uses a MessageConsumer +Server: Creating a non-transacted, auto-acknowledged session +Server: Creating a MessageConsumer +Server: Creating a MessageProducer +Server: Starting connection so MessageConsumer can receive messages +Server: Receiving the message +Server: Activating response queue listener +Server: Response = TWAS BRILLIG, AND THE SLITHY TOVES + +Server: Receiving the message +Server: Activating response queue listener +Server: Response = DID GIRE AND GYMBLE IN THE WABE. + +Server: Receiving the message +Server: Activating response queue listener +Server: Response = ALL MIMSY WERE THE BOROGROVES, + +Server: Receiving the message +Server: Activating response queue listener +Server: Response = AND THE MOME RATHS OUTGRABE. + +Server: Receiving the message +Server: Activating response queue listener +Server: Response = THAT'S ALL, FOLKS! + +Server: Receiving the message +==== client_dotnet.out +Activating response queue listener for: clientSystem.Byte[] +Waiting for all responses to arrive ... +Response: TWAS BRILLIG, AND THE SLITHY TOVES +Response: DID GIRE AND GYMBLE IN THE WABE. +Response: ALL MIMSY WERE THE BOROGROVES, +Response: AND THE MOME RATHS OUTGRABE. +Shutting down listener for clientSystem.Byte[] +Response: THAT'S ALL, FOLKS! diff --git a/qpid/dotnet/client-010/examples/request-response/verify_python_dotnet b/qpid/dotnet/client-010/examples/request-response/verify_python_dotnet new file mode 100644 index 0000000000..f1b5d662bd --- /dev/null +++ b/qpid/dotnet/client-010/examples/request-response/verify_python_dotnet @@ -0,0 +1,12 @@ +# See https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid/bin/verify +py=$PYTHON_EXAMPLES/request-response + +client_dotnet() +{ +mono $DOTNET_EXAMPLES/example-request-response-Client.exe localhost 5672 +} + +background "Request server running" $py/server.py +clients client_dotnet +kill %% +outputs "client_dotnet.out | remove_uuid" "$py/server.py.out | remove_uuid" diff --git a/qpid/dotnet/client-010/test/interop/TestCase.cs b/qpid/dotnet/client-010/test/interop/TestCase.cs index 16a5522726..8877de50cb 100644 --- a/qpid/dotnet/client-010/test/interop/TestCase.cs +++ b/qpid/dotnet/client-010/test/interop/TestCase.cs @@ -43,7 +43,7 @@ namespace test.interop [TestFixtureSetUp]
public void Init()
{
- XmlConfigurator.Configure(new FileInfo(".\\log.xml"));
+ XmlConfigurator.Configure(new FileInfo("/log.xml"));
// populate default properties
_properties.Add("UserName", "guest");
_properties.Add("Password", "guest");
@@ -51,7 +51,7 @@ namespace test.interop _properties.Add("Port", "5672");
_properties.Add("VirtualHost", "test");
//Read the test config file
- XmlTextReader reader = new XmlTextReader(Environment.CurrentDirectory + ".\\test.config");
+ XmlTextReader reader = new XmlTextReader(Environment.CurrentDirectory + "/test.config");
while (reader.Read())
{
// if node type is an element
diff --git a/qpid/java/cpp.noprefetch.testprofile b/qpid/java/cpp.noprefetch.testprofile index 1e4f62dd8c..bbe0934f50 100644 --- a/qpid/java/cpp.noprefetch.testprofile +++ b/qpid/java/cpp.noprefetch.testprofile @@ -1,4 +1,4 @@ broker.version=0-10 -broker=${project.root}/../cpp/src/qpidd --data-dir ${build.data} -t --load-module ${project.root}/../../cppStore/cpp/lib/.libs/libbdbstore.so --auth no -test.excludesfile=${project.root}/010ExcludeList-noPrefetch -max_prefetch=0
\ No newline at end of file +broker=${project.root}/../cpp/src/qpidd --data-dir ${build.data} -t --load-module /home/asimon/Projects/cruisecontrol/projects/bdbstore-cpp/lib/.libs/libbdbstore.so --auth no --no-module-dir +max_prefetch=0 +test.excludesfile=${project.root}/010ExcludeList-noPrefetch
\ No newline at end of file diff --git a/qpid/java/cpp.testprofile b/qpid/java/cpp.testprofile index 68ac8b8be8..605d58cc0c 100644 --- a/qpid/java/cpp.testprofile +++ b/qpid/java/cpp.testprofile @@ -1,3 +1,3 @@ broker.version=0-10 -broker=${project.root}/../cpp/src/qpidd --data-dir ${build.data} -t --auth no -test.excludesfile=${project.root}/010ExcludeList +broker=${project.root}/../cpp/src/qpidd --data-dir ${build.data} -t --load-module /home/asimon/Projects/cruisecontrol/projects/bdbstore-cpp/lib/.libs/libbdbstore.so --auth no --no-module-dir +test.excludesfile=${project.root}/010ExcludeList-store |
