summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added non-optional enum { SYNC, ASYNC } parameter to newSession.Alan Conway2008-02-209-17/+17
| | | | | | | Updated API doc in client/SessionBase.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@629503 13f79535-47bb-0310-9956-ffa450edef68
* sys::RefCountedMap - reference-counted weak map of reference-counted objects.Alan Conway2008-02-191-78/+76
| | | | | | | | Ensures objects are atomically deleted and removed from the map. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@629263 13f79535-47bb-0310-9956-ffa450edef68
* STL-style intrsive linked lists, single (ISList) and double (IList)Alan Conway2008-02-193-200/+330
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@629253 13f79535-47bb-0310-9956-ffa450edef68
* Quote all non-printable ASCII characters (not just control characters)Alan Conway2008-02-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@620889 13f79535-47bb-0310-9956-ffa450edef68
* Added a test (currently disabled) that highlights a deadlock in the client ↵Gordon Sim2008-02-111-8/+40
| | | | | | when commands are sent to the broker concurrently with acks (e.g. when the dispatcher thread is running with auto-acking and messages are sent on another thread). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@620481 13f79535-47bb-0310-9956-ffa450edef68
* Quote unprintable control characters in log output.Alan Conway2008-02-071-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@619424 13f79535-47bb-0310-9956-ffa450edef68
* From Ted Ross, https://issues.apache.org/jira/browse/QPID-780Alan Conway2008-02-062-1/+2
| | | | | | | | | | | | | | | | Implementation of --data-dir for qpidd. Additions by myself: - set QPID_DATA_DIR= in test env so existing tests can run with no data dir. - src/Makefile.am and qpidc.spec.in install /var/lib/qpidd directory. NOTE: qpidd with no optoins will now FAIL if it cannot write /var/lib/qpidd. Start it with --data-dir= or set QPID_DATA_DIR= in your environement to run with no data directory. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@619200 13f79535-47bb-0310-9956-ffa450edef68
* Replaced --enable-cluster option with --with-cpg to enable/disable CPG.Alan Conway2008-02-061-1/+1
| | | | | | | | | | make rpmbuild uses --with-cpg, will fail unless openais is installed. Normal builds respect explicit --with/--without, or use CPG if installed when neither is specified. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@619148 13f79535-47bb-0310-9956-ffa450edef68
* Added testSendToSelf for https://bugzilla.redhat.com/show_bug.cgi?id=410551Alan Conway2008-02-052-0/+19
| | | | | | | | | | | | | | | | | | | | M src/tests/ClientSessionTest.cpp Disabled management for BrokerFixture - management singleton assumes only one broker per process, causes shutdown races with fixtures. M src/tests/BrokerFixture.h Made Timer::stop() idempotent M src/qpid/broker/Timer.cpp M src/qpid/broker/Timer.h Added STL-style size() and empty() M src/qpid/sys/BlockingQueue.h M src/qpid/client/LocalQueue.cpp M src/qpid/client/LocalQueue.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@618770 13f79535-47bb-0310-9956-ffa450edef68
* add interval pu/sub options to test many concurrent connectionsCarl C. Trieloff2008-02-041-2/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@618412 13f79535-47bb-0310-9956-ffa450edef68
* Use 'guest' as default uid and password for tests.Gordon Sim2008-02-011-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@617596 13f79535-47bb-0310-9956-ffa450edef68
* Cluster code fixed for changes in codebase.Alan Conway2008-02-0110-330/+90
| | | | | | | | | | | - Using SessionManager::Observer - Better ais test setup, only need to be member of ais group. - Update cluster_client - SessionState holds handler chains. - Cluster frames include next handler ptr. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@617582 13f79535-47bb-0310-9956-ffa450edef68
* Added cluster URL configuration, defaults to all interfaces.Alan Conway2008-02-011-1/+1
| | | | | | | | | | | src/qpid/Plugin.h - added doxygen src/qpid/Url.cpp,.h - cache string rep, op==, istream/ostream ops. src/qpid/broker/Broker.h,.cpp - removed getUrl() src/qpid/cluster/Cluster.h,.cpp - use Url class src/qpid/cluster/ClusterPlugin.cpp - added --url configuration. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@617533 13f79535-47bb-0310-9956-ffa450edef68
* Provide public read-access to IListNode pointers, so frame handlersAlan Conway2008-01-291-0/+4
| | | | | | can use then to find the next frame. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@616396 13f79535-47bb-0310-9956-ffa450edef68
* Deleted unused classes, adjusted files that still mention them.Alan Conway2008-01-297-427/+0
| | | | | | | | | | | D src/qpid/framing/ChannelAdapter.cpp D src/qpid/framing/ChannelAdapter.h D src/qpid/framing/HandlerUpdater.h D src/tests/BrokerChannelTest.cpp D src/tests/MockChannel.h git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@616353 13f79535-47bb-0310-9956-ffa450edef68
* Added disabled test and FIXME note to fix client-side race.Alan Conway2008-01-281-18/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@615968 13f79535-47bb-0310-9956-ffa450edef68
* Convert ClientSessionTest to boost.Alan Conway2008-01-282-109/+101
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@615958 13f79535-47bb-0310-9956-ffa450edef68
* Improved/additional client API tests.Alan Conway2008-01-249-415/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replaced InProcessBroker with a more accurate loopback BrokerFixture. - Added asserts for mutex/condition/thread errors in debug build. - Added client tests for several exception conditions. - Added peer address to log ouput, client/server distinguished by (addr) or [addr] - Fixed various deadlocks & races exposed by the new asserts & tests. File-by-file: New BrokerFixture replaces InProcessBroker D src/tests/InProcessBroker.h M src/tests/BrokerFixture.h M src/tests/SocketProxy.h M src/tests/Makefile.am Made it run a bit faster. M src/tests/quick_perftest Redundant D src/tests/APRBaseTest.cpp Updated tests to use BrokerFixture M src/tests/ClientChannelTest.cpp M src/tests/exception_test.cpp M src/tests/ClientSessionTest.cpp Print thread IDs in decimal, same as GDB. M src/qpid/log/Logger.cpp Assert mutex/condition ops in debug build. M src/qpid/sys/posix/check.h M src/qpid/sys/posix/Mutex.h M src/qpid/sys/posix/Condition.h M src/qpid/sys/posix/Thread.h Added toFd() so SocketProxy can use ::select() M src/qpid/sys/Socket.h M src/qpid/sys/posix/Socket.cpp Fixes for races & deadlocks shown up by new tests & asserts. Mostly shutdown/close issues. M src/qpid/client/ConnectionHandler.h M src/qpid/client/ConnectionImpl.cpp M src/qpid/client/Demux.h M src/qpid/client/SessionCore.cpp M src/qpid/client/ConnectionHandler.cpp M src/qpid/client/Connector.h M src/qpid/client/Demux.cpp M src/qpid/client/Dispatcher.cpp M src/qpid/client/ConnectionImpl.h Logging peer address. M src/qpid/sys/AsynchIOAcceptor.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@615063 13f79535-47bb-0310-9956-ffa450edef68
* qpid/IList.h: Added public T* getNext(), T* getPrev() to IListNode so node ↵Alan Conway2008-01-181-2/+16
| | | | | | | | | subclasses can follow their own links. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@613290 13f79535-47bb-0310-9956-ffa450edef68
* Added a test to measure latency (still needs refining, still evolving)Gordon Sim2008-01-172-0/+376
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612986 13f79535-47bb-0310-9956-ffa450edef68
* Removed erroneous commentGordon Sim2008-01-171-7/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612977 13f79535-47bb-0310-9956-ffa450edef68
* Intrusive list template qpid::IList and unit tests.Alan Conway2008-01-173-12/+256
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612976 13f79535-47bb-0310-9956-ffa450edef68
* Add option to perftest to run for n iterations and print averages of all ↵Gordon Sim2008-01-161-75/+128
| | | | | | reported rates. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612478 13f79535-47bb-0310-9956-ffa450edef68
* Added option for making each published message have unique data (that can be ↵Gordon Sim2008-01-151-5/+26
| | | | | | tracked e.g. for latency measurement) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@612086 13f79535-47bb-0310-9956-ffa450edef68
* Client always collects at least an entire frameset into a single bufferAlan Conway2008-01-101-1/+1
| | | | | | | | | | | | | when possible. Based on patch from Gordon Sim. - Refactor Connector::writebuff, ::send as Connector::Writer - Collect frames up to EOF notifying AIO write. - Encode all available complete framesets into buffers as compactly as possible. - Logging buffer size and frames encoded per write for client and broker. - framing::Buffer added getPosition(), getSize(), default ctor, copy ctor. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@610972 13f79535-47bb-0310-9956-ffa450edef68
* Extra level of exception handling to prevent core dumps.Gordon Sim2008-01-091-2/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@610354 13f79535-47bb-0310-9956-ffa450edef68
* Ensure tx test retains durability of 'transfered' messages.Gordon Sim2008-01-041-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@608948 13f79535-47bb-0310-9956-ffa450edef68
* Additional test for excercising transactional behaviour.Gordon Sim2008-01-042-0/+275
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@608916 13f79535-47bb-0310-9956-ffa450edef68
* Makefile.am: added check-long target to run perftest scenarios.Alan Conway2008-01-047-5/+25
| | | | | | | | | Not run as part of normal check target. Takes about 5 minutes to run on an amd-32 optimized build. For a longer run, increase PERFTEST_MULT in run_perftest. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@608892 13f79535-47bb-0310-9956-ffa450edef68
* Fixed to ensure that the correct exchange is used for different modes. ↵Gordon Sim2007-12-201-7/+8
| | | | | | (Previously the default exchange was being used regardless of mode; if a shared test was run followed by e.g. a fanout test the messages would collect in the shared queue which had no listeners and the memroy buildup skewed test results). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@605888 13f79535-47bb-0310-9956-ffa450edef68
* Changed to use the new session api, made size and max-frame-size configurable.Gordon Sim2007-12-171-74/+83
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604821 13f79535-47bb-0310-9956-ffa450edef68
* Fix sequence numbers and sequence checks in perftest.Alan Conway2007-12-141-17/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604272 13f79535-47bb-0310-9956-ffa450edef68
* Updated tests expectations inline with recent change to default logging outputGordon Sim2007-12-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604244 13f79535-47bb-0310-9956-ffa450edef68
* Allow the queue policy to be set through command line optionsGordon Sim2007-12-141-7/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604170 13f79535-47bb-0310-9956-ffa450edef68
* perftest:Alan Conway2007-12-132-31/+42
| | | | | | | | | | | - changed default message size to 1024 - made --pub-confirm=true the default for accurate publish rates. - added Mbytes/sec rate to results perfdist: takes a single host list for publishr and subscriber clients. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604022 13f79535-47bb-0310-9956-ffa450edef68
* Some fixes relating to message 'staging'.Gordon Sim2007-12-131-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603973 13f79535-47bb-0310-9956-ffa450edef68
* Updated valgrind suppressions for F8.Alan Conway2007-12-121-25/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603724 13f79535-47bb-0310-9956-ffa450edef68
* src/qpid/InlineAllocator.h: Removed cast, causing problems on alpha platform.Alan Conway2007-12-121-0/+1
| | | | | | | src/tests/unit_test.h: Added missing #include <boost/version.hpp> git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603719 13f79535-47bb-0310-9956-ffa450edef68
* src/tests/ClientSessionTest.cpp: Disabled hanging test: testDisconnectResume. Alan Conway2007-12-113-55/+50
| | | | | | | | src/tests/SocketProxy.h: fixed exception handling. src/tests/exception_test.cpp: fixed compile error. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603273 13f79535-47bb-0310-9956-ffa450edef68
* Improved exception message for messages out-of-order.Alan Conway2007-12-101-5/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603047 13f79535-47bb-0310-9956-ffa450edef68
* Added missing trailing \ to Makefile.am - the cause of the cruisecontrol ↵Kim van der Riet2007-12-101-1/+1
| | | | | | build failure git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@603043 13f79535-47bb-0310-9956-ffa450edef68
* src/tests/SocketProxy.h: proxy between local client & server to simulate ↵Alan Conway2007-12-105-42/+108
| | | | | | | | | | | network disconnect. src/qpid/client/Connector.h: remove friend hack for previous flawed disconnect approach. src/tests/BrokerFixture.h: "" src/tests/ClientSessionTest.cpp, exception_test.cpp: use ProxyConnection git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@602980 13f79535-47bb-0310-9956-ffa450edef68
* src/tests/Makefile.am: Add BrokerFixture.h to sourc listsAlan Conway2007-12-071-1/+1
| | | | | | | examples/Makefile.am: Fix typo. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@602239 13f79535-47bb-0310-9956-ffa450edef68
* Summary:Alan Conway2007-12-075-95/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replaced InProcessBroker with BrokerFixture, uses a full loopback broker for more realistic tests. - Extracted non-generated parts of Session_0_10 into SessionBase. - Sundry small fixes. src/tests/BrokerFixture.h - in process broker with loopback connections. - tests can force a disorderly disconnect. src/qpid/client/Connector.h - back door to private members for BrokerFixture. - close() in destructor to avoid leaks. src/qpid/client/ConnectionImpl.h,cpp: - close() in destructor, to fix hang when destroyed without being closed. src/qpid/client/CompletionTracker.h,.cpp: - Fixed race in close/add. src/qpid/client/SessionBase.h,cpp: - Extracted all non-generated code from Session_0_10 into SessionBase - Added sync() src/tests/exception_test.cpp: Converted to boost & BrokerFixture src/tests/ClientChannelTest.cpp, ClientSessionTest.cpp: Use BrokerFixture git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@602182 13f79535-47bb-0310-9956-ffa450edef68
* Removed redundant TimerA, use intrusive_ptr for Timer.Alan Conway2007-12-061-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601803 13f79535-47bb-0310-9956-ffa450edef68
* Extra exception info.Alan Conway2007-12-051-3/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601457 13f79535-47bb-0310-9956-ffa450edef68
* Fixed problems with setting pub/sub hosts.Alan Conway2007-12-051-19/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601381 13f79535-47bb-0310-9956-ffa450edef68
* Fixed errors in usage text.Alan Conway2007-12-051-6/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601352 13f79535-47bb-0310-9956-ffa450edef68
* Updates to topic testGordon Sim2007-12-042-43/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@600962 13f79535-47bb-0310-9956-ffa450edef68
* Add option for durability to topic testGordon Sim2007-12-032-11/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@600655 13f79535-47bb-0310-9956-ffa450edef68