comments and traces
This commit is contained in:
commit
1714d2aad1
1124 changed files with 431281 additions and 0 deletions
16
tests/7zip/7zip.sh
Executable file
16
tests/7zip/7zip.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq '7zr_unique'
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/7zip/7zip.txt
Normal file
2
tests/7zip/7zip.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/7z/7zarchive.7z] [7zarchive.7z] 11 bytes
|
19
tests/Maildir/Maildir.sh
Executable file
19
tests/Maildir/Maildir.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# See how many Maildir files were indexed. All Maildir messages have had
|
||||
# MAILDIR_UNIQUEXXX added at the end of the 'Subject: ' line. Note that
|
||||
# because of the attachments the relationship of file count to result count
|
||||
# is not trivial. We do not use recollq here because any change in the
|
||||
# indexing process is going to change the order of results.
|
||||
|
||||
xadump -d $RECOLL_CONFDIR/xapiandb -t maildir_uniquexxx -F | \
|
||||
grep FreqFor > $mystdout 2> $mystderr
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
1
tests/Maildir/Maildir.txt
Normal file
1
tests/Maildir/Maildir.txt
Normal file
|
@ -0,0 +1 @@
|
|||
FreqFor maildir_uniquexxx : 691
|
14
tests/Maildir1/Maildir1.sh
Executable file
14
tests/Maildir1/Maildir1.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# This is supposed to find an html attachment
|
||||
recollq '"EMI is releasing albums for download"' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/Maildir1/Maildir1.txt
Normal file
2
tests/Maildir1/Maildir1.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/Maildir/a.tager/cur/1134632779.000001.mbox:2,S] [00/05/05 - Mix&Match Meeting in the Zydeco room] 9091 bytes
|
15
tests/abiword/abiword.sh
Executable file
15
tests/abiword/abiword.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
recollq -q '"ceci est le resume 1"'
|
||||
recollq -q '"Managed 50 UNIX computers"'
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/abiword/abiword.txt
Normal file
4
tests/abiword/abiword.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 results
|
||||
application/x-abiword [file:///home/dockes/projets/fulltext/testrecoll/abiword/essai1.abw] [LE TITRE ABIWORD] 10644 bytes
|
||||
1 results
|
||||
application/x-abiword [file:///home/dockes/projets/fulltext/testrecoll/abiword/resume.abw] [resume.abw] 13137 bytes
|
31
tests/anchor/anchor.sh
Executable file
31
tests/anchor/anchor.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
for q in \
|
||||
'"^anchortermeaudebut"' \
|
||||
'"^ anchortermeunpeuplusloin"' \
|
||||
'"^anchortermeunpeuplusloin"o30' \
|
||||
'"^ anchortermeunpeuplusloin"o30' \
|
||||
'"anchortermenullepart"' \
|
||||
'"^anchortermenullepart"' \
|
||||
'"anchortermenullepart $"' \
|
||||
'"anchortermeunpeumoinsloin$"o30' \
|
||||
'"anchortermeunpeumoinsloin$"' \
|
||||
'"anchortermealafin$"' \
|
||||
'title:"^anchortitlebegin"' \
|
||||
'title:"^anchortitleend"' \
|
||||
'title:"anchortitleend$"' \
|
||||
; do
|
||||
echo $q
|
||||
recollq -q $q
|
||||
done
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
34
tests/anchor/anchor.txt
Normal file
34
tests/anchor/anchor.txt
Normal file
|
@ -0,0 +1,34 @@
|
|||
"^anchortermeaudebut"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^ anchortermeunpeuplusloin"
|
||||
0 results
|
||||
"^anchortermeunpeuplusloin"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^ anchortermeunpeuplusloin"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"anchortermenullepart"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"^anchortermenullepart"
|
||||
0 results
|
||||
"anchortermenullepart $"
|
||||
0 results
|
||||
"anchortermeunpeumoinsloin$"o30
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
"anchortermeunpeumoinsloin$"
|
||||
0 results
|
||||
"anchortermealafin$"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 bytes
|
||||
title:"^anchortitlebegin"
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/anchor/tryanchor.html] [anchortitlebegin anchortitlemiddle anchortitleend] 1463 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
|
19
tests/andor/andor.sh
Executable file
19
tests/andor/andor.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
xrun()
|
||||
{
|
||||
echo $*
|
||||
$*
|
||||
}
|
||||
|
||||
(
|
||||
recollq 'andorhuniique Beatles OR Lennon Live OR Unplugged'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
3
tests/andor/andor.txt
Normal file
3
tests/andor/andor.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
14
tests/badsuffs/badsuffs.sh
Executable file
14
tests/badsuffs/badsuffs.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# Data in text files with skipped suffixes should not be indexed
|
||||
recollq Badsuffixes_unique 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
1
tests/badsuffs/badsuffs.txt
Normal file
1
tests/badsuffs/badsuffs.txt
Normal file
|
@ -0,0 +1 @@
|
|||
0 results
|
15
tests/badsuffs1/badsuffs1.sh
Executable file
15
tests/badsuffs1/badsuffs1.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
# File names for files with skipped suffixes should be indexed
|
||||
recollq -S mtime Badsufffilename
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
7
tests/badsuffs1/badsuffs1.txt
Normal file
7
tests/badsuffs1/badsuffs1.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
6 results
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.log.gz] [badsufffilename.log.gz] 19 bytes
|
||||
[file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.md5] [badsufffilename.md5] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tar.bz2] [badsufffilename.tar.bz2] 57 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tar.gz] [badsufffilename.tar.gz] 39 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tbz] [badsufffilename.tbz] 19 bytes
|
||||
application/x-tar [file:///home/dockes/projets/fulltext/testrecoll/badsuffs/badsufffilename.tgz] [badsufffilename.tgz] 19 bytes
|
15
tests/boolean/boolean.sh
Executable file
15
tests/boolean/boolean.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq 'boolean_uniqueterm One OR Two -Three'
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/boolean/boolean.txt
Normal file
4
tests/boolean/boolean.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
3 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/boolean/12.txt] [12.txt] 27 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/boolean/2.txt] [2.txt] 23 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/boolean/1.txt] [1.txt] 23 bytes
|
62
tests/casediac/casediac.sh
Normal file
62
tests/casediac/casediac.sh
Normal file
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh
|
||||
# Case and diacritics sensitivity testing
|
||||
# We use a separate configuration for this.
|
||||
# This file is encoded in UTF-8: accentué
|
||||
|
||||
LANG=en_US.UTF-8
|
||||
export LANG
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
RECOLL_CONFDIR=$topdir/casediac
|
||||
export RECOLL_CONFDIR
|
||||
|
||||
cat > $RECOLL_CONFDIR/recoll.conf <<EOF
|
||||
loglevel = 6
|
||||
logfilename = /tmp/logrcltst
|
||||
|
||||
daemloglevel = 6
|
||||
daemlogfilename = /tmp/rclmontrace
|
||||
|
||||
indexStripChars = 0
|
||||
|
||||
topdirs = $tstdata/casediac
|
||||
indexstemminglanguages = french
|
||||
|
||||
EOF
|
||||
|
||||
recollindex -z
|
||||
|
||||
(
|
||||
set -x
|
||||
# Diac-sensitive search for existing term
|
||||
recollq -s french éviter
|
||||
# Succeeds because of default autodiacsens = false
|
||||
recollq -s french èviter
|
||||
# Diac-sensitive searches for non-existing term
|
||||
recollq -s french '"èviter"D'
|
||||
recollq -s french '"eviter"D'
|
||||
# Diac-unsensitive search
|
||||
recollq -s french eviter
|
||||
# Search for stem-existing term (has to be unsensitive)
|
||||
recollq -s french evite
|
||||
# Search for stem-existing term with disabled stemming
|
||||
recollq -s french Evite
|
||||
# Case-sensitive, existing and non existing
|
||||
recollq -s french MAJUSCULESXX
|
||||
recollq -s french MAjUSCULESXX
|
||||
# Case-unsensitive
|
||||
recollq -s french majusculesxx
|
||||
# Case-unsensitive
|
||||
recollq -s french Majusculesxx
|
||||
# Case sensitive, term does not exist
|
||||
recollq -s french '"Majusculesxx"C'
|
||||
|
||||
) 2>&1 | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -u -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
checkresult
|
||||
|
33
tests/casediac/casediac.txt
Normal file
33
tests/casediac/casediac.txt
Normal file
|
@ -0,0 +1,33 @@
|
|||
+ recollq -s french éviter
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french èviter
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french "èviter"D
|
||||
0 results
|
||||
+ recollq -s french "eviter"D
|
||||
0 results
|
||||
+ recollq -s french eviter
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french evite
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french Evite
|
||||
0 results
|
||||
+ recollq -s french MAJUSCULESXX
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french MAjUSCULESXX
|
||||
0 results
|
||||
+ recollq -s french majusculesxx
|
||||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile1.html] [testfile1.html] 132 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french Majusculesxx
|
||||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile1.html] [testfile1.html] 132 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/casediac/testfile.html] [testfile.html] 140 bytes
|
||||
+ recollq -s french "Majusculesxx"C
|
||||
0 results
|
19
tests/chm/chm.sh
Executable file
19
tests/chm/chm.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq '"nokia ovi suite" wmdrm "windows media player version 11"'
|
||||
recollq '"pour superposer mixer des fichiers son"'
|
||||
recollq '"Django comes with a user authentication system"'
|
||||
recollq '"establishment of a project cost accounting system of ledgers"'
|
||||
# xxxCriticalDrugTherapy has encoded internal urls.
|
||||
recollq '"Cocaine-induced ACS"'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
11
tests/chm/chm.txt
Normal file
11
tests/chm/chm.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Nokia_Nseries_Help_jpn.chm] [デジタル著作権管理(DRM)] 2948 bytes
|
||||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/soundrec.chm] [Superposer (mixer) des fichiers son] 2279 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/zippedsoundrec.zip] [Superposer (mixer) des fichiers son] 2279 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Django-1.1a1-r9905.chm] [User authentication in Django] 115179 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/PMGlossary.chm] [Project Management Glossary: P09] 64703 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/2006Susla-handbookCriticalCareDrugTherapy.CHM] [Ovid: Handbook of Critical Care Drug Therapy] 124329 bytes
|
24
tests/cjk/cjk.sh
Executable file
24
tests/cjk/cjk.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# We need an UTF-8 locale here for recollq arg transcoding
|
||||
LANG=en_US.UTF-8
|
||||
export LANG
|
||||
|
||||
# The following tests have multiple results and the order keeps
|
||||
# changing (relevance changes). Use sort to keep it quiet
|
||||
|
||||
(
|
||||
|
||||
recollq 'keyword:ckjtsthuniique まず' |sort
|
||||
recollq 'keyword:ckjtsthuniique ます' |sort
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
checkresult
|
9
tests/cjk/cjk.txt
Normal file
9
tests/cjk/cjk.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
3 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/cjk/mbox] [Re: recoll sidux and -ja] 6773 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/cjk/japanese.html] [japanese.html] 1403 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/cjk/mazu.html] [mazu.html] 260 bytes
|
||||
4 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/cjk/mbox] [Re: recoll sidux and -ja] 6773 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/cjk/japanese.html] [japanese.html] 1403 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/cjk/masu.html] [masu.html] 215 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/cjk/term-konsole-ja.htm] [sidux Manuals - The Terminal or Konsole] 34269 bytes
|
16
tests/compressed/compressed.sh
Executable file
16
tests/compressed/compressed.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq ASPCSPCCONTENT
|
||||
recollq BSPCSPCCONTENT
|
||||
recollq CSPCSPCCONTENT
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/compressed/compressed.txt
Normal file
6
tests/compressed/compressed.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/compressed/a b.txt.gz] [a b.txt.gz] 15 bytes
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/compressed/b b.txt.bz2] [b b.txt.bz2] 15 bytes
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/compressed/nosuff] [nosuff] 15 bytes
|
4
tests/config/fields
Normal file
4
tests/config/fields
Normal file
|
@ -0,0 +1,4 @@
|
|||
[prefixes]
|
||||
testfield = TSTFLD
|
||||
[stored]
|
||||
testfield=
|
11
tests/config/mimeconf
Normal file
11
tests/config/mimeconf
Normal file
|
@ -0,0 +1,11 @@
|
|||
# The system-wide configuration files for recoll are located in:
|
||||
# /usr/local/share/recoll/examples
|
||||
# The default configuration files are commented, you should take a look
|
||||
# at them for an explanation of what can be set (you could also take a look
|
||||
# at the manual instead).
|
||||
# Values set in this file will override the system-wide values for the file
|
||||
# with the same name in the central directory. The syntax for setting
|
||||
# values is identical.
|
||||
|
||||
[index]
|
||||
application/x-tar = execm rcltar
|
44
tests/config/mimemap
Normal file
44
tests/config/mimemap
Normal file
|
@ -0,0 +1,44 @@
|
|||
# The system-wide configuration files for recoll are located in:
|
||||
# /usr/local/share/recoll/examples
|
||||
# The default configuration files are commented, you should take a look
|
||||
# at them for an explanation of what can be set (you could also take a look
|
||||
# at the manual instead).
|
||||
# Values set in this file will override the system-wide values for the file
|
||||
# with the same name in the central directory. The syntax for setting
|
||||
# values is identical.
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/okular-notes]
|
||||
.xml = application/x-okular-notes
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/man]
|
||||
.0p = text/x-man
|
||||
.1 = text/x-man
|
||||
.1m = text/x-man
|
||||
.1p = text/x-man
|
||||
.1ssl = text/x-man
|
||||
.1x = text/x-man
|
||||
.2 = text/x-man
|
||||
.3 = text/x-man
|
||||
.3curses = text/x-man
|
||||
.3form = text/x-man
|
||||
.3gl = text/x-man
|
||||
.3menu = text/x-man
|
||||
.3ncurses = text/x-man
|
||||
.3p = text/x-man
|
||||
.3pm = text/x-man
|
||||
.3ssl = text/x-man
|
||||
.3tiff = text/x-man
|
||||
.3x = text/x-man
|
||||
.4 = text/x-man
|
||||
.5 = text/x-man
|
||||
.5ssl = text/x-man
|
||||
.6 = text/x-man
|
||||
.6x = text/x-man
|
||||
.7 = text/x-man
|
||||
.7ssl = text/x-man
|
||||
.8 = text/x-man
|
||||
.9 = text/x-man
|
||||
.n = text/x-man
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/purple]
|
||||
.txt = text/x-purple-log
|
3
tests/config/mimeview
Normal file
3
tests/config/mimeview
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
[view]
|
||||
application/pdf = xpdf %f
|
48
tests/config/recoll.conf
Normal file
48
tests/config/recoll.conf
Normal file
|
@ -0,0 +1,48 @@
|
|||
loglevel = 6
|
||||
logfilename = /tmp/logrcltst
|
||||
|
||||
daemloglevel = 6
|
||||
daemlogfilename = /tmp/rclmontrace
|
||||
|
||||
systemfilecommand = xdg-mime query filetype
|
||||
|
||||
indexStripChars = 1
|
||||
detectxattronly = 1
|
||||
|
||||
topdirs = /home/dockes/projets/fulltext/testrecoll/
|
||||
|
||||
# Comics_12 causes rclppt to loop. We keep it around for general testing
|
||||
# but it takes too much time when running the test-set
|
||||
skippedPaths = \
|
||||
/home/dockes/projets/fulltext/testrecoll/.hg \
|
||||
/home/dockes/projets/fulltext/testrecoll/skipped/real* \
|
||||
/home/dockes/projets/fulltext/testrecoll/config \
|
||||
/home/dockes/projets/fulltext/testrecoll/ppt/Comics_12.pps
|
||||
daemSkippedPaths = \
|
||||
/home/dockes/projets/fulltext/testrecoll/.hg \
|
||||
/home/dockes/projets/fulltext/testrecoll/skipped/real* \
|
||||
/home/dockes/projets/fulltext/testrecoll/config
|
||||
|
||||
unac_except_trans = åå Åå ää Ää öö Öö üü Üü ßss œoe Œoe æae ÆAE fifi flfl
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/utf8]
|
||||
defaultcharset = utf-8
|
||||
[/home/dockes/projets/fulltext/testrecoll/ru_RU.KOI8-R]
|
||||
defaultcharset = KOI8-R
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/info]
|
||||
localfields = rclaptg=gnuinfo
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/mail/thunderbird]
|
||||
mhmboxquirks = tbird
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/cjk]
|
||||
localfields= ; keyword = ckjtsthuniique; blabla= "some string"
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/idxtypes]
|
||||
indexedmimetypes = text/plain
|
||||
|
||||
[/home/dockes/projets/fulltext/testrecoll/excltypes]
|
||||
excludedmimetypes = text/plain
|
||||
|
||||
|
24
tests/dates/dates.sh
Executable file
24
tests/dates/dates.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
# 2nd one result
|
||||
|
||||
(
|
||||
# no results because of the negative clause
|
||||
recollq date:/2009 -1 datetest
|
||||
# one result: the 2008 file
|
||||
recollq date:/2009 datetest
|
||||
# one result: 2008 file
|
||||
recollq date:2007-01-01/2010-02-09 datetest
|
||||
# 2 results : files from 10 and 11 march 2010
|
||||
recollq -S mtime date:2010-03-10/P10D datetest
|
||||
# 0 result: no such term
|
||||
recollq date:2010-03-10/P10D datetestnotermsmatch
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
9
tests/dates/dates.txt
Normal file
9
tests/dates/dates.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
0 results
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dates/datetest1.txt] [datetest1.txt] 11 bytes
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dates/datetest1.txt] [datetest1.txt] 11 bytes
|
||||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dates/datetest3.txt] [datetest3.txt] 11 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dates/datetest4.txt] [datetest4.txt] 11 bytes
|
||||
0 results
|
24
tests/delete/delete.sh
Executable file
24
tests/delete/delete.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
tstfile=${tstdata}/delete/tobedeleted.txt
|
||||
|
||||
# Create file to be deleted, index, query
|
||||
echo "DeletedFileUnique" > $tstfile
|
||||
recollindex >> $mystderr 2>&1
|
||||
recollq DeletedFileUnique 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
# Delete file and query again
|
||||
rm -f ${tstdata}/delete/tobedeleted.txt
|
||||
recollindex >> $mystderr 2>&1
|
||||
recollq DeletedFileUnique 2>> $mystderr |
|
||||
egrep -v '^Recoll query: ' >> $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
3
tests/delete/delete.txt
Normal file
3
tests/delete/delete.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/delete/tobedeleted.txt] [tobedeleted.txt] 18 bytes
|
||||
0 results
|
14
tests/dia/dia.sh
Executable file
14
tests/dia/dia.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
recollq DEPARTMENT NumberOfEmployees
|
||||
recollq Within5Min WaterLevel KeptBelow
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/dia/dia.txt
Normal file
4
tests/dia/dia.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 results
|
||||
application/x-dia-diagram [file:///home/dockes/projets/fulltext/testrecoll/dia/ER-demo.dia] [ER-demo.dia] 60803 bytes
|
||||
1 results
|
||||
application/x-dia-diagram [file:///home/dockes/projets/fulltext/testrecoll/dia/Istar.dia] [Istar.dia] 3537 bytes
|
17
tests/dir/dir.sh
Executable file
17
tests/dir/dir.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
# Only
|
||||
recollq filename:testdirfile dir:testrecoll/dir/d1 OR \
|
||||
dir:testrecoll/dir/d2 -dir:d2
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/dir/dir.txt
Normal file
2
tests/dir/dir.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dir/d1/testdirfile.txt] [testdirfile.txt] 1 bytes
|
14
tests/dirwithblanks/dirwithblanks.sh
Executable file
14
tests/dirwithblanks/dirwithblanks.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
(
|
||||
recollq DirWithBlanksUnique
|
||||
recollq DirWithBlanksUnique dir:\"$tstdata/"dir with blanks"\"
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/dirwithblanks/dirwithblanks.txt
Normal file
4
tests/dirwithblanks/dirwithblanks.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dir with blanks/dwb.txt] [dwb.txt] 20 bytes
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/dir with blanks/dwb.txt] [dwb.txt] 20 bytes
|
13
tests/djvu/djvu.sh
Executable file
13
tests/djvu/djvu.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq aharonov algorithm neural 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/djvu/djvu.txt
Normal file
2
tests/djvu/djvu.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
image/vnd.djvu [file:///home/dockes/projets/fulltext/testrecoll/djvu/Aharonov-BarkiMeilijsonRuppin.djvu] [Who Does What? A Novel Algorithm to Determine Function Localization] 74911 bytes
|
13
tests/dvi/dvi.sh
Executable file
13
tests/dvi/dvi.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq 'krisrose' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/dvi/dvi.txt
Normal file
2
tests/dvi/dvi.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
application/x-dvi [file:///home/dockes/projets/fulltext/testrecoll/dvi/xyguide.dvi] [xyguide.dvi] 313720 bytes
|
14
tests/embed/embed.sh
Executable file
14
tests/embed/embed.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq -S url -q xing dir:embed
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/embed/embed.txt
Normal file
2
tests/embed/embed.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
application/msword [file:///home/dockes/projets/fulltext/testrecoll/embed/thunderbirdlocalfolders.zip] [xingfx1.doc] 24576 bytes
|
14
tests/empty/empty.sh
Executable file
14
tests/empty/empty.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# check indexing of an empty directory name
|
||||
recollq EmptyUniqueTerm 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/empty/empty.txt
Normal file
2
tests/empty/empty.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
inode/directory [file:///home/dockes/projets/fulltext/testrecoll/emptyUniqueTerm] [emptyUniqueTerm] 4096 bytes
|
16
tests/epub/epub.sh
Executable file
16
tests/epub/epub.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq '"Philip K Dick 1962"'
|
||||
recollq '"fatality. Miss Laura Chase, 25,"'
|
||||
recollq '"Catherine trembled from head to foot"'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/epub/epub.txt
Normal file
6
tests/epub/epub.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/HC-100-1e.epub] [HC-100-2.xhtml] 2387 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/atkins.epub] [atkins.epub] 259640 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/pg121.epub] [Northanger Abbey, by Jane Austen (1803)] 52225 bytes
|
16
tests/gnumeric/gnumeric.sh
Executable file
16
tests/gnumeric/gnumeric.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq author=gnumericAuthor
|
||||
recollq gnumerictext
|
||||
recollq gnumericcommentaire
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/gnumeric/gnumeric.txt
Normal file
6
tests/gnumeric/gnumeric.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 results
|
||||
application/x-gnumeric [file:///home/dockes/projets/fulltext/testrecoll/gnumeric/trygnumeric.gnumeric] [The gnumericTitle] 2111 bytes
|
||||
1 results
|
||||
application/x-gnumeric [file:///home/dockes/projets/fulltext/testrecoll/gnumeric/trygnumeric.gnumeric] [The gnumericTitle] 2111 bytes
|
||||
1 results
|
||||
application/x-gnumeric [file:///home/dockes/projets/fulltext/testrecoll/gnumeric/trygnumeric.gnumeric] [The gnumericTitle] 2111 bytes
|
36
tests/html/html.sh
Executable file
36
tests/html/html.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
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 ='
|
||||
|
||||
# more unaccenting tests
|
||||
recollq -q 'effaranteUTF8HTML'
|
||||
recollq -q 'effrayanteUTF8HTML'
|
||||
recollq -q 'accentueesUTF8HTML'
|
||||
recollq -q 'accentueesISOHTML'
|
||||
|
||||
recollq -q html5charsetaccentue
|
||||
|
||||
# Stripping trade mark and copyright signs
|
||||
recollq -q filename:signs.html Registered Trademark Copyright SoundCopyright
|
||||
|
||||
# Text in malformed html (before or after body) should be indexed anyway...
|
||||
recollq -q BADHTMLTEXTBEFOREBODY
|
||||
recollq -q BADHTMLTEXTINSECONDBODY
|
||||
recollq -q BADHTMLTEXTAFTERBODY
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
30
tests/html/html.txt
Normal file
30
tests/html/html.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/qtl.html] [Qt Template Library Classes] 2817 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/qtextedit.html] [QTextEdit Class] 108921 bytes
|
||||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/mysqlmanualSmall.html] [MySQL 3.23, 4.0, 4.1 Reference Manual] 1480354 bytes
|
||||
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] ["bad quotes] 236 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] [htmlfield.html] 137 bytes
|
||||
testfield = testfieldvalue
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/utf8.html] [Some chars] 330 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/utf8.html] [Some chars] 330 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/utf8.html] [Some chars] 330 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/iso.html] [Some chars] 249 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/html5charset.html] [html5charset.html] 113 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/signs.html] [signs.html] 230 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/verybadhtml.html] [Conversation with xxx at Sun 13 May 2012 10:42:23 PM PDT on xxx (xxx)] 646 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/verybadhtml.html] [Conversation with xxx at Sun 13 May 2012 10:42:23 PM PDT on xxx (xxx)] 646 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/verybadhtml.html] [Conversation with xxx at Sun 13 May 2012 10:42:23 PM PDT on xxx (xxx)] 646 bytes
|
13
tests/ics/ics.sh
Executable file
13
tests/ics/ics.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq 'project xyz review meeting icsfile1_uniique' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/ics/ics.txt
Normal file
2
tests/ics/ics.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/ics/icsfile1.ics] [icsfile1.ics] 446 bytes
|
14
tests/images/images.sh
Executable file
14
tests/images/images.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# Image names
|
||||
recollq photovoeux 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/images/images.txt
Normal file
2
tests/images/images.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
image/jpeg [file:///home/dockes/projets/fulltext/testrecoll/images/photovoeux.jpg] [photovoeux.jpg] 136796 bytes
|
22
tests/incexcl/incexcl.sh
Executable file
22
tests/incexcl/incexcl.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
thisdir=`dirname $0`
|
||||
topdir=$thisdir/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
echo "Should find idxtypes/idxt.txt only"
|
||||
recollq idxtypesunique
|
||||
echo
|
||||
|
||||
echo "Should find idxtypes/idxt.html only"
|
||||
recollq excltypesunique
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
7
tests/incexcl/incexcl.txt
Normal file
7
tests/incexcl/incexcl.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
Should find idxtypes/idxt.txt only
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/idxtypes/idxt.txt] [idxt.txt] 16 bytes
|
||||
|
||||
Should find idxtypes/idxt.html only
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/excltypes/idxt.html] [idxt.html] 69 bytes
|
57
tests/indexedmimetypes/indexedmimetypes.sh
Normal file
57
tests/indexedmimetypes/indexedmimetypes.sh
Normal file
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
RECOLL_CONFDIR=$topdir/$myname
|
||||
export RECOLL_CONFDIR
|
||||
logfilename=$toptmp/$myname.log
|
||||
|
||||
sharedconf() {
|
||||
cat > recoll.conf <<EOF
|
||||
topdirs = $tstdata/html $tstdata/txt
|
||||
logfilename=$logfilename
|
||||
loglevel = 6
|
||||
|
||||
EOF
|
||||
}
|
||||
###########
|
||||
# End boilerplate
|
||||
|
||||
|
||||
sharedconf
|
||||
cat >> recoll.conf <<EOF
|
||||
indexedmimetypes = text/plain
|
||||
indexallfilenames = 0
|
||||
EOF
|
||||
|
||||
recollindex -z
|
||||
|
||||
(
|
||||
# text files are indexed
|
||||
recollq shorty
|
||||
# html ones are not (not even the names)
|
||||
recollq qtextedit
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
sharedconf
|
||||
cat >> recoll.conf <<EOF
|
||||
indexedmimetypes = text/plain
|
||||
indexallfilenames = 1
|
||||
EOF
|
||||
|
||||
recollindex -z
|
||||
|
||||
(
|
||||
# text files are indexed
|
||||
recollq shorty
|
||||
# html ones are not (but the names are)
|
||||
recollq qtextedit
|
||||
recollq template
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' >> $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
8
tests/indexedmimetypes/indexedmimetypes.txt
Normal file
8
tests/indexedmimetypes/indexedmimetypes.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/txt/liste.txt] [liste.txt] 1182 bytes
|
||||
0 results
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/txt/liste.txt] [liste.txt] 1182 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/qtextedit.html] [qtextedit.html] 108921 bytes
|
||||
0 results
|
21
tests/info/info.sh
Executable file
21
tests/info/info.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
# Note: file -i returns application/octet-stream for
|
||||
# somefile.info-1. xdg-mime query filetype returns text/plain. Recoll
|
||||
# 1.22 and later return several results for the following query, one
|
||||
# for the info file, and others in the somefile.info-xx files, as
|
||||
# text/plain files. Previous versions only returned the info file,
|
||||
# which was better, but I'm not sure that we can do something about
|
||||
# it.
|
||||
|
||||
recollq '"GPGME is compiled with largefile support by default"' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
3
tests/info/info.txt
Normal file
3
tests/info/info.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/info/gpgme.info] [gpgme.info / Preparation / Largefile Support (LFS)] 4225 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/info/gpgme.info-1] [gpgme.info-1] 275877 bytes
|
16
tests/kar/kar.sh
Executable file
16
tests/kar/kar.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
(
|
||||
recollq -S mtime '"Ночь и тишина, данная на век"'
|
||||
recollq -S mtime '"Man it’s a hot one"'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/kar/kar.txt
Normal file
6
tests/kar/kar.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
2 results
|
||||
audio/x-karaoke [file:///home/dockes/projets/fulltext/testrecoll/kar/3 (cp1251).mid] [3 (cp1251).mid] 31252 bytes
|
||||
audio/x-karaoke [file:///home/dockes/projets/fulltext/testrecoll/kar/3.mid] [3.mid] 31252 bytes
|
||||
2 results
|
||||
audio/x-karaoke [file:///home/dockes/projets/fulltext/testrecoll/kar/Smooth (cp1252).kar] [Smooth] 63006 bytes
|
||||
audio/x-karaoke [file:///home/dockes/projets/fulltext/testrecoll/kar/Smooth.kar] [Smooth] 63006 bytes
|
23
tests/koi8r/koi8r.sh
Executable file
23
tests/koi8r/koi8r.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
# The question is utf-8. As recollq will use the locale to translate the cmd
|
||||
# line, need an utf-8 locale. This will fails on Linux (ubuntu lucid), the
|
||||
# shell translates the argument to ?????????. As the locale is already utf-8
|
||||
# in this case, just don't change it.
|
||||
|
||||
sys=`uname`
|
||||
case $sys in
|
||||
Linux);;
|
||||
*)export LANG=uk_UA.UTF-8;;
|
||||
esac
|
||||
|
||||
recollq 'внешнии' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/koi8r/koi8r.txt
Normal file
2
tests/koi8r/koi8r.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/ru_RU.KOI8-R/zip-drive.html] [Устройства Zip] 8599 bytes
|
78
tests/langparser/langparser.sh
Executable file
78
tests/langparser/langparser.sh
Executable file
|
@ -0,0 +1,78 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
xrun()
|
||||
{
|
||||
echo $*
|
||||
$*
|
||||
}
|
||||
|
||||
(
|
||||
echo "Expect 2 bu.txt leli.txt"
|
||||
recollq 'andorhuniique Beatles OR Lennon Live OR Unplugged'
|
||||
echo "Expect 2 bu.txt leli.txt"
|
||||
recollq 'andorhuniique (Beatles OR Lennon) AND (Live OR Unplugged)'
|
||||
echo "Expect 2 bu.txt leli.txt"
|
||||
recollq '(Beatles OR Lennon) Live OR Unplugged andorhuniique'
|
||||
echo "Expect 2 bu.txt leli.txt"
|
||||
recollq 'Beatles OR Lennon (Live OR Unplugged) andorhuniique'
|
||||
echo "Expect 1 bu.txt"
|
||||
recollq 'Beatles OR Lennon -Lennon (Live OR Unplugged) andorhuniique'
|
||||
echo "Expect 1 leli.txt"
|
||||
recollq 'Beatles OR Lennon Lennon Live andorhuniique'
|
||||
echo "Expect 1 leli.txt"
|
||||
recollq 'Beatles OR Lennon Live andorhuniique'
|
||||
echo "Expect 1 lb.txt"
|
||||
recollq '(Beatles AND Live) OR (Beatles AND Lennon) andorhuniique'
|
||||
echo "Expect 1 lb.txt"
|
||||
recollq '(Beatles Live) OR (Beatles AND Lennon) andorhuniique'
|
||||
echo "Expect 1 leli.txt"
|
||||
recollq '(Beatles AND Live) OR (Lennon AND Unplugged OR Live) andorhuniique'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html Fields Test File"'
|
||||
echo "Expect 0"
|
||||
recollq 'title:"Html Fields File"'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html Fields File"o'
|
||||
echo "Expect 0"
|
||||
recollq 'title:"Html File Fields"'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p -nosuchtermexists'
|
||||
echo "Expect 0 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p nosuchtermexists'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'ThisIsTheFieldHtmlTestFile title:"Html File Fields"p -nosuchtermexists'
|
||||
echo "Expect 2 htmlfield.html htmlfield1.html"
|
||||
recollq 'Beatles OR ThisIsTheFieldHtmlTestFile title:"Html File Fields"p'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'ThisIsTheFieldHtmlTestFile OR title:"Html File Fields"p'
|
||||
|
||||
# Size tests. Note that the search code handles < and > as <= and
|
||||
# >= for now. So size>267 succeeds...
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p size=267'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p size>= 267'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p size <=267'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p size <= 300'
|
||||
echo "Expect 1 htmlfield1.html"
|
||||
recollq 'title:"Html File Fields"p size >= 200'
|
||||
echo "Expect 0"
|
||||
recollq 'title:"Html File Fields"p size=268'
|
||||
echo "Expect 0"
|
||||
recollq 'title:"Html File Fields"p size>268'
|
||||
echo "Expect 0"
|
||||
recollq 'title:"Html File Fields"p size<266'
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
83
tests/langparser/langparser.txt
Normal file
83
tests/langparser/langparser.txt
Normal file
|
@ -0,0 +1,83 @@
|
|||
Expect 2 bu.txt leli.txt
|
||||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 2 bu.txt leli.txt
|
||||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 2 bu.txt leli.txt
|
||||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 2 bu.txt leli.txt
|
||||
2 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 1 bu.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/bu.txt] [bu.txt] 32 bytes
|
||||
Expect 1 leli.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 1 leli.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 1 lb.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/lb.txt] [lb.txt] 29 bytes
|
||||
Expect 1 lb.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/lb.txt] [lb.txt] 29 bytes
|
||||
Expect 1 leli.txt
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/andor/leli.txt] [leli.txt] 26 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 0
|
||||
0 results
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 0
|
||||
0 results
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 0 htmlfield1.html
|
||||
0 results
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 2 htmlfield.html htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
2 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] [htmlfield.html] 137 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 1 htmlfield1.html
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [HTML fields test file: été à noël] 267 bytes
|
||||
Expect 0
|
||||
0 results
|
||||
Expect 0
|
||||
0 results
|
||||
Expect 0
|
||||
0 results
|
53
tests/langparser1/langparser1.sh
Executable file
53
tests/langparser1/langparser1.sh
Executable file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
|
||||
# langparser actually test queries. We only test the language parser, the tested reference is the Xapian query.
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
xrun()
|
||||
{
|
||||
echo $*
|
||||
$*
|
||||
}
|
||||
|
||||
(
|
||||
for Q in \
|
||||
'A' \
|
||||
'A B' \
|
||||
'A AND B' \
|
||||
'A OR B' \
|
||||
'A OR B AND C' \
|
||||
'A AND B OR C' \
|
||||
'(A AND B) OR (C AND D)' \
|
||||
'(A OR B) AND (C OR D)' \
|
||||
'-the B' \
|
||||
'A -B' \
|
||||
'mime:text/plain' \
|
||||
'size>10k' \
|
||||
'date:3000-01-01' \
|
||||
'mime:text/plain A OR B mime:text/html' \
|
||||
'mime:text/plain A AND B mime:text/html' \
|
||||
'mime:text/plain mime:text/html (A B) ' \
|
||||
'mime:text/plain OR mime:text/html OR (A B) ' \
|
||||
'rclcat:media A' \
|
||||
'rclcat:media rclcat:message A' \
|
||||
'A size>10k' \
|
||||
'size>10k A' \
|
||||
'date:3000-01-01 A' \
|
||||
'A OR B date:3000-01-01' \
|
||||
'A OR B AND date:3000-01-01' \
|
||||
'title:A B' \
|
||||
'title:A -B' \
|
||||
'A -title:B' \
|
||||
; do
|
||||
# The " $Q" is there to avoid issue with a query beginning with -
|
||||
# (recollq does not grok --)
|
||||
printf "%60s" "Query: $Q -> ";recollq -Q -q " $Q"
|
||||
done
|
||||
) 2> $mystderr | egrep -v 'results|^Query setup took' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
27
tests/langparser1/langparser1.txt
Normal file
27
tests/langparser1/langparser1.txt
Normal file
|
@ -0,0 +1,27 @@
|
|||
Query: A -> Recoll query: (a:(wqf=11))
|
||||
Query: A B -> Recoll query: ((a:(wqf=11) AND b:(wqf=11)))
|
||||
Query: A AND B -> Recoll query: ((a:(wqf=11) AND b:(wqf=11)))
|
||||
Query: A OR B -> Recoll query: ((a:(wqf=11) OR b:(wqf=11)))
|
||||
Query: A OR B AND C -> Recoll query: (((a:(wqf=11) OR b:(wqf=11)) AND c:(wqf=11)))
|
||||
Query: A AND B OR C -> Recoll query: ((a:(wqf=11) AND (b:(wqf=11) OR c:(wqf=11))))
|
||||
Query: (A AND B) OR (C AND D) -> Recoll query: (((a:(wqf=11) AND b:(wqf=11)) OR (c:(wqf=11) AND d:(wqf=11))))
|
||||
Query: (A OR B) AND (C OR D) -> Recoll query: (((a:(wqf=11) OR b:(wqf=11)) AND (c:(wqf=11) OR d:(wqf=11))))
|
||||
Query: -the B -> Recoll query: (((<alldocuments> AND_NOT the:(wqf=11)) AND b:(wqf=11)))
|
||||
Query: A -B -> Recoll query: ((a:(wqf=11) AND (<alldocuments> AND_NOT b:(wqf=11))))
|
||||
Query: mime:text/plain -> Recoll query: ((<alldocuments> FILTER Ttext/plain))
|
||||
Query: size>10k -> Recoll query: ((<alldocuments> FILTER VALUE_GE 2 000000010000))
|
||||
Query: date:3000-01-01 -> Recoll query: ((<alldocuments> FILTER D30000101))
|
||||
Query: mime:text/plain A OR B mime:text/html -> Recoll query: (((a:(wqf=11) OR b:(wqf=11)) FILTER (Ttext/html OR Ttext/plain)))
|
||||
Query: mime:text/plain A AND B mime:text/html -> Recoll query: (((a:(wqf=11) AND b:(wqf=11)) FILTER (Ttext/html OR Ttext/plain)))
|
||||
Query: mime:text/plain mime:text/html (A B) -> Recoll query: (((a:(wqf=11) AND b:(wqf=11)) FILTER (Ttext/html OR Ttext/plain)))
|
||||
Query: mime:text/plain OR mime:text/html OR (A B) -> Recoll query: (((a:(wqf=11) AND b:(wqf=11)) FILTER (Ttext/html OR Ttext/plain)))
|
||||
Query: rclcat:media A -> Recoll query: ((a:(wqf=11) FILTER (Tapplication/ogg OR Tapplication/x-flac OR Taudio/mpeg OR Taudio/x-karaoke OR Timage/bmp OR Timage/gif OR Timage/jpeg OR Timage/png OR Timage/svg+xml OR Timage/tiff OR Timage/vnd.djvu OR Timage/x-icon OR Timage/x-xcf OR Timage/x-xpmi OR Tvideo/*)))
|
||||
Query: rclcat:media rclcat:message A -> Recoll query: ((a:(wqf=11) FILTER (Tapplication/ogg OR Tapplication/x-flac OR Taudio/mpeg OR Taudio/x-karaoke OR Timage/bmp OR Timage/gif OR Timage/jpeg OR Timage/png OR Timage/svg+xml OR Timage/tiff OR Timage/vnd.djvu OR Timage/x-icon OR Timage/x-xcf OR Timage/x-xpmi OR Tmessage/rfc822 OR Ttext/x-gaim-log OR Ttext/x-mail OR Ttext/x-purple-html-log OR Ttext/x-purple-log OR Tvideo/*)))
|
||||
Query: A size>10k -> Recoll query: ((a:(wqf=11) FILTER VALUE_GE 2 000000010000))
|
||||
Query: size>10k A -> Recoll query: ((a:(wqf=11) FILTER VALUE_GE 2 000000010000))
|
||||
Query: date:3000-01-01 A -> Recoll query: ((a:(wqf=11) FILTER D30000101))
|
||||
Query: A OR B date:3000-01-01 -> Recoll query: (((a:(wqf=11) OR b:(wqf=11)) FILTER D30000101))
|
||||
Query: A OR B AND date:3000-01-01 -> Recoll query: (((a:(wqf=11) OR b:(wqf=11)) FILTER D30000101))
|
||||
Query: title:A B -> Recoll query: ((Sa:(wqf=11) AND b:(wqf=11)))
|
||||
Query: title:A -B -> Recoll query: ((Sa:(wqf=11) AND (<alldocuments> AND_NOT b:(wqf=11))))
|
||||
Query: A -title:B -> Recoll query: ((a:(wqf=11) AND (<alldocuments> AND_NOT Sb:(wqf=11))))
|
16
tests/lyx/lyx.sh
Executable file
16
tests/lyx/lyx.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq -S url 'Bienvenue Dans Univers De Lyx'
|
||||
recollq -S url 'Welcome To Lyx'
|
||||
recollq -S url 'LyX jol dokumentalt'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
8
tests/lyx/lyx.txt
Normal file
8
tests/lyx/lyx.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
2 results
|
||||
application/x-lyx [file:///home/dockes/projets/fulltext/testrecoll/lyx/accentué.lyx] [accentué.lyx] 3577 bytes
|
||||
application/x-lyx [file:///home/dockes/projets/fulltext/testrecoll/lyx/fr_splash.lyx] [fr_splash.lyx] 3577 bytes
|
||||
2 results
|
||||
application/x-lyx [file:///home/dockes/projets/fulltext/testrecoll/lyx/splash.lyx] [splash.lyx] 2974 bytes
|
||||
application/x-lyx [file:///home/dockes/projets/fulltext/testrecoll/lyx/with spaces.lyx] [with spaces.lyx] 2974 bytes
|
||||
1 results
|
||||
application/x-lyx [file:///home/dockes/projets/fulltext/testrecoll/lyx/hu_splash.lyx] [hu_splash.lyx] 4773 bytes
|
21
tests/mail/mail.sh
Executable file
21
tests/mail/mail.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq Outmail_uniqueTerm
|
||||
recollq '"St Pierre en Chartreuse"'
|
||||
recollq HtmlAttachment_uniqueTerm
|
||||
recollq '"Dear Corporate Administrator"'
|
||||
recollq TestTbirdWithoutEmptyLine
|
||||
recollq TestTbirdWithEmptyLine
|
||||
recollq Utf8attachaccentueaccentue
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
15
tests/mail/mail.txt
Normal file
15
tests/mail/mail.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
2 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/outmail] [Re: CDNow, mkfichcom.tcl and "] 1337 bytes
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/outmail] [Home Ip] 166 bytes
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/BadHtmlInMail] [Prochaine rando] 3637 bytes
|
||||
1 results
|
||||
text/html [file:///home/dockes/projets/fulltext/testrecoll/mail/attach] [RECOLL: a personal text search system for Unix/Linux] 3390 bytes
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/badMail.edit] [none - In payments / Out payments] 855 bytes
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/thunderbird/Sent] [Pronote: salut les genies.] 568 bytes
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/thunderbird/Sent] [De mieux en mieux] 557 bytes
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/mail/outmail] [Message avec attachement textplain utf8] 1733 bytes
|
16
tests/man/man.sh
Executable file
16
tests/man/man.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq '"ifconfig utility"'
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/man/man.txt
Normal file
2
tests/man/man.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
text/x-man [file:///home/dockes/projets/fulltext/testrecoll/man/ifconfig.8.gz] [ifconfig.8.gz] 60689 bytes
|
17
tests/media/media.sh
Executable file
17
tests/media/media.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq author:clash 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
recollq title:lux title:aeterna 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' >> $mystdout
|
||||
recollq live at leeds the who 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' >> $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/media/media.txt
Normal file
6
tests/media/media.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 results
|
||||
application/ogg [file:///home/dockes/projets/fulltext/testrecoll/media/11 - What's My Name.ogg] [What's My Name] 2476519 bytes
|
||||
1 results
|
||||
application/x-flac [file:///home/dockes/projets/fulltext/testrecoll/media/14 - VIII. COMMUNIO- Lux aeterna.flac] [VIII. COMMUNIO- Lux aeterna] 835584 bytes
|
||||
1 results
|
||||
audio/mpeg [file:///home/dockes/projets/fulltext/testrecoll/media/16 - Miracle Cure.mp3] [Miracle Cure] 340199 bytes
|
15
tests/msword/msword.sh
Executable file
15
tests/msword/msword.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq -S url '"Evenements et programme 2006"'
|
||||
recollq -S url 'pcx11 manuel de programmation iamactuallyanrtf'
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
5
tests/msword/msword.txt
Normal file
5
tests/msword/msword.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
2 results
|
||||
application/msword [file:///home/dockes/projets/fulltext/testrecoll/msword/programme.doc] [programme.doc] 58880 bytes
|
||||
application/msword [file:///home/dockes/projets/fulltext/testrecoll/zip/misc.zip] [programme.doc] 58880 bytes
|
||||
1 results
|
||||
application/msword [file:///home/dockes/projets/fulltext/testrecoll/msword/IAmActuallyAnRTF.DOC] [DOC PROGRAMMEUR PCX9] 85381 bytes
|
42
tests/non-auto/testmbox.sh
Normal file
42
tests/non-auto/testmbox.sh
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
files='
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/attach
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/fred
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/fred1
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/outmail
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/recursive
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/strangedate1
|
||||
/home/dockes/mail/amis
|
||||
/home/dockes/mail/caughtspam.1
|
||||
/home/dockes/projets/fulltext/testrecoll/mail/tbird/Sent
|
||||
'
|
||||
|
||||
#files=/home/dockes/projets/fulltext/testrecoll/cjk/mbox
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*; exit 1
|
||||
}
|
||||
test $# = 1 || fatal Need topdir arg
|
||||
topdir=$1
|
||||
echo $topdir
|
||||
test -d $topdir || fatal $topdir does not exist
|
||||
|
||||
mh_mbox=${mh_mbox:-mh_mbox}
|
||||
echo mh_mbox $mh_mbox
|
||||
|
||||
for mbox in $files;do
|
||||
dir=`basename $mbox`
|
||||
#echo $topdir/$dir
|
||||
rm -rf $topdir/$dir
|
||||
mkdir $topdir/$dir
|
||||
echo "Processing $mbox"
|
||||
nmsg=`${mh_mbox} $mbox | tail -1 | awk '{print $1}'`
|
||||
echo nmsg $nmsg
|
||||
for i in `jot $nmsg`;do
|
||||
${mh_mbox} -m $i $mbox > $topdir/$dir/$i
|
||||
done
|
||||
done
|
||||
|
||||
|
17
tests/notypes/notypes.sh
Executable file
17
tests/notypes/notypes.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
|
||||
recollq Enerve_uniqueTerm
|
||||
recollq notype1_uniqueterm
|
||||
|
||||
) 2>&1 | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/notypes/notypes.txt
Normal file
4
tests/notypes/notypes.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 results
|
||||
inode/x-empty [file:///home/dockes/projets/fulltext/testrecoll/notypes/énervé_uniqueTerm.xfy] [énervé_uniqueTerm.xfy] 0 bytes
|
||||
1 results
|
||||
text/plain [file:///home/dockes/projets/fulltext/testrecoll/notypes/notype1.xfx] [notype1.xfx] 64 bytes
|
14
tests/okular-notes/okular-notes.sh
Executable file
14
tests/okular-notes/okular-notes.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq -q okularnote
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/okular-notes/okular-notes.txt
Normal file
2
tests/okular-notes/okular-notes.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
application/x-okular-notes [file:///home/dockes/projets/fulltext/testrecoll/okular-notes/76603.Laboratoires agrees.pdf.xml] [Okular notes about: /net/y/usr/home/dockes/projets/enbor/docs/Laboratoires_agrees.pdf] 1758 bytes
|
17
tests/ooff/ooff.sh
Executable file
17
tests/ooff/ooff.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
|
||||
recollq OpenofficeWriter_uniqueterm
|
||||
recollq SoffTabsUnique
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
4
tests/ooff/ooff.txt
Normal file
4
tests/ooff/ooff.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
1 results
|
||||
application/vnd.sun.xml.writer [file:///home/dockes/projets/fulltext/testrecoll/ooff/writer.odt] [Ceci est le titre du document openoffice élément <> "toto"] 8296 bytes
|
||||
1 results
|
||||
application/vnd.sun.xml.writer [file:///home/dockes/projets/fulltext/testrecoll/ooff/tabs.odt] [tabs.odt] 9253 bytes
|
41
tests/partialpurge/partialpurge.sh
Executable file
41
tests/partialpurge/partialpurge.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
d=${tstdata}/partialpurge/
|
||||
|
||||
# Check that partial purge works: the message orphaned by shortening
|
||||
# the mbox should not exist in the index any more
|
||||
(
|
||||
cp $d/longmbox $d/testmbox
|
||||
recollindex -Zi $d/testmbox
|
||||
|
||||
echo Should have 2 results: testmbox and longmbox:
|
||||
recollq -S url -q deletedmessageuniqueterm
|
||||
|
||||
echo
|
||||
echo Changing file and reindexing
|
||||
cp $d/shortmbox $d/testmbox
|
||||
recollindex -Zi $d/testmbox
|
||||
|
||||
echo Should have 1 result: longmbox:
|
||||
recollq -S url -q deletedmessageuniqueterm
|
||||
|
||||
echo
|
||||
echo Purging whole test file
|
||||
recollindex -e $d/testmbox
|
||||
|
||||
echo Should have 1 result: longmbox:
|
||||
recollq -S url -q deletedmessageuniqueterm
|
||||
|
||||
echo Should have 2 results: longmbox shortmbox:
|
||||
recollq -S url -q stablemessageuniqueterm
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
18
tests/partialpurge/partialpurge.txt
Normal file
18
tests/partialpurge/partialpurge.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
Should have 2 results: testmbox and longmbox:
|
||||
2 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/longmbox] [This email goes: deletedmessageuniqueterm] 755 bytes
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/testmbox] [This email goes: deletedmessageuniqueterm] 755 bytes
|
||||
|
||||
Changing file and reindexing
|
||||
Should have 1 result: longmbox:
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/longmbox] [This email goes: deletedmessageuniqueterm] 755 bytes
|
||||
|
||||
Purging whole test file
|
||||
Should have 1 result: longmbox:
|
||||
1 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/longmbox] [This email goes: deletedmessageuniqueterm] 755 bytes
|
||||
Should have 2 results: longmbox shortmbox:
|
||||
2 results
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/longmbox] [This email remains: stablemessageuniqueterm] 759 bytes
|
||||
message/rfc822 [file:///home/dockes/projets/fulltext/testrecoll/partialpurge/shortmbox] [This email remains: stablemessageuniqueterm] 1173 bytes
|
13
tests/pdf/pdf.sh
Executable file
13
tests/pdf/pdf.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq '"sequences of moveto and lineto"' OR 'ANSIX3.4' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
3
tests/pdf/pdf.txt
Normal file
3
tests/pdf/pdf.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
2 results
|
||||
application/pdf [file:///home/dockes/projets/fulltext/testrecoll/pdf/ThinkingInPostScript.pdf] [Thinking In PostScript] 846435 bytes
|
||||
application/pdf [file:///home/dockes/projets/fulltext/testrecoll/pdf/linux unicode.pdf] [developerWorks: Linux | Unicode : Linux Unicode programming] 72669 bytes
|
13
tests/postscript/postscript.sh
Executable file
13
tests/postscript/postscript.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq '"Udi Manber and Sun Wu"' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
3
tests/postscript/postscript.txt
Normal file
3
tests/postscript/postscript.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
2 results
|
||||
application/postscript [file:///home/dockes/projets/fulltext/testrecoll/postscript/glimpse.ps] [glimpse.ps] 118970 bytes
|
||||
application/postscript [file:///home/dockes/projets/fulltext/testrecoll/postscript/o'testapo.ps] [o'testapo.ps] 118970 bytes
|
13
tests/ppt/ppt.sh
Executable file
13
tests/ppt/ppt.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
recollq '"plurilingues et pluriculturels"' 2> $mystderr |
|
||||
egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
2
tests/ppt/ppt.txt
Normal file
2
tests/ppt/ppt.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
1 results
|
||||
application/vnd.ms-powerpoint [file:///home/dockes/projets/fulltext/testrecoll/ppt/portfolio.ppt] [portfolio.ppt] 86016 bytes
|
16
tests/program/program.sh
Executable file
16
tests/program/program.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
topdir=`dirname $0`/..
|
||||
. $topdir/shared.sh
|
||||
|
||||
initvariables $0
|
||||
|
||||
(
|
||||
recollq '"maps image file tags to xapian tags"'
|
||||
recollq '"PMC = Performance Monitor Control MSR"'
|
||||
recollq shellscriptUUnique
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
|
||||
|
||||
checkresult
|
6
tests/program/program.txt
Normal file
6
tests/program/program.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
1 results
|
||||
application/x-perl [file:///home/dockes/projets/fulltext/testrecoll/program/rclimg] [rclimg] 5294 bytes
|
||||
1 results
|
||||
application/x-shellscript [file:///home/dockes/projets/fulltext/testrecoll/program/run_program_with_counters.sh] [run_program_with_counters.sh] 2632 bytes
|
||||
1 results
|
||||
application/x-shellscript [file:///home/dockes/projets/fulltext/testrecoll/program/nosuffixshell] [nosuffixshell] 34 bytes
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue