recollq: add option to extract result document to file + doc and test
This commit is contained in:
Executable
+21
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
1 results
|
||||
90c700bb60b7df96e56cca46561f0597
|
||||
@@ -7,8 +7,8 @@ initvariables $0
|
||||
|
||||
(
|
||||
|
||||
recollq -S url -q '"simulating shock turbulence interactions"'
|
||||
recollq -S url Utf8pathunique
|
||||
recollq -S fmtime -q '"simulating shock turbulence interactions"'
|
||||
recollq -S fmtime Utf8pathunique
|
||||
|
||||
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user