]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fts: Fixed test-fts-language to use TEXTCAT_DATADIR
authorTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2015 14:33:09 +0000 (17:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 20 Apr 2015 14:33:09 +0000 (17:33 +0300)
This may still make too many assumptions about what data exists where.. So
we may need to remove this test from "make check". But for now leave it
there.

src/lib-fts/Makefile.am
src/lib-fts/test-fts-language.c

index df2666979311f7402325907500e9768df8c074f6..87a1025dbef3ef9d81255e37ac1cc8b2da0768d8 100644 (file)
@@ -7,7 +7,6 @@ AM_CPPFLAGS = \
        $(LIBFTS_NORMALIZER_CFLAGS) \
        -DUDHRDIR=\""$(top_srcdir)/src/lib-fts"\" \
        -DDATADIR=\"$(pkgdatadir)\" \
-       -DTEST_TEXTCAT_DIR=\""$(top_srcdir)/ext/libexttextcat/langclass"\" \
        -DTEST_STOPWORDS_DIR=\""$(top_srcdir)/src/lib-fts"\"
 
 stopwordsdir = $(datadir)/${PACKAGE_TARNAME}/stopwords
index bf9de79d0094d8f3342820bdc9c371b44f7f66f6..bef5d25927697b4a0b8a398c329475eac428ca38 100644 (file)
@@ -7,8 +7,8 @@
    As such, they are not really unit test to be coupled with the build. */
 
 const char *const settings[] =
-       {"fts_language_config", TEST_TEXTCAT_DIR"/fpdb.conf",
-        "fts_language_data", TEST_TEXTCAT_DIR"/LM/", NULL};
+       {"fts_language_config", TEXTCAT_DATADIR"/fpdb.conf",
+        "fts_language_data", TEXTCAT_DATADIR"/", NULL};
 
 /* Detect Finnish. fi--utf8 */
 static void test_fts_language_detect_finnish(void)