summaryrefslogtreecommitdiff
path: root/qpid/cpp/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix for the most disruptive items in QPID-243.Andrew Stitcher2007-04-0249-5900/+0
| | | | | | | | | | | | * All #include lines now use '""' rather than '<>' where appropriate. * #include lines within the qpid project use relative includes so that the same path will work in /usr/include when installed as part of the client libraries. * All the source code has now been rearranged to be under src in a directory analogous to the namespace of the classes in it. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524769 13f79535-47bb-0310-9956-ffa450edef68
* Fixed and improved running selected unit tests. See comment in run-unit-testsAlan Conway2007-03-301-9/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524166 13f79535-47bb-0310-9956-ffa450edef68
* Refactored the MessageStore interface to restrict visibility of broker core ↵Gordon Sim2007-03-306-74/+47
| | | | | | from store implementations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524139 13f79535-47bb-0310-9956-ffa450edef68
* Removed unused and defective AcceptorTest.cppAlan Conway2007-03-301-95/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@524091 13f79535-47bb-0310-9956-ffa450edef68
* Fixed more test memory leaks.Alan Conway2007-03-295-61/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523870 13f79535-47bb-0310-9956-ffa450edef68
* * tests/BrokerChannelTest.cpp: fixed leak in test code.Alan Conway2007-03-292-38/+18
| | | | | | | * tests/.vg-supp: Updated supressions git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523869 13f79535-47bb-0310-9956-ffa450edef68
* * tests/InProcessBroker: Fix embarassing bug in previous mergeAlan Conway2007-03-292-2/+95
| | | | | | | * tests/.vg-supp: Updated supressions - down to only 3 leaks! git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523865 13f79535-47bb-0310-9956-ffa450edef68
* Fixed memory leak: removed Binding and ExchangeBinding.Alan Conway2007-03-291-36/+0
| | | | | | | | | | | | | | These classes unbind a deleted queue from any Exchanges. But Exchanges hold shared_ptr<Queue>, so queues never deleted while the exchange exists. Moreover queue-binding form a shared_ptr cycle causing a leak. Raised QPID-438 for the remaining problem: destroyed queues are never unbound or deleted git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523857 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/.vg-supp (fun): Remove wildcarded suppressions generatedAlan Conway2007-03-293-1592/+36
| | | | | | | | | | | before the dlclose_noop fix, replaced with fully qualified ones. * cpp/tests/InProcessBroker.h: fix memory leak in InputToOutputHandler. * cpp/tests/run-unit-tests (fail): pass test paths to DllPlugInTester git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523846 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/.vg-supp: Removed wildcarded suppressions generatedAlan Conway2007-03-281-3218/+176
| | | | | | | before the dlclose_noop fix, replaced with fully qualified ones. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523489 13f79535-47bb-0310-9956-ffa450edef68
* Missed changes on previous commit.Alan Conway2007-03-282-5/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523474 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/run-unit-tests,setup: use valgrind --log-file rather thanAlan Conway2007-03-285-7/+14
| | | | | | | | | | | redirecting stderr. Redirecting also swallows DllPlugInTester output. * cpp/lib/common/sys/Acceptor.h: getPort() to return uint16_t, not int16t. Note AcceptorTest is not inclued in Makefile.am. I fixed it to compile but it hangs, need to determine if it's a test or an Acceptor bug. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523473 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/setup,run-unit-tests:Alan Conway2007-03-284-680/+172
| | | | | | | | | | | | - make run-unit-tests work directly as ./run-unit-tests as well as via make. - run-unit-tests takes list of tests to run as args or in env UNIT_TESTS. * cpp/tests/.vg-supp: - Fixed bogus symbols produced by --gen-suppressions. See http://article.gmane.org/gmane.comp.debugging.valgrind/5939 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523444 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/tests/BrokerChannelTest.cpp: Fix leak.Alan Conway2007-03-272-2/+2
| | | | | | | | | * cpp/lib/broker/Connection.h: signature fix, pass const& instead of *. * cpp/lib/client/IncomingMessage.cpp: Correct error codes. * cpp/lib/broker/Reference.cpp: Fix TODO. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523085 13f79535-47bb-0310-9956-ffa450edef68
* Removed useless ExceptionTest.cpp.Alan Conway2007-03-272-62/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523067 13f79535-47bb-0310-9956-ffa450edef68
* Fix valgrind on unit tests: missing symbols for dynamically unloaded libs.Alan Conway2007-03-273-3/+37
| | | | | | | Interposed library supresses dlclose so symbols are reported. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@523055 13f79535-47bb-0310-9956-ffa450edef68
* Refactored client::Message to be independent of all Basic class conceptsAlan Conway2007-03-276-30/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and client::IncomingMessage to handle 0-9 style references and appends. * cpp/lib/client/ClientMessage.cpp: Made independent of Basic class. * cpp/lib/client/IncomingMessage.cpp: Refactored to handle references/appends. * cpp/lib/client/BasicMessageChannel.cpp: Refactored to use new IncomingMessage Thread safety fixes: * cpp/lib/client/ResponseHandler.h: Remove stateful functions. * cpp/lib/client/ClientChannel.cpp: use new ResponseHandler interface. Minor cleanup: * cpp/lib/common/framing/BasicHeaderProperties.cpp: use DeliveryMode enum. * cpp/tests/HeaderTest.cpp: use DeliveryMode enum. * cpp/tests/MessageTest.cpp: use DeliveryMode enum. * cpp/lib/common/shared_ptr.h: #include <boost/cast.hpp> for convenience. * cpp/lib/common/sys/ThreadSafeQueue.h: Changed "stop" "shutdown" * cpp/lib/common/sys/ProducerConsumer.h: Changed "stop" "shutdown" * cpp/tests/ClientChannelTest.cpp (TestCase): Removed debug couts. * cpp/tests/setup: valgrind --demangle=yes by default. * cpp/tests/topictest: sleep to hack around startup race. * cpp/lib/broker/BrokerQueue.cpp (configure): Fixed memory leak. Removed/updated FIXME comments in: * cpp/lib/broker/BrokerMessage.cpp: * cpp/lib/broker/BrokerMessageBase.h: * cpp/lib/broker/InMemoryContent.cpp: * cpp/lib/common/framing/MethodContext.h: git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@522956 13f79535-47bb-0310-9956-ffa450edef68
* Removed unused files and #includes.Alan Conway2007-03-211-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520976 13f79535-47bb-0310-9956-ffa450edef68
* Refactored client side for dual-mode Channel supporting either 0-9 Message ↵Alan Conway2007-03-217-44/+90
| | | | | | or 0-8 Basic. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520972 13f79535-47bb-0310-9956-ffa450edef68
* Modifications to allow messages produced by the message class to be ↵Gordon Sim2007-03-211-0/+412
| | | | | | | | | | persisted as well as those from the basic class. Fix to broker initialisation (ensure queues use the correct store). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520924 13f79535-47bb-0310-9956-ffa450edef68
* Renamed cpp-0-9 to cppAlan Conway2007-03-2150-0/+10709
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520706 13f79535-47bb-0310-9956-ffa450edef68
* * cpp: svn removed, will rename cpp-0-9Alan Conway2007-03-2145-7567/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@520705 13f79535-47bb-0310-9956-ffa450edef68
* * python/qpid/testlib.py:Alan Conway2007-03-171-1/+1
| | | | | | | | | | | | | - fix testlib ops to use 0-8 or 0-9 classes as appropriate. - fix bug in arg parsing of specfile. * cpp/tests/run-python-tests: Fix scripting bug that gave a OK build result even if there were python failures. * cpp/gen: svn:ignore all generated source and Makefile. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@519194 13f79535-47bb-0310-9956-ffa450edef68
* Fixed line endingsAndrew Stitcher2007-03-091-42/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@516451 13f79535-47bb-0310-9956-ffa450edef68
* (Patch submitted by Rupert Smith) Small changes to use virtual hosts, merged ↵Robert Greig2007-03-014-45/+45
| | | | | | back in from perftesting_persistent branch. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@513371 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from Jim Meyering, submitted on dev list:Gordon Sim2007-02-141-1/+1
| | | | | | | | * tests/setup: Remove use of libtool's --debug option. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@507458 13f79535-47bb-0310-9956-ffa450edef68
* * qpidc.spec.in: updated to release 3 for RPM.Alan Conway2007-01-251-0/+3
| | | | | | | | | * gen/make-gen-src-mk.sh: fixed problem with makefile generation in a new checkout. * Other Makefile.am: added missing files to maintainer-clean. * Added missing svn-ignores. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@499845 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Jim Meyering (jim@meyering.net) submitted on dev list.Gordon Sim2007-01-235-10/+2599
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instrument all tests so that they are run via valgrind: check for both errors and leaks. * configure.ac: Add new configure options: --enable-valgrind and --disable-valgrind. For now, the latter is the default. * README-dev: Document (and recommend) --enable-valgrind. * tests/.vg-supp: Add many more, from Gordon Sim for FC5. * configure.ac: Check for valgrind. * tests/Makefile.am (TESTS_ENVIRONMENT): Export VALGRIND. * tests/setup: New file. * tests/run-unit-tests: Use new "setup" file. Invoke DllPlugInTester via $vg (aka valgrind). Refer to the source directory using $pwd, since we're now running from a temporary subdirectory. * tests/run-python-tests: Remove traps. That is now done by "setup". [VERBOSE]: Print qpidd --version. Invoke qpidd via $vg and its absolute name. Add a kludgey "sleep 3", because it can take a while for libtool to start valgrind to start qpidd, in the background. Ideally, the python script would simply sleep-0.3-and-retry for a couple seconds, upon failure of the initial connection attempt. * tests/.vg-supp: New file, exempting known leaks on Debian/unstable. Some of these leaks appear to be legitimate. * tests/Makefile.am (EXTRA_DIST): Add .vg-supp and setup. * qpid-autotools-install (usage): Add a missing backslash. Fix "make distcheck" failure. * docs/api/Makefile.am (EXTRA_DIST): Add user.doxygen git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@499049 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-08 Jim Meyering <meyering@redhat.com>Alan Conway2007-01-152-5/+3
| | | | | | | | | | | | | | | Ensure that AccumulatedAck.range is not used uninitialized. * lib/broker/AccumulatedAck.h (AccumulatedAck): Make this a class, rather than a struct. (AccumulatedAck::AccumulatedAck): Add a constructor to require initialization of the "range" member. * lib/broker/BrokerChannel.cpp (Channel) [accumulatedAck]: Initialize. * tests/TxAckTest.cpp (TxAckTest) [acked]: Likewise. * tests/AccumulatedAckTest.cpp (testCovers): Initialize local. (testUpdateAndConsolidate): Likewise. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@496317 13f79535-47bb-0310-9956-ffa450edef68
* Most of remaining version changes for C++. Still need to deal with AMQFrameCarl C. Trieloff2007-01-094-8/+11
| | | | | | | | defualt constructor and do some clean up here and there.. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494540 13f79535-47bb-0310-9956-ffa450edef68
* Multi version part 3. (2 more to come + tests)Carl C. Trieloff2006-12-213-6/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489418 13f79535-47bb-0310-9956-ffa450edef68
* Support for multi version, merge part 1. - can still refactor out dup use ofCarl C. Trieloff2006-12-204-9/+7
| | | | | | | | version object in client and server opperations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489212 13f79535-47bb-0310-9956-ffa450edef68
* Adding files for EventChannel implementation.Alan Conway2006-12-204-0/+355
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489110 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/gen/Makefile.am: fixed generated code dependencies.Alan Conway2006-12-191-1/+2
| | | | | | | | * *Channel,SessionHandlerImpl,FramingTest: added FieldTable argument to consume() to conform to updated XML. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488745 13f79535-47bb-0310-9956-ffa450edef68
* A bit more documentation for the client tests which are currently doubling ↵Gordon Sim2006-12-134-10/+128
| | | | | | as examples. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486797 13f79535-47bb-0310-9956-ffa450edef68
* Added some doxygen comments for the client API.Gordon Sim2006-12-133-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486747 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-11 Alan Conway <aconway@redhat.com>Alan Conway2006-12-121-3/+3
| | | | | | | | | | | * SPECS/qpid-cpp.spec: Draft RPM spec file for C++. Based on initial draft provided by David Lutterkort <dlutter@redhat.com> * cpp Makefiles: Renamed libraries with qpid prefix: libqpidclient etc. * cpp/man/: moved to docs/man/ * docs/api/usr.doxygen: more restricted, user-oriented doc settings. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486207 13f79535-47bb-0310-9956-ffa450edef68
* Allow xid to be associated with publication and acknowledgements.Gordon Sim2006-12-112-16/+42
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@485594 13f79535-47bb-0310-9956-ffa450edef68
* Patch posted to dev listed:Gordon Sim2006-12-113-11/+20
| | | | | | | | | | | | | | | | | | | 2006-12-08 Jim Meyering <meyering@redhat.com> Move each test into a script of its own, as Automake requires. * tests/Makefile.am (TESTS): List test script names here, rather than listing rules as dependents of "check". (EXTRA_DIST): Add $(TESTS). (run-unit-tests, run-python-tests): Remove rules, putting their contents in the following new scripts. * tests/run-unit-tests: New one-line script. * tests/run-python-tests: New script, containing the script from Makefile.am. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@485592 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-08 Jim Meyering <meyering@redhat.com>Carl C. Trieloff2006-12-081-2/+3
| | | | | | | | | | * tests/Makefile.am (run-python-tests): Kill qpidd via a trap. Don't let a failed/interrupted "make check" leave a running qpidd process. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@484719 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-08 Based on a patch by Jim Meyering <meyering@redhat.com>Alan Conway2006-12-081-4/+3
| | | | | | | | * tests/Makefile.am (run-python-tests): Depend on ../src/qpidd. Start a background job that will kill the daemon in 5 minutes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@484694 13f79535-47bb-0310-9956-ffa450edef68
* Some more unit tests.Gordon Sim2006-12-081-15/+200
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483916 13f79535-47bb-0310-9956-ffa450edef68
* New make-dist script and related files. Just a hack for now to build a ↵Steven Shaw2006-12-072-0/+84
| | | | | | binary dev release. Also updated README-dev with correct automake version and note about configuring cppunit git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483638 13f79535-47bb-0310-9956-ffa450edef68
* Added unit test and slightly refactored code.Gordon Sim2006-12-072-0/+90
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483437 13f79535-47bb-0310-9956-ffa450edef68
* Allow non-durable messages to be lazy-loaded. Cleanup of lazy-loaded messages Gordon Sim2006-12-063-46/+56
| | | | | | | | that are never enqueued. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483165 13f79535-47bb-0310-9956-ffa450edef68
* Added new configuration option for staging threshold (size above which messages Gordon Sim2006-12-061-0/+10
| | | | | | | | | will be written to disk as content arrives rather than accumulating that content in memory). Pass this through to all channels and to the store on recovery. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483046 13f79535-47bb-0310-9956-ffa450edef68
* Patch sumbitted to qpid-dev:Gordon Sim2006-12-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-12-05 Jim Meyering <meyering@redhat.com> Improve --help output. Add --version option. * lib/broker/Configuration.cpp: Include <config.h>. (Configuration::Configuration): Use the active voice. Handle --version. (Configuration::usage): Add Usage:... and bug-reporting address. Output short+long options like "-o, --option ...", so that help2man will format them properly. * lib/broker/Configuration.h: (class Configuration) [version, programName]: New members. (parse): Update prototype. (isVersion, setValue): New prototypes. * src/qpidd.cpp: Include <config.h>. (programName): New file-scoped global. (handle_signal, main): Emit diagnostics to stderr. (main): Pass program name to config.parse. (main): Handle new --version option. Also updated ConfigurationTest to use the modified parse() method. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482958 13f79535-47bb-0310-9956-ffa450edef68
* Patch from Andrew Stitcher, sent to qpid-dev list.Gordon Sim2006-12-041-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482254 13f79535-47bb-0310-9956-ffa450edef68
* 2006-12-04 Jim Meyering <jim@meyering.net>Alan Conway2006-12-041-4/+2
| | | | | | | | | | | * configure.ac: Check for cppunit (>= 1.11.4). Set/substitute CPPUNIT_CXXFLAGS. * tests/Makefile.am (extra_libs): Use $(CPPUNIT_LIBS), rather than hard-coding -lcppunit. (AM_CXXFLAGS): Add $(CPPUNIT_CXXFLAGS). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482252 13f79535-47bb-0310-9956-ffa450edef68
* Fixed quoting error in tests/Makefile.am.Alan Conway2006-12-011-2/+1
| | | | | | | More svn:ignore properties. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@481333 13f79535-47bb-0310-9956-ffa450edef68