added test for excluding text/html
This commit is contained in:
parent
19a4b2a287
commit
9c608ec177
@ -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
|
||||
|
||||
|
||||
16
tests/excludehtml/excludehtml.sh
Executable file
16
tests/excludehtml/excludehtml.sh
Executable 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
|
||||
5
tests/excludehtml/excludehtml.txt
Normal file
5
tests/excludehtml/excludehtml.txt
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user