Please find my inline reply. On 26 January 2015 at 06:56, Olly Betts <olly at survex.com> wrote:> On Sun, Jan 25, 2015 at 06:46:26PM +0500, Saad Ahmed wrote: > > I have been able to successfully build the code. But when I run the > > existing testcases (to verify everthing is working fine), It says 3 out > of > > the six testcases fails. Here is the report of the test cases. > > > Running tests with backend "inmemory"... > > Running test: topercent2...FAIL: apitest > > > Running test './queryparsertest' under eatmydata and valgrind > > Running test: qp_spell1...FAIL: queryparsertest > > > Running test './termgentest' under eatmydata and valgrind > > Running test: tg_spell1...FAIL: termgentest > > Is this with git master (if not, what version of Xapian)? > > No its not with git master. Xapian's version is 1.3.2 (developmentversion).> What platform are you using? >I am using Ubuntu 14.04 LTS.> > These all pass for me on Debian unstable with git master. > > You can get more information about the failure by running the testcases > by hand like so: > > ./runtest ./apitest --verbose topercent2 >This command gives following output " Running test './apitest --verbose topercent2' under eatmydata and valgrind Running tests with backend "none"... Running tests with backend "inmemory"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend inmemory: 0 tests passed, 1 failed. Running tests with backend "glass"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend glass: 0 tests passed, 1 failed. Running tests with backend "chert"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend chert: 0 tests passed, 1 failed. Running tests with backend "multi_glass"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend multi_glass: 0 tests passed, 1 failed. Running tests with backend "multi_chert"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend multi_chert: 0 tests passed, 1 failed. Running tests with backend "remoteprog_glass"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend remoteprog_glass: 0 tests passed, 1 failed. Running tests with backend "remotetcp_glass"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend remotetcp_glass: 0 tests passed, 1 failed. Running tests with backend "remoteprog_chert"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend remoteprog_chert: 0 tests passed, 1 failed. Running tests with backend "remotetcp_chert"... Running test: topercent2... DatabaseOpeningError: Couldn't detect type of database ./apitest backend remotetcp_chert: 0 tests passed, 1 failed. ./apitest total: 0 tests passed, 9 failed. " This shows that "apitest" is unable to find the test database. Am I missing any step?> > Cheers, > Olly >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20150127/15135416/attachment-0002.html>
On Tue, Jan 27, 2015 at 01:49:37AM +0500, Saad Ahmed wrote:> On 26 January 2015 at 06:56, Olly Betts <olly at survex.com> wrote: > > > On Sun, Jan 25, 2015 at 06:46:26PM +0500, Saad Ahmed wrote: > > > I have been able to successfully build the code. But when I run the > > > existing testcases (to verify everthing is working fine), It says 3 out > > of > > > the six testcases fails. Here is the report of the test cases. > > > > > Running tests with backend "inmemory"... > > > Running test: topercent2...FAIL: apitest > > > > > Running test './queryparsertest' under eatmydata and valgrind > > > Running test: qp_spell1...FAIL: queryparsertest > > > > > Running test './termgentest' under eatmydata and valgrind > > > Running test: tg_spell1...FAIL: termgentest > > > > Is this with git master (if not, what version of Xapian)? > > > No its not with git master. Xapian's version is 1.3.2 (development > version).The script which automates most of the release process runs "make distcheck", which runs the testsuite, so these tests didn't fail for me when I made the 1.3.2 release.> > You can get more information about the failure by running the testcases > > by hand like so: > > > > ./runtest ./apitest --verbose topercent2 > > This command gives following output > > " > Running test './apitest --verbose topercent2' under eatmydata and valgrind > Running tests with backend "none"... > Running tests with backend "inmemory"... > Running test: topercent2... DatabaseOpeningError: Couldn't detect type of > databasetopercent2 opens a local disk-based database as well as the one of the backend type requested, so it can check the same results are given. It must be the disk-based database which fails, but I can't see why. I suspect you've ended up with a corrupt cached database, and this exception isn't actually the same as the original problem (if a test fails with an exception, the exception type should be reported even in non-verbose mode, which it wasn't in your original log). Can you run "make remove-cached-databases" in "tests", and then try rerunning "./runtest ./apitest --verbose topercent2"?> This shows that "apitest" is unable to find the test database. Am I missing > any step?For the disk-based backends, the test databases are created on demand by the test harness if a suitable one doesn't exist, so no, you aren't missing a step. Cheers, Olly
Please find my inline reply. On 27 January 2015 at 03:02, Olly Betts <olly at survex.com> wrote:> > The script which automates most of the release process runs "make > distcheck", which runs the testsuite, so these tests didn't fail for me > when I made the 1.3.2 release. > > When I run "make distcheck" in the "build" folder, it gives the sameoutput as given in above log. (i.e. 3 out 6 tests fail)> topercent2 opens a local disk-based database as well as the one of the > backend type requested, so it can check the same results are given. > It must be the disk-based database which fails, but I can't see why. > > I suspect you've ended up with a corrupt cached database, and this > exception isn't actually the same as the original problem (if a test > fails with an exception, the exception type should be reported even > in non-verbose mode, which it wasn't in your original log). > > Can you run "make remove-cached-databases" in "tests", and then try > rerunning "./runtest ./apitest --verbose topercent2"? > > Same output (DatabaseOpeningError) as above when executed "makeremove-cached-databases" before "./runtest ./apitest --verbose topercent2". What else can be the reason for this error? Regards, Saad Ahmed -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20150127/913ea038/attachment-0002.html>