recollq: add option to extract result document to file + doc and test

This commit is contained in:
Jean-Francois Dockes
2022-08-15 17:46:57 +02:00
parent 7d028e7ca9
commit ea133d7d60
6 changed files with 222 additions and 196 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
tmpfile=$(
echo 'mkstemp(template)' |
m4 -D template="${TMPDIR:-/tmp}/rcltsttmpXXXXXX"
) || exit 1
trap "rm -f -- '$tmpfile'" EXIT
rm -f "$tmpfile"
recollq --extract-to "$tmpfile" -q HtmlAttachment_uniqueTerm
md5sum "$tmpfile" | awk '{print $1}'
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult
+2
View File
@@ -0,0 +1,2 @@
1 results
90c700bb60b7df96e56cca46561f0597