diff --git a/tests/html/html.sh b/tests/html/html.sh index 775c262f..ed4504b8 100755 --- a/tests/html/html.sh +++ b/tests/html/html.sh @@ -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 diff --git a/tests/html/html.txt b/tests/html/html.txt index 3c3ec7b0..20083753 100644 --- a/tests/html/html.txt +++ b/tests/html/html.txt @@ -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