lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From janpas...@vanbest.org (Jan-Pascal van Best)
Subject Packaging Lucene 2.1.0 for Debian; found 2 junit errors
Date Fri, 13 Apr 2007 13:36:39 GMT
Hi all,

I'm busy packaging Lucene 2.1.0 for Debian. When I run "ant test" in
contrib/highlighter and in contrib/spellchecker I get failed unit tests 
(see end of this e-mail). Are these two known issues, or do you think
the may be a problem with either the build environment, or my packaging?

I'm using Sun's java5 jdk, ant 1.6.5, ant-optional 1.6.5, and junit 3.8.1.1.

Any ideas?

Thanks for any help,

Jan-Pascal




    [junit] Testsuite: org.apache.lucene.search.highlight.HighlighterTest
    [junit] Tests run: 26, Failures: 1, Errors: 0, Time elapsed: 3,072 sec

    [junit] ------------- Standard Output ---------------
    [junit] Searching for: kennedy
    [junit]     John <B>Kennedy</B> has been shot
    [junit]     This piece of text refers to <B>Kennedy</B>... to <B>Kennedy</B>
    [junit]      <B>kennedy</B> has been shot
    [junit] Searching for: kennedy
    [junit]     John <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: keneddy^0.14285707 kennedy^0.71428573
    [junit]     John <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit]      to <b>Keneddy</b>
    [junit] Searching for: kennedy
    [junit]     John <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: keneddy kennedy
    [junit]      to <b>Keneddy</b>
    [junit]     John <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: ConstantScore(contents:[kannedy-kznnedy])
    [junit]
    [junit]
    [junit]
    [junit]
    [junit] Searching for: "john kennedy"
    [junit]     <b>John</b> <b>Kennedy</b> has been shot
    [junit] Searching for: spanNear([john, kennedy], 1, true)
    [junit]     <b>John</b> <b>Kennedy</b> has been shot
    [junit] Searching for: filtered(spanNear([john, kennedy], 1, true))->contents:[john-john]
    [junit]     <b>John</b> <b>Kennedy</b> has been shot
    [junit] Searching for: filtered("john kennedy")->contents:[john-john]
    [junit]     <b>John</b> <b>Kennedy</b> has been shot
    [junit] Searching for: john (kennedy)
    [junit]     <b>John</b> <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: jfk kennedy
    [junit]     <b>JFK</b> has been shot
    [junit]     John <b>Kennedy</b> has been shot
    [junit]      refers to <b>Kennedy</b>... to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: kennedy
    [junit]     John <b>Kennedy</b> has been shot
    [junit]     This piece of text refers to <b>Kennedy</b>
    [junit]      <b>kennedy</b> has been shot
    [junit] Searching for: kennedy
    [junit]     John <b>Kennedy</b> has been shot
    [junit]     This piece of text refers to <b>Kennedy</b> at the beginning then
has a longer piece of text that is very
    [junit]      is really here which says <b>kennedy</b> has been shot
    [junit] Searching for: kennedy
    [junit] John <b>Kennedy</b> has been shot
    [junit] This piece of text refers to <b>Kennedy</b> at the beginning then
has a longer piece of text that is very long in the middle and finally ends with anothe
r reference to <b>Kennedy</b>
    [junit] Hello this is a piece of text that is very long and contains too much preamble
and the meat is really here which says <b>kennedy</b> has been shot
    [junit] Searching for: meat
    [junit] Searching with primitive query




    [junit] Searching for: aninvalidquerywhichshouldyieldnoresults
    [junit] Searching for: multi*
    [junit] <b>multiOne</b>
    [junit] <b>multiTwo</b>
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testGetRangeFragments(org.apache.lucene.search.highlight.HighlighterTest):
       FAILED
    [junit] Failed to find correct number of highlights 0 found
    [junit] junit.framework.AssertionFailedError: Failed to find correct number of highlights
0 found
    [junit]     at org.apache.lucene.search.highlight.HighlighterTest.testGetRangeFragments(HighlighterTest.java:137)


    [junit] Test org.apache.lucene.search.highlight.HighlighterTest FAILED

BUILD FAILED


--- and ---

    [junit] Testsuite: org.apache.lucene.search.spell.TestSpellChecker
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 1,234 sec

    [junit] Testcase: testBuild(org.apache.lucene.search.spell.TestSpellChecker):       FAILED
    [junit] expected:<56> but was:<29>
    [junit] junit.framework.AssertionFailedError: expected:<56> but was:<29>
    [junit]     at org.apache.lucene.search.spell.TestSpellChecker.testBuild(TestSpellChecker.java:60)


    [junit] Test org.apache.lucene.search.spell.TestSpellChecker FAILED

BUILD FAILED


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message