You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Benoit Chesneau <bc...@gmail.com> on 2008/11/03 01:37:41 UTC
feedback openbsd 4.4-current
Just installed latest trunk on openbsd 4.4-current and launch test
suite. After some changes in build (see patches in jira) all browser
tests passed. I will test more with real product later this day. Does
test/runner supposed to work right now ? If it is, find results
attached.
- benoît
results of test/runner.sh
-----------------------------------------
Running 7 tests...
-couch_config_test/0-fun-0- [PASSED]
-couch_config_writer_test/0-fun-0- [PASSED]
-couch_config_writer_test/0-fun-1- [PASSED]
-couch_config_writer_test/0-fun-2- [PASSED]
-couch_config_writer_test/0-fun-3- [PASSED]
-couch_config_writer_test/0-fun-4- [PASSED]
-couch_config_writer_test/0-fun-5- [PASSED]
PASSED: 7, FAILED: 0, SKIPPED: 0
Running CouchDB Test Suite
Host: 127.0.0.1:5984
Version: 0.8.1-incubating
basics
Assertion failed: all.offset == 2
ERROR
Exception raised: [object Object]
Backtrace: undefined
1132ms
conflicts
PASS
1055ms
recreate_doc
PASS
4448ms
copy_move_doc
Assertion failed: xhr.status == 201
ERROR
Exception raised: TypeError: db.open("doc_that_was_copied") has no properties
Backtrace: ()@-:2242
runTestConsole((function (debug) {var db = new
CouchDB("test_suite_db");db.deleteDb();db.createDb();if (debug)
{debugger;}T(db.save({_id:"doc_to_be_copied", v:1}).ok,
"db.save({_id:\"doc_to_be_copied\", v:1}).ok");var xhr =
CouchDB.request("COPY", "/test_suite_db/doc_to_be_copied",
{headers:{Destination:"doc_that_was_copied"}});T(xhr.status == 201,
"xhr.status == 201");T(db.open("doc_that_was_copied").v == 1,
"db.open(\"doc_that_was_copied\").v == 1");var xhr =
CouchDB.request("MOVE", "/test_suite_db/doc_to_be_copied",
{headers:{Destination:"doc_that_was_moved"}});T(xhr.status == 400,
"xhr.status == 400");var rev = db.open("doc_to_be_copied")._rev;var
xhr = CouchDB.request("MOVE", "/test_suite_db/doc_to_be_copied?rev=" +
rev, {headers:{Destination:"doc_that_was_moved"}});T(xhr.status ==
201, "xhr.status == 201");T(db.open("doc_that_was_moved").v == 1,
"db.open(\"doc_that_was_moved\").v ==
1");T(db.open("doc_to_be_copied") == null,
"db.open(\"doc_to_be_copied\") ==
null");T(db.save({_id:"doc_to_be_copied", v:1}).ok,
"db.save({_id:\"doc_to_be_copied\", v:1}).ok");var doc =
db.save({_id:"doc_to_be_overwritten", v:2});T(doc.ok, "doc.ok");var
xhr = CouchDB.request("COPY", "/test_suite_db/doc_to_be_copied",
{headers:{Destination:"doc_to_be_overwritten"}});T(xhr.status == 412,
"xhr.status == 412");var rev =
db.open("doc_to_be_overwritten")._rev;var xhr =
CouchDB.request("COPY", "/test_suite_db/doc_to_be_copied",
{headers:{Destination:"doc_to_be_overwritten?rev=" +
rev}});T(xhr.status == 201, "xhr.status == 201");var over =
db.open("doc_to_be_overwritten");T(rev != over._rev, "rev !=
over._rev");T(over.v == 1, "over.v == 1");}),false)@-:2601
runAllTestsConsole()@-:2591
@-:2629
250ms
uuids
Assertion failed: xhr.status == 200
ERROR
Exception raised: TypeError: result.uuids has no properties
Backtrace: ()@-:2242
runTestConsole((function (debug) {var db = new
CouchDB("test_suite_db");db.deleteDb();db.createDb();if (debug)
{debugger;}var xhr = CouchDB.request("POST", "/_uuids");T(xhr.status
== 200, "xhr.status == 200");var result =
JSON.parse(xhr.responseText);T(result.uuids.length == 1,
"result.uuids.length == 1");var first = result.uuids[0];xhr =
CouchDB.request("POST", "/_uuids?count=1");T(xhr.status == 200,
"xhr.status == 200");result =
JSON.parse(xhr.responseText);T(result.uuids.length == 1,
"result.uuids.length == 1");var second = result.uuids[0];T(first !=
second, "first != second");xhr = CouchDB.request("POST",
"/_uuids?count=1000");T(xhr.status == 200, "xhr.status == 200");result
= JSON.parse(xhr.responseText);T(result.uuids.length == 1000,
"result.uuids.length == 1000");var seen = {};for (var i in
result.uuids) {var id = result.uuids[i];T(seen[id] === undefined,
"seen[id] === undefined");seen[id] = 1;}}),false)@-:2601
runAllTestsConsole()@-:2591
@-:2629
23ms
bulk_docs
ERROR
Exception raised: [object Object]
Backtrace: undefined
25ms
lots_of_docs
ERROR
Exception raised: [object Object]
Backtrace: undefined
32ms
reduce
ERROR
Exception raised: [object Object]
Backtrace: undefined
117ms
reduce_false
ERROR
Exception raised: [object Object]
Backtrace: undefined
18ms
multiple_rows
PASS
913ms
large_docs
ERROR
Exception raised: [object Object]
Backtrace: undefined
16ms
utf8
We skip the utf8 test because it fails due to problems in couch_js.c
Run the in-browser tests to verify utf8.
attachments
Re: feedback openbsd 4.4-current
Posted by Benoit Chesneau <bc...@gmail.com>.
On Mon, Nov 3, 2008 at 3:28 AM, Chris Anderson <jc...@apache.org> wrote:
> On Sun, Nov 2, 2008 at 7:24 PM, Chris Anderson <jc...@apache.org> wrote:
>> On Sun, Nov 2, 2008 at 5:37 PM, Benoit Chesneau <bc...@gmail.com> wrote:
>>
>> test/runner.sh ought to exercise the Javascript test suite from the
>> command line.
>>
>>> Host: 127.0.0.1:5984
>>> Version: 0.8.1-incubating
>>
>
> Sorry I wasn't all that clear: It looks like you are running the test
> suite for CouchDB trunk against CouchDB 0.8.1. Try running it against
> trunk (by starting trunk on 5984) -- all tests should pass.
>
> Chris
>
>
> --
> Chris Anderson
> http://jchris.mfdz.com
>
right I didn't show that. Will try later today. thanks :)
--
- benoît
Re: feedback openbsd 4.4-current
Posted by Chris Anderson <jc...@apache.org>.
On Sun, Nov 2, 2008 at 7:24 PM, Chris Anderson <jc...@apache.org> wrote:
> On Sun, Nov 2, 2008 at 5:37 PM, Benoit Chesneau <bc...@gmail.com> wrote:
>
> test/runner.sh ought to exercise the Javascript test suite from the
> command line.
>
>> Host: 127.0.0.1:5984
>> Version: 0.8.1-incubating
>
Sorry I wasn't all that clear: It looks like you are running the test
suite for CouchDB trunk against CouchDB 0.8.1. Try running it against
trunk (by starting trunk on 5984) -- all tests should pass.
Chris
--
Chris Anderson
http://jchris.mfdz.com
Re: feedback openbsd 4.4-current
Posted by Chris Anderson <jc...@apache.org>.
On Sun, Nov 2, 2008 at 5:37 PM, Benoit Chesneau <bc...@gmail.com> wrote:
test/runner.sh ought to exercise the Javascript test suite from the
command line.
> Host: 127.0.0.1:5984
> Version: 0.8.1-incubating
It runs against whatever CouchDB instance is available on port 5984.
It's be nice if the host was configurable from the command line. It
probably wouldn't be very hard to do that.
I don't know if there's an ideal way to integrate this into the build,
but any reliable way to run tests on distant nodes is important.
--
Chris Anderson
http://jchris.mfdz.com