mirror of https://github.com/apache/lucene.git
LUCENE-2206: make svn checkout consistent with trunk and make the test pass if the whole checkout was not done
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@900160 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
edf6694156
commit
66dd0ae4b8
|
@ -147,10 +147,9 @@
|
|||
description="Downloads Snowball vocabulary tests">
|
||||
<sequential>
|
||||
<mkdir dir="${vocab.dir}"/>
|
||||
<exec dir="${vocab.dir}" executable="${svn.exe}"
|
||||
failifexecutionfails="false">
|
||||
<exec dir="${vocab.dir}" executable="${svn.exe}" failifexecutionfails="false" failonerror="true">
|
||||
<arg line="checkout -r ${snowball.vocab.rev} ${snowball.vocab.url}"/>
|
||||
</exec>
|
||||
</sequential>
|
||||
</exec>
|
||||
</sequential>
|
||||
</target>
|
||||
</project>
|
||||
|
|
|
@ -43,6 +43,10 @@ public class TestSnowballVocab extends BaseTokenStreamTestCase {
|
|||
* Run all languages against their snowball vocabulary tests.
|
||||
*/
|
||||
public void testStemmers() throws IOException {
|
||||
if (!dataRoot.exists()) {
|
||||
System.err.println("WARN: This test was disabled, as the svn checkout of snowball test files is not supported on your system!");
|
||||
return;
|
||||
}
|
||||
assertCorrectOutput("Danish", "danish");
|
||||
assertCorrectOutput("Dutch", "dutch");
|
||||
assertCorrectOutput("English", "english");
|
||||
|
|
Loading…
Reference in New Issue