I also tried 0.8.1, the latest downloadable release. It does show all the tests, but all of them fail:

truss -o /tmp/out2 -f /tmp/couchdb-0.8.1/bin/couchdb 
Apache CouchDB 0.8.1-incubating (LogLevel=info)
Apache CouchDB is starting.

Apache CouchDB has started. Time to relax.
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/couch_tests.html" 304
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/style/layout.css" 304
[info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/script/json2.js" 304
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/script/jquery.js" 304
[info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/script/couch.js" 304
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/script/pprint.js" 304
[info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/script/couch_tests.js" 304
[info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/image/hgrad.gif" 304
[info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/image/run.gif" 304
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/image/path.gif" 304
[info] [<0.55.0>] 127.0.0.1 - - "GET /_utils/image/load.gif" 304
[info] [<0.56.0>] 127.0.0.1 - - "GET /_utils/image/thead.gif" 304
[info] [<0.53.0>] 127.0.0.1 - - "GET /_utils/image/run-mini.gif" 304
[info] [<0.52.0>] 127.0.0.1 - - "GET /_utils/image/running.gif" 304
[info] [<0.54.0>] 127.0.0.1 - - "GET /_utils/image/test_failure.gif" 304

Basics:

  • Exception raised: {"message":"Invalid argument","fileName":"http://localhost:5981/_utils/script/couch_tests.js","lineNumber":1230,"stack":"patchTest((function (debug) {var db = new CouchDB(\"test_suite_db\");db.deleteDb();db.createDb();if (debug) {debugger;}T(db.info().doc_count == 0);var doc = {_id: \"0\", a: 1, b: 1};var result = db.save(doc);T(result.ok == true);T(result.id);T(result.rev);T(doc._id == result.id && doc._rev == result.rev);var id = result.id;T(db.save({_id: \"1\", a: 2, b: 4}).ok);T(db.save({_id: \"2\", a: 3, b: 9}).ok);T(db.save({_id: \"3\", a: 4, b: 16}).ok);T(db.info().doc_count == 4);var results = db.allDocs();var rows = results.rows;for (var i = 0; i < rows.length; i++) {T(rows[i].id >= \"0\" && rows[i].id <= \"4\");}var mapFunction = function (doc) {if (doc.a == 4) {emit(null, doc.b);}};results = db.query(mapFunction);T(results.total_rows == 1 && results.rows[0].value == 16);existingDoc = db.open(id);T(existingDoc.a == 1);existingDoc.a = 4;db.save(existingDoc);results = db.query(mapFunction);T(results.total_rows == 2);T(db.save({a: 3, b: 9}).ok);T(db.save({a: 4, b: 16}).ok);results = db.query(mapFunction);T(results.total_rows == 3);T(db.info().doc_count == 6);var reduceFunction = function (keys, values) {return sum(values);};results = db.query(mapFunction, reduceFunction);T(results.rows[0].value == 33);T(db.deleteDoc(existingDoc).ok);T(db.open(existingDoc._id) == null);results = db.query(mapFunction);T(results.total_rows == 2);T(db.info().doc_count == 5);}))@http://localhost:5981/_utils/script/couch_tests.js:1230\u000arun(0)@http://localhost:5981/_utils/script/couch_tests.js:1274\u000a","name":"Error"}

  • Conflict:
  • Exception raised: {"message":"Invalid argument","fileName":"http://localhost:5981/_utils/script/couch_tests.js","lineNumber":1230,"stack":"patchTest((function (debug) {var db = new CouchDB(\"test_suite_db\");db.deleteDb();db.createDb();if (debug) {debugger;}var doc = {_id: \"foo\", a: 1, b: 1};T(db.save(doc).ok);var doc2 = db.open(doc._id);T(doc._id == doc2._id && doc._rev == doc2._rev);doc.a = 2;doc2.a = 3;T(db.save(doc).ok);try {db.save(doc2);T(\"no save conflict 1\" && false);} catch (e) {T(e.error == \"conflict\");}doc2._rev = undefined;try {db.save(doc2);T(\"no save conflict 2\" && false);} catch (e) {T(e.error == \"conflict\");}T(db.deleteDoc(doc).ok);T(db.save(doc2).ok);}))@http://localhost:5981/_utils/script/couch_tests.js:1230\u000arun(0)@http://localhost:5981/_utils/script/couch_tests.js:1274\u000a","name":"Error"}

  • Truss output is out2.gz.