From 1f0296a873267058f1809e8869a8d157212122e1 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 28 Feb 2020 11:13:56 +0100 Subject: [PATCH] adjust the test config for the new ocr --- .gitignore | 2 ++ tests/config/recoll.conf | 1 + tests/runtests.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index df439476..5a7526fc 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ .libs .vs \#* +__pycache__ build-*-Debug build-*-Release libtool @@ -90,6 +91,7 @@ tests/config/idxstatus.txt tests/config/index.pid tests/config/missing tests/config/xapiandb +tests/config/ocrcache tests/indexedmimetypes/aspdict.en.rws tests/indexedmimetypes/idxstatus.txt tests/indexedmimetypes/index.pid diff --git a/tests/config/recoll.conf b/tests/config/recoll.conf index 680af438..c58a91ad 100644 --- a/tests/config/recoll.conf +++ b/tests/config/recoll.conf @@ -42,6 +42,7 @@ pdfextrameta = pdf:Producer dc:identifier pdfextrametafix = /home/dockes/projets/fulltext/recoll/tests/config/pdfemf.py [/home/dockes/projets/fulltext/testrecoll/pdf] +ocrprogs = tesseract pdfocr = 1 pdfocrlang = eng diff --git a/tests/runtests.sh b/tests/runtests.sh index 3c6da66e..77be43f6 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -50,6 +50,7 @@ export LC_ALL=en_US.UTF-8 makeindex() { echo "Zeroing Index" rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws + rm -rf $RECOLL_CONFDIR/ocrcache echo "Indexing" recollindex -c $RECOLL_CONFDIR -z }