New tests for new noContentSuffixes+- and skippedNames+- variables

This commit is contained in:
Jean-Francois Dockes
2017-02-22 16:06:45 +01:00
parent 50ee88adce
commit 66270c6270
7 changed files with 56 additions and 12 deletions
+21 -2
View File
@@ -5,8 +5,27 @@ topdir=`dirname $0`/..
initvariables $0
recollq ShouldbeSkippedUnique 2> $mystderr |
egrep -v '^Recoll query: ' > $mystdout
(
# skippedPaths:
# shouldbeskipped.txt should be skipped because
# skipped/reallyskipped/ is in skippedPaths, but the query gets 1
# result because of rlyskipped/shouldnotbeskipped.txt
# 1 res: shouldnotbeskipped.txt
recollq ShouldbeSkippedUnique
# skippedNames
# recollrc is in the default skippedNames list, but should be the
# result here because 'recollrc' is in the local config
# skippedNames-
# 1 res: skipped/recollrc
recollq recollrcUnique
# skippedNames
# Should be skipped because notinskippednames is in skippedNames+
# 0 res for skipped/notinskippednames
recollq -q notinskippedNamesUnique
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
+4 -1
View File
@@ -1,2 +1,5 @@
1 results
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/skipped/rlyskipped/shouldnotbeskipped.txt] [shouldnotbeskipped.txt] 48 bytes
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/skipped/recollrc] [recollrc] 15 bytes
0 results