summaryrefslogtreecommitdiff
path: root/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Related to QPID-1198: Moved posix platform specific "strerror" code toAndrew Stitcher2008-07-301-1/+1
| | | | | | | platform specific directory git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680920 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1198 (Partial): Add #include <alloca.h> for all uses of ::alloca()Andrew Stitcher2008-07-293-0/+3
| | | | | | | Patches from Manuel Teira. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680829 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1198 (Partial): Added explicit namespaces that the Sun C++ requires ↵Andrew Stitcher2008-07-291-22/+20
| | | | | | | | | | | (that gcc doesn't) Patches from Manuel Teira. It's not clear at this point whether there is a compiler problem with gcc that it does find the symbols in the namespaces or SunCC that it doesn't! git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680827 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1198: (Partial) Fix test shell scripts to work with /bin/shAndrew Stitcher2008-07-293-8/+15
| | | | | | | | | Patches from Manuel Teira. These scripts have #!/bin/sh but they were previously really dependent on bash. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680826 13f79535-47bb-0310-9956-ffa450edef68
* Reduce the size of messages in fanout perftest to keep the queues from ↵Gordon Sim2008-07-251-1/+1
| | | | | | getting too large. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679822 13f79535-47bb-0310-9956-ffa450edef68
* Only reduce count and size maintained for queue plicy when messages are ↵Gordon Sim2008-07-252-6/+6
| | | | | | actually dequeued (i.e. acked). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679805 13f79535-47bb-0310-9956-ffa450edef68
* Fixed bug in SubscriptionManager::get() where flush was issued before ↵Gordon Sim2008-07-251-0/+20
| | | | | | waiting and if message showed up after flush completed but before wait was finished there was no credit (due to flush) to deliver it to the waiting client. Added test for thise case. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679739 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1154, QPID-1155 & QPID-1156: Patches from Steve Huston to fix various ↵Gordon Sim2008-07-251-2/+2
| | | | | | minor compiler errors. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679717 13f79535-47bb-0310-9956-ffa450edef68
* QPID-447: Patch from David Sommerseth merged from r679689.Gordon Sim2008-07-252-8/+36
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679699 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1183: Use the right sizes to insert data inside the message payload ↵Gordon Sim2008-07-231-3/+3
| | | | | | where sizeof(size_t) != sizeof(uint32_t). Patch from Manuel Teira. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679048 13f79535-47bb-0310-9956-ffa450edef68
* Fixes for transactional perftest (merge of r679038 from qpid.0-10)Gordon Sim2008-07-231-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@679045 13f79535-47bb-0310-9956-ffa450edef68
* Enable dequeue for prototype clusterAlan Conway2008-07-171-9/+6
| | | | | | | | | - qpid/broker/SemanticState.cpp: moved doOutput into write idle callback. - qpid/broker/Connection.cpp: make doOutput an intercept point. - qpid/cluster/*: intercept doOutput to serialize output in cluster thread. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@677486 13f79535-47bb-0310-9956-ffa450edef68
* Cluster: shadow connections, fix lifecycle & valgrind issues.Alan Conway2008-07-174-81/+121
| | | | | | | | | - tests/ForkedBroker: improved broker forking, exec full qpidd. - Plugin::addFinalizer - more flexible way to shutdown plugins. - Reworked cluster extension points using boost::function. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@677471 13f79535-47bb-0310-9956-ffa450edef68
* Switched from shared_ptr to intrusive_ptr and RefCounted for Broker.Alan Conway2008-07-152-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@676932 13f79535-47bb-0310-9956-ffa450edef68
* Honour timeout in BlockingQueue::pop(); added test for ↵Gordon Sim2008-07-101-0/+1
| | | | | | | | | SubscriptionManager::get() where no message exists. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675477 13f79535-47bb-0310-9956-ffa450edef68
* Fix signed/unsigned compare errorAlan Conway2008-07-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675146 13f79535-47bb-0310-9956-ffa450edef68
* HandlerChain: plug-in handler chain extension points. Replaces ↵Alan Conway2008-07-081-2/+24
| | | | | | | | | Handler<T>::Chain. Updated Sessoin & Connection handler chains and Cluster. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@675017 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused Serializer code.Alan Conway2008-07-081-157/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674955 13f79535-47bb-0310-9956-ffa450edef68
* Fix packaging error.Alan Conway2008-07-081-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674945 13f79535-47bb-0310-9956-ffa450edef68
* Revert un-necessary Plugin complications. Better solution for plugin ↵Alan Conway2008-07-083-3/+4
| | | | | | extension points coming up... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674915 13f79535-47bb-0310-9956-ffa450edef68
* Removed static Cpg::handlers, fixed ForkedBroker shutdown.Alan Conway2008-07-082-10/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674855 13f79535-47bb-0310-9956-ffa450edef68
* Fix leak in XmlClientSessionTests - was leaking a Session.Alan Conway2008-07-081-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674825 13f79535-47bb-0310-9956-ffa450edef68
* ForkedBroker: child process exits on completion.Alan Conway2008-07-071-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674587 13f79535-47bb-0310-9956-ffa450edef68
* Disabled cluster_test temporarily, it leaks processes.Alan Conway2008-07-041-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674124 13f79535-47bb-0310-9956-ffa450edef68
* Cluster prototype: handles client-initiated commands (not dequeues)Alan Conway2008-07-046-62/+141
| | | | | | | | | | | | | | | | Details - Cluster.cpp: serializes all frames thru cluster (see below) - broker/ConnectionManager: Added handler chain in front of Connection::received. - sys::Fork and ForkWithMessage - abstractions for forking with posix impl. - tests/ForkedBroker.h: test utility to fork a broker process. - broker/SignalHandler: Encapsulated signal handling from qpidd.cpp - Various minor logging & error message improvements to aid debugging. NB: current impl will not scale. It is functional working starting point so we can start testing & profiling to find the right optimizations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674107 13f79535-47bb-0310-9956-ffa450edef68
* Added timeout to SubscriptionManager::get(), LocalQueue::get() and ↵Alan Conway2008-07-013-237/+20
| | | | | | BlockingQueue::get() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673158 13f79535-47bb-0310-9956-ffa450edef68
* Added extra option (fixed time limit in rate mode) to latency test. Patch ↵Gordon Sim2008-07-011-10/+27
| | | | | | from acme@redhat.com. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@673031 13f79535-47bb-0310-9956-ffa450edef68
* Fix exit status when VALIGRIND=Alan Conway2008-06-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@672269 13f79535-47bb-0310-9956-ffa450edef68
* Plugin framework change: single PluginFactory creates per-target Plugin ↵Alan Conway2008-06-264-50/+6
| | | | | | instances. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@672032 13f79535-47bb-0310-9956-ffa450edef68
* Consolidated cluster tests in cluster_test.cppAlan Conway2008-06-268-287/+256
| | | | | | | Improvements to BrokerFixture for testing. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671969 13f79535-47bb-0310-9956-ffa450edef68
* Use run_test to run valgrind for start_broker consistently with other tests.Alan Conway2008-06-263-15/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671916 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1137: don't treat connection as opened if the open never succeedsGordon Sim2008-06-261-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671877 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1147: Avoid usage of 'source' builtin in pure sh scriptsGordon Sim2008-06-261-1/+1
| | | | | | | | Patch from Manuel Teira that replaces "source" builtin with a dot inclusion on run_test script git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671824 13f79535-47bb-0310-9956-ffa450edef68
* Additions to the client API:Alan Conway2008-06-256-23/+69
| | | | | | | | - SubscriptionManager::get(queue) to get a single message from a queue. - Set FlowControl per-subscription. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@671655 13f79535-47bb-0310-9956-ffa450edef68
* Const-correctness fixes in MessageStore.hAlan Conway2008-06-232-4/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@670718 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Manuel Teira: ↵Alan Conway2008-06-204-20/+20
| | | | | | | | | | | | | | https://issues.apache.org/jira/secure/CommentAssignIssue!default.jspa?action=5&id=12398038 - Use standard automake makefiles to build cpp/examples. - Rationalize examples directory structure. Additions to patch: - Fix for VPATH builds. - Fix make distcheck (finally!) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@670066 13f79535-47bb-0310-9956-ffa450edef68
* Bring cluster code up to date.Alan Conway2008-06-182-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@669236 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug that commits after every message. Oops!Gordon Sim2008-06-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@669215 13f79535-47bb-0310-9956-ffa450edef68
* Added option to start topictest scripti n transactional mode (&durable)Gordon Sim2008-06-171-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@668582 13f79535-47bb-0310-9956-ffa450edef68
* Fix test error.Alan Conway2008-06-121-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@667215 13f79535-47bb-0310-9956-ffa450edef68
* Propagate error messages across the Demux between network & user threads.Alan Conway2008-06-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@667205 13f79535-47bb-0310-9956-ffa450edef68
* * make tcp-nodelay option available for all testsGordon Sim2008-06-112-10/+50
| | | | | | | | | | * option for outputting csv from latency test (from lgoncalv@redhat.com) * option for cumulative output from latency test (from lgoncalv@redhat.com) * specify interval in millisecs instead of secs (from acme@redhat.com) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@666610 13f79535-47bb-0310-9956-ffa450edef68
* Updated doxygen comments in qpid/client/*.hAlan Conway2008-06-091-2/+0
| | | | | | | Changed request-response example to use SubscriptionManager like the others. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@665891 13f79535-47bb-0310-9956-ffa450edef68
* Moved from AccumulatedAck to SequenceSet in managing transactional acceptsGordon Sim2008-06-094-106/+20
| | | | | | | | | Added transactional option to perftest Removed clientid from ConnectionSettings as it appears not to be used git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@665890 13f79535-47bb-0310-9956-ffa450edef68
* Uncomment test now that inline allocator is fixed.Gordon Sim2008-06-051-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663742 13f79535-47bb-0310-9956-ffa450edef68
* Fix to makefile and tests (one test temporarily disabled until a fix is found).Gordon Sim2008-06-055-40/+65
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663601 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused classes IList and ISList.Alan Conway2008-06-043-389/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663351 13f79535-47bb-0310-9956-ffa450edef68
* Increased default flush interval to 1MB, send spontaneous known-completed at ↵Alan Conway2008-06-041-0/+37
| | | | | | the flush interval. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663271 13f79535-47bb-0310-9956-ffa450edef68
* Avoid use of valgrind --log-file-exactly flag, removed in valgrind 3.3Alan Conway2008-06-044-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663158 13f79535-47bb-0310-9956-ffa450edef68
* Fixed typo in options.Gordon Sim2008-06-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662701 13f79535-47bb-0310-9956-ffa450edef68