summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2010-03-19Avoid a possible race condition.Paul Joseph Davis
The old code was relying on a DOWN message being sent before a call to get the current ref counter. Its possible that the request was sent before that happened causing an error. The new code doesn't use messages from the child process and instead uses a monitor to know when the process went down. Then it sends up to 10,000 requests for the current count. Theoretically the only way this will fail is if the DOWN message to the ref_counter is delayed for an extremely long time or dropped entirely. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@925264 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17moar bumpageJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@924527 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17Wait a little longer, this should help slower systems.Jan Lehnardt
Idaelly, this test should be changed to not require the `timer:sleep()` call at all. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@924524 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05efficient attachment replication. Patch by Filipe Manana. Closes COUCHDB-639Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@919469 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05faster LRU test in 070-couch-db.tAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@919447 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04reverting damien's latest commit until we can figure out why it's causing ↵John Christopher Anderson
failures git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@918834 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04Changed process tree shutdown to be synchronous, to eliminate spurious test ↵Damien F. Katz
failures caused by processes not shutdown fast enough or at the wrong time. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@918805 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01add etap test file to MakefileJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917608 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01fix issue COUCHDB-678 applying patch from Filipe Manana.Benoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917553 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26fdmananas patch for filtered replication via COUCHDB-673John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916518 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23Fix the command line JavaScript test runner.Paul Joseph Davis
Thanks to Bob Dionne for the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@915529 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19add etap test for vhostsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@911937 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18capitalizationJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@911559 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18Fixes COUCHDB-640 - Reset views with invalid update seqs.Paul Joseph Davis
If a database is restored to a previous version, and the view files are not updated appropriately they will contain data from the database after the reverted-to-update_seq. This patch checks that the update sequence recorded in a view is less than or equal to the update sequence of the database. Patch is by Filipe Manana. Execellent work once again. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@911544 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29Allow storing attachments in compressed form. Closes COUCHDB-583. Thanks ↵John Christopher Anderson
Filipe Manana git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@904650 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14use the ./configure detected erlc, fixes builds where erlc is not in PATHJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@899306 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12Add utility for verifying hashes.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@898477 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23Follow RFC 2616 closer and use "verb" instead of "method"Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893364 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22move query server to a design-doc based protocol, closes COUCHDB-589John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@893249 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16Provide Content-MD5 header support for attachments.Paul Joseph Davis
Fixes COUCHDB-558. Thanks to Filipe Manana we now have checks for attachment transfer integrity using the Content-MD5 header (or trailer). Use of this integrity check is triggered by specifying a Content-MD5 header in your request with a value that is a base64 encoded md5. For requests that are using a chunked Transfer-Encoding it is also possible to use a trailer so that the Content-MD5 doesn't need to be known before transfer. This works by specifying a header "Trailer: Content-MD5" and then in the final chunk (the one with a size of zero) you can specify a Content-MD5 with exactly the same format as in the request headers. See the ETap test 130-attachments-md5.t for explicit examples of the request messages. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@891077 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15fix query_server_spec.rb for changes in the build processJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@890898 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02removed add_fun optimization for filters, this provides better concurrency ↵John Christopher Anderson
at the cost of some function transfer/eval overhead, which will be optimized in a future patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886334 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02Fixes for make distcheck in the test/bench directory.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@886034 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01fixed paths for query_server_spec.rbJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885994 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Updated the benchmarks to use the new cURL adapter.Paul Joseph Davis
Moved the bench directory into the tests directory. Refactored the benchmarks to reuse more of the code from the JavaScript CLI test runner. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884716 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Remove test/javascript/run for distcheck.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884683 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Forgot to add SCRIPT variable for test/javascript/runPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884679 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Setup JavaScript command line runner.Paul Joseph Davis
All JS tests can now be run from the command line using the cURL adapter. In the future I would like to rework this and provide better TAP output. For now, each test is a single TAP assert. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884675 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Complete refactoring of couch_js.Paul Joseph Davis
In particular, the cURL bindings have been rewritten to be more useful and easily applied in command line scripts. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884672 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Move all C code to src/couchdb/privPaul Joseph Davis
Shuffling bits around to conform to Erlang conventions. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884671 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Fix broken etap test.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835997 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Initial check-in of APIs for multiple/related supported and incremental ↵Damien F. Katz
replication of only changed attachments. Needs more far more testing and to be hooked up the replicator. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835981 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Unverbosifiying after the last successful build.Paul Joseph Davis
Adding -v to the prove command made things work. How awesome is that? git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833967 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Turn on verbose tests to diagnose buildbotPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833966 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Forgot to fix make coverPaul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833956 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Fixes 'make distcheck' to run the test suite.Paul Joseph Davis
Quite a few changes to the build system to handle VPATH builds appropriately as well as make the test suite know about them. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833951 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08Fixed a couple test suite errors.Paul Joseph Davis
001-load.t's plan changed with the batch modules being removed. 121-status-aggregates.t and 041-uuid-gen.t needed their plan counts to be updated from unkown. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833825 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Added batching of multiple updating requests, to improve throughput with ↵Damien F. Katz
many writers. Also removed the couch_batch_save module, now batch requests are simply saved async as immediately, batching with outhr updates if possible. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832550 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02only test list old api for js query serversJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832034 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Fixed the test for couch_stats_aggregator.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829456 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08Confused frontport. All is well.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823019 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08Port Noah's build fixes back to trunk.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823017 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29Fixed a memory usage test.Paul Joseph Davis
Noah reported that forcing garbage collection only worked when allocating more terms. This ups the test number to what worked for him. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819977 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29Add ETap to CouchDB's SVN repository.Paul Joseph Davis
This pulls in ETap as an included dependency. As per directions of the ASF the NOTICE and LICENSE have been updated. Tests have been updated to include etap on Erlang's code path. license.skip was updated for make distcheck. This only affects running the Erlang test suite. Noah is awesome. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819799 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Forgot to update the plan count.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819343 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Fixed 040-util.t test from deadlocking.Paul Joseph Davis
When we started the linked process to kill with couch_util:terminate_linked/1, we weren't waiting for the child process to start. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819341 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Remove crap to test buildbot.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819265 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27A single sub-assert deactivated for buildbot.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819263 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27Add a test for couch_erl_driver.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819254 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21Updated the headers for test config files.Paul Joseph Davis
Set the executable bit for the stats tests. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817277 13f79535-47bb-0310-9956-ffa450edef68