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 \
|
for q in \
|
||||||
'"^anchortermeaudebut"' \
|
'"^anchortermeaudebut"' \
|
||||||
|
'"^anchortermeaudebut"o0' \
|
||||||
|
'"^anchortermeaudebut"o1' \
|
||||||
'"^ anchortermeunpeuplusloin"' \
|
'"^ anchortermeunpeuplusloin"' \
|
||||||
'"^anchortermeunpeuplusloin"o30' \
|
'"^anchortermeunpeuplusloin"o30' \
|
||||||
'"^ anchortermeunpeuplusloin"o30' \
|
'"^ anchortermeunpeuplusloin"o30' \
|
||||||
@ -16,9 +18,15 @@ for q in \
|
|||||||
'"anchortermeunpeumoinsloin$"o30' \
|
'"anchortermeunpeumoinsloin$"o30' \
|
||||||
'"anchortermeunpeumoinsloin$"' \
|
'"anchortermeunpeumoinsloin$"' \
|
||||||
'"anchortermealafin$"' \
|
'"anchortermealafin$"' \
|
||||||
|
'"anchortermealafin$"o0' \
|
||||||
|
'"anchortermealafin$"o1' \
|
||||||
'title:"^anchortitlebegin"' \
|
'title:"^anchortitlebegin"' \
|
||||||
|
'title:"^anchortitlebegin"o0' \
|
||||||
|
'title:"^anchortitlebegin"o1' \
|
||||||
'title:"^anchortitleend"' \
|
'title:"^anchortitleend"' \
|
||||||
'title:"anchortitleend$"' \
|
'title:"anchortitleend$"' \
|
||||||
|
'title:"anchortitleend$"o0' \
|
||||||
|
'title:"anchortitleend$"o1' \
|
||||||
; do
|
; do
|
||||||
echo $q
|
echo $q
|
||||||
recollq -q $q
|
recollq -q $q
|
||||||
|
|||||||
@ -1,34 +1,66 @@
|
|||||||
"^anchortermeaudebut"
|
"^anchortermeaudebut"
|
||||||
1 results
|
1 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/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"
|
"^ anchortermeunpeuplusloin"
|
||||||
0 results
|
0 results
|
||||||
"^anchortermeunpeuplusloin"o30
|
"^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/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
|
"^ 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/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"
|
"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/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"
|
"^anchortermenullepart"
|
||||||
0 results
|
0 results
|
||||||
"anchortermenullepart $"
|
"anchortermenullepart $"
|
||||||
0 results
|
0 results
|
||||||
"anchortermeunpeumoinsloin$"o30
|
"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/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$"
|
"anchortermeunpeumoinsloin$"
|
||||||
0 results
|
0 results
|
||||||
"anchortermealafin$"
|
"anchortermealafin$"
|
||||||
1 results
|
1 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/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"
|
title:"^anchortitlebegin"
|
||||||
1 results
|
1 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/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"
|
title:"^anchortitleend"
|
||||||
0 results
|
0 results
|
||||||
title:"anchortitleend$"
|
title:"anchortitleend$"
|
||||||
1 results
|
1 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/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
|
cd $RECOLL_CONFDIR
|
||||||
sed -i.bak \
|
sed -i.bak \
|
||||||
-e "s!/.*/testrecoll/!$RECOLL_TESTDATA/!g" \
|
|
||||||
recoll.conf
|
|
||||||
sed -i.bak \
|
|
||||||
-e "s!/.*/testrecoll/!$RECOLL_TESTDATA/!g" \
|
-e "s!/.*/testrecoll/!$RECOLL_TESTDATA/!g" \
|
||||||
mimemap
|
mimemap
|
||||||
|
|
||||||
@ -96,9 +93,8 @@ test X"$toptmp" = X && fatal "empty toptmp??"
|
|||||||
test X"$toptmp" = X/ && fatal "toptmp == / ??"
|
test X"$toptmp" = X/ && fatal "toptmp == / ??"
|
||||||
if test -d "$toptmp" ; then
|
if test -d "$toptmp" ; then
|
||||||
rm -rf $toptmp/*
|
rm -rf $toptmp/*
|
||||||
else
|
|
||||||
mkdir $toptmp || fatal cant create temp dir $toptmp
|
|
||||||
fi
|
fi
|
||||||
|
mkdir -p $toptmp || fatal cant create temp dir $toptmp
|
||||||
|
|
||||||
# Unset DISPLAY because xdg-mime may be affected by the desktop
|
# Unset DISPLAY because xdg-mime may be affected by the desktop
|
||||||
# environment on the X server
|
# environment on the X server
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user