added test for excluding text/html

This commit is contained in:
Jean-Francois Dockes 2017-06-08 10:17:42 +02:00
parent 19a4b2a287
commit 9c608ec177
3 changed files with 25 additions and 0 deletions

View File

@ -56,3 +56,7 @@ indexedmimetypes = text/plain
[/home/dockes/projets/fulltext/testrecoll/excltypes]
excludedmimetypes = text/plain
[/home/dockes/projets/fulltext/testrecoll/excludehtml]
indexedmimetypes = application/pdf

View File

@ -0,0 +1,16 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
echo "Looking for content in HTML: should get 0 results"
recollq '"Unity Lens""' dir:excludehtml
echo "Looking for content in PDF: should get 1 result"
recollq INFOMA dir:excludehtml
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult

View File

@ -0,0 +1,5 @@
Looking for content in HTML: should get 0 results
0 results
Looking for content in PDF: should get 1 result
1 results
application/pdf [file:///home/dockes/projets/fulltext/testrecoll/excludehtml/registreElevage.pdf] [Document précédent /] 71290 bytes