test: added html field extraction test

This commit is contained in:
Jean-Francois Dockes 2011-06-24 11:08:12 +02:00
parent 4af5b9b88d
commit 36a97cb8aa
2 changed files with 7 additions and 0 deletions

View File

@ -8,7 +8,11 @@ initvariables $0
recollq QMapConstIterator
recollq Qtextedit Widget Provides Powerful Single-Page
recollq '"This is the Mysql reference manual"'
# Tests that the charset spec is correctly recognised inside badhtml.html
recollq -a 'etonne badhtml'
# Tests field extraction/storage and indexing
recollq -m -q "testfield:testfieldvalue" | egrep 'results|^text/html|^testfield ='
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1

View File

@ -7,3 +7,6 @@ text/html [file:///home/dockes/projets/fulltext/testrecoll/html/mysqlmanualSmall
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/mysqlmanual.html] [MySQL 3.23, 4.0, 4.1 Reference Manual] 8136414 bytes
1 results
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/badhtml.html] [bla bla "bad quotes] 236 bytes
1 results
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] [htmlfield.html] 137 bytes
testfield = testfieldvalue