You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Jan-Pascal van Best <ja...@vanbest.org> on 2007/04/13 15:36:39 UTC

Packaging Lucene 2.1.0 for Debian; found 2 junit errors

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


Re: Packaging Lucene 2.1.0 for Debian; found 2 junit errors

Posted by Jan-Pascal van Best <ja...@vanbest.org>.
markharw00d wrote:
> Sami Siren wrote:
>
>> I also saw those when I did my maven trials. I didn't dig any deeper.
>>   
>
> Fixed the highlighter problem in this report - see change here:
> http://svn.apache.org/viewvc?view=rev&revision=529417.
>
Thanks. Anyone any ideas about that happens in the contrib/spellchecker
junit test?

Cheers

Jan-Pascal


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


Re: Packaging Lucene 2.1.0 for Debian; found 2 junit errors

Posted by markharw00d <ma...@yahoo.co.uk>.
Sami Siren wrote:

> I also saw those when I did my maven trials. I didn't dig any deeper.
>   

Fixed the highlighter problem in this report - see change here: 
http://svn.apache.org/viewvc?view=rev&revision=529417.

Cheers,
Mark


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


Re: Packaging Lucene 2.1.0 for Debian; found 2 junit errors

Posted by Sami Siren <ss...@gmail.com>.
I also saw those when I did my maven trials. I didn't dig any deeper.

--
 Sami Siren

Jan-Pascal van Best wrote:
> 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
> 
> 


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