Merge branch 'anchor-unit-tests' into 'master'
Additional unit tests for anchored searches Closes #94 See merge request medoc92/recoll!6
This commit is contained in:
commit
e9ad7251ef
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user