diff --git a/tests/anchor/anchor.sh b/tests/anchor/anchor.sh index c22d3f3e..e6df44cf 100755 --- a/tests/anchor/anchor.sh +++ b/tests/anchor/anchor.sh @@ -7,6 +7,8 @@ initvariables $0 ( for q in \ '"^anchortermeaudebut"' \ +'"^anchortermeaudebut"o0' \ +'"^anchortermeaudebut"o1' \ '"^ anchortermeunpeuplusloin"' \ '"^anchortermeunpeuplusloin"o30' \ '"^ anchortermeunpeuplusloin"o30' \ @@ -16,9 +18,15 @@ for q in \ '"anchortermeunpeumoinsloin$"o30' \ '"anchortermeunpeumoinsloin$"' \ '"anchortermealafin$"' \ +'"anchortermealafin$"o0' \ +'"anchortermealafin$"o1' \ 'title:"^anchortitlebegin"' \ +'title:"^anchortitlebegin"o0' \ +'title:"^anchortitlebegin"o1' \ 'title:"^anchortitleend"' \ 'title:"anchortitleend$"' \ +'title:"anchortitleend$"o0' \ +'title:"anchortitleend$"o1' \ ; do echo $q recollq -q $q diff --git a/tests/anchor/anchor.txt b/tests/anchor/anchor.txt index 4f17474f..39bb5573 100644 --- a/tests/anchor/anchor.txt +++ b/tests/anchor/anchor.txt @@ -1,34 +1,66 @@ "^anchortermeaudebut" 1 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +"^anchortermeaudebut"o0 +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +"^anchortermeaudebut"o1 +2 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes "^ anchortermeunpeuplusloin" 0 results "^anchortermeunpeuplusloin"o30 -1 results +2 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes "^ anchortermeunpeuplusloin"o30 -1 results +2 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes "anchortermenullepart" -1 results +2 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes "^anchortermenullepart" 0 results "anchortermenullepart $" 0 results "anchortermeunpeumoinsloin$"o30 -1 results +2 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes "anchortermeunpeumoinsloin$" 0 results "anchortermealafin$" 1 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +"anchortermealafin$"o0 +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +"anchortermealafin$"o1 +2 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes title:"^anchortitlebegin" 1 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +title:"^anchortitlebegin"o0 +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +title:"^anchortitlebegin"o1 +2 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes title:"^anchortitleend" 0 results title:"anchortitleend$" 1 results text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +title:"anchortitleend$"o0 +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +title:"anchortitleend$"o1 +2 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor2.html] [anchortitleprefix anchortitlebegin anchortitlemiddle anchortitleend anchortitlepostfix] 1541 bytes diff --git a/tests/runtests.sh b/tests/runtests.sh index a8eaa898..2f7b0c5c 100644 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -22,9 +22,6 @@ rerootResults() cd $RECOLL_CONFDIR sed -i.bak \ - -e "s!/.*/testrecoll/!$RECOLL_TESTDATA/!g" \ - recoll.conf - sed -i.bak \ -e "s!/.*/testrecoll/!$RECOLL_TESTDATA/!g" \ mimemap @@ -96,9 +93,8 @@ test X"$toptmp" = X && fatal "empty toptmp??" test X"$toptmp" = X/ && fatal "toptmp == / ??" if test -d "$toptmp" ; then rm -rf $toptmp/* -else - mkdir $toptmp || fatal cant create temp dir $toptmp fi +mkdir -p $toptmp || fatal cant create temp dir $toptmp # Unset DISPLAY because xdg-mime may be affected by the desktop # environment on the X server