Download this file

skipped.sh    33 lines (24 with data), 867 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
# 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
checkresult