summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* QPID-5306: Improve test wrapper to avoid using getopt for long optionsAndrew Stitcher2013-11-142-5/+41
| | | | | | | Using getopt with long options is a gnu extension and so best avoided for portability reasons. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541764 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5336: Don't hardcode location of bash in shell scriptsAndrew Stitcher2013-11-1454-54/+54
| | | | | | | As bash isn't specified by POSIX its location is variable. Specifically under BSDs it isn't found in /bin/bash. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541763 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5330: Simplify testing for presence of python testing code -Andrew Stitcher2013-11-1218-265/+78
| | | | | | | this makes it much easier not to call the python testing code when it isn't available git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541241 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5275: HA transactions failing in qpid-cluster-benchmarkAlan Conway2013-11-122-23/+62
| | | | | | | | | | | | | | | | | | The test was failing due to incorrect handling of the transaction lifecycle: - Failing to handle the automatic rollback of the empty TX at session close. - Deleting the tx-q before all backups were finished with it. The fixes include - Make tx-q auto-delete, deleted only when the TxReplicators cancel their subscriptions. - Use markInUse/releaseFromUse on the primary to keep the tx-q until the primary is done. - Count TxReplicators for auto-delete (unlike normal QueueReplicators) - Improved error handling and log messages - Handle *incoming* exceptions on a federation link by passing to ErrorListener - QueueReplicator catches incoming not-found and resource-deleted exceptions - close the backup bridge, handle race between subscribe and delete. - Simplify QueueSnapshots, remove need for snapshot map. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541146 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5251: allow policies to be specified that will create topics or queues ↵Gordon Sim2013-11-122-1/+210
| | | | | | on demand if they match the specified pattern git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541059 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5301: support autodeleted exchangesGordon Sim2013-11-123-13/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1541058 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5318: HA tests fail sporadically with "AttributeError: 'NoneType' ↵Alan Conway2013-11-081-2/+3
| | | | | | | | | object has no attribute 'name'" This was due to a race condition where a session was deleted while the QmfAgent was looking it up. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1540171 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5312: make sure page is loaded before attempting to find message in itGordon Sim2013-11-081-0/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1540136 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5304: Alow this change to work with earlier versions of boostAndrew Stitcher2013-11-072-9/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539777 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5308: Allow various bits of the test outputs to be XMLAndrew Stitcher2013-11-073-20/+51
| | | | | | | - This meshes nicely with the Jenkins CI system which can better display tests results generated in XML. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539686 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5306: Python isn't optional in build, so don't need to test for it.Andrew Stitcher2013-11-071-17/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539511 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5306: Improve c++ tests some more:Andrew Stitcher2013-11-0713-569/+96
| | | | | | | | | | | | | | Add options to run_test script: --working-dir - run the test in this directory --build-dir - set the top of the build tree --source-dir - set the top of the source tree --python - run a python test --start-broker - start/stop broker before and after test --broker-options - allow non default broker options Remove a bunch of now obsolete testing related scripts git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539510 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5304: Allow c++ unit tests to run if XML_LIB env var not setAndrew Stitcher2013-11-071-4/+9
| | | | | | | (The tests for the xml exchange will obviously fail, but at least you can run anything else you might have been interested in) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1539505 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5277: remove install directive for qpidtGordon Sim2013-11-041-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5277: removed qpidt as qpid-config now offers similar functionalityGordon Sim2013-11-041-141/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538627 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5284: ensure timestamp is added to the data that is persistedGordon Sim2013-11-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537889 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5283: ensure queue has no consumers before granting exclusive ownershipGordon Sim2013-10-311-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537579 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed reference to non-existent test.Alan Conway2013-10-311-2/+0
| | | | | | Removed test "NAME" from qpid/cpp/src/tests/legacystore/CMakeLists.txt. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537512 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5279: test exclusivity checks in 1.0Gordon Sim2013-10-312-1/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1537497 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: HA transactions block a thread, can deadlock the brokerAlan Conway2013-10-293-24/+42
| | | | | | | | | | | | | | | | | | | | | PrimaryTxObserver::prepare used to block pending responses from each backup. With concurrent transactions this can deadlock the broker: once all worker threads are blocked in prepare, responses from backups cannot be received. This commit generalizes the async completion mechanism for messages to allow async completion of arbitrary commands. It leaves the special-case code for messages undisturbed but adds a second path (starting from SessionState::handleCommand) for async completion of other commands. In particular it implements tx.commit to allow async completion. TxBuffer is now an AsyncCompletion and commitLocal() is split into - startCommit() called by SemanticState::commit() - endCommit() called when the commit command completes TxAccept no longer holds pre-computed ranges, compute fresh each time. - Avoid range iterators going out of date during a delayed commit. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536754 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: Make TxBuffer inherit from AsyncCompletion.Alan Conway2013-10-292-13/+13
| | | | | | Switched from shared_ptr to intrusive_ptr for TxBuffer and DtxBuffer. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536752 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5139: Add unit test for deadlock caused by blocking HA commit.Alan Conway2013-10-292-4/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5260: Significant tidy up of cmake buildAndrew Stitcher2013-10-284-36/+43
| | | | | | | | | | | | | | | | | | | | | * Move to cmake 2.6 as minimum required version (2.4 is extremely long in the tooth now) * Add control over building individual language bindings * Make settings you don't usually want to change advanced so they are hidden by default * Changed to a uniform naming scheme for options: ** Options controlling what to build are all BUILD_ ** Options controlling features of he build are ENABLE_ ** Options controlling internal aspects of the qpid runtime are QPID_ * Respect the BUILD_TESTING option so that we won't build the tests unless it is set (it is by default) * If we don't find the boost_unit_test_framework then don't fail, just don't build the unit tests (this is motivated by one of the Apache Jenkins ubuntu builders which has this set up) * Tidied up some of the detection of external dependencies to make it more idiomatic cmake (but there is more to do here) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1536329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4927: paged queue tests take too long under valgrind, so run them ↵Gordon Sim2013-10-252-8/+15
| | | | | | separately git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535750 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4927: Get cmake testing working with valgrindAndrew Stitcher2013-10-246-230/+104
| | | | | | [also remove unused files] git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535398 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4265: fix broken windows buildGordon Sim2013-10-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4265: test closing of receiver with concurrent fetchGordon Sim2013-10-241-2/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1535355 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP: Copy of work over from branch to trunk. Non-tx works with ↵Kim van der Riet2013-10-221-0/+24
| | | | | | some known bugs, tx not yet operational. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1534736 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5246: update ACL code to recognise self-destruct policyGordon Sim2013-10-221-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1534613 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582, QPID-5215: fix linking errors for clock_gettimeGordon Sim2013-10-151-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532408 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5229: tests for reject and release over 1.0Gordon Sim2013-10-152-1/+66
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532311 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5227: QPID-5230: added tests for redelivered flag on browse and releaseGordon Sim2013-10-151-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532310 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582: Fixed unit legacystore unit test to remove warning under RHEL5Andrew Stitcher2013-10-091-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530681 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5215: Import rest of legacy store tests and utilities from original codeAndrew Stitcher2013-10-0863-39/+12588
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530301 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4582: Get legacystore unit tests workingAndrew Stitcher2013-10-086-120/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1530300 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5115: AMQP 1.0 client support built in to qpidmessaging for all platformsCharles E. Rolke2013-10-044-5/+1
| | | | | | | | | | | This commit disposes of the amqpc library and moves the functions into the qpidmessaging library. Now any client that loads qpidmessaging gets amqp0-10 and amqp1.0 selectable through the connection protocol option. C++ brokers still must load the amqp library to enable 1.0 support. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1529235 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5197: Remove obsolete --cluster-durable/persistLastNode options in C++ ↵Alan Conway2013-10-041-17/+0
| | | | | | and python. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1529198 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5199: take 0-10 header segment into account for message sizeGordon Sim2013-10-033-87/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1528852 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA Fix typo in qpid-cluster-benchmark.Alan Conway2013-09-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526725 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5169: CRAM-MD5, not CRAM-MD; a patch from Ernie AllenJustin Ross2013-09-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526637 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5156: prevent tests for assert functionality with swigged client ↵Gordon Sim2013-09-251-0/+13
| | | | | | failing on RHEL5 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1526166 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5142: require swig client to be explicitly selected for testsGordon Sim2013-09-241-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525969 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5156: add tests for assert functionalityGordon Sim2013-09-242-1/+129
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525859 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5149: truncate over large routing keys when translating from 1.0 to 0-10Gordon Sim2013-09-201-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525043 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4952: Fix swigged python tests which were disabled by previous commitGordon Sim2013-09-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524669 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: added -l USER option to rsynchosts script.Alan Conway2013-09-181-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5143: don't include transport in default url as it overrides any ↵Gordon Sim2013-09-182-2/+2
| | | | | | connection option git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1524506 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: missing includes that are really neededAndrew Stitcher2013-09-164-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1523828 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA fix failure of test_failover_send_receive on slow machines.Alan Conway2013-09-132-2/+2
| | | | | | | | | | At the end of this test, receivers read remaining messages on queues. Previously the test limited the max depth at 1024, but this was too high on some slower machines and caused a timeout. The test now limits the max depth to 50, which seems to work on a range of machines. There's no impact on the effectiveness of the test for failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1523094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4944: HA re-enable test_failover_send_receiveAlan Conway2013-09-123-26/+35
| | | | | | | | | | | | | Appears to have been fixed at this point on trunk, not clear which checkins are responsible. Test ran for 48 hours with no failures. Other minor changes: - Enable test_failover_send_receive - Increase heartbeat interval. - Reduce capacity of senders in failover test to be more aggressive. - Use HaBrokerTest as test base git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1522711 13f79535-47bb-0310-9956-ffa450edef68