added orgmode test

This commit is contained in:
Jean-Francois Dockes 2021-01-15 14:05:34 +01:00
parent e8deaf619b
commit b405f18835
3 changed files with 20 additions and 0 deletions

14
tests/orgmode/orgmode.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
(
recollq -S url 'title:"law and legal code versioned on github"'
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult

View File

@ -0,0 +1,2 @@
1 results
text/plain [file:///home/dockes/projets/fulltext/testrecoll/orgmode/orgmode-example.org] [law and legal code versioned on github] 370 bytes

View File

@ -1,6 +1,10 @@
# @(#$Id: shared.sh,v 1.4 2009-01-06 18:47:33 dockes Exp $ (C) 2006 J.F.Dockes
# shared code and variables for all tests
# TMPDIR has to be something which belongs to the user because of pdftk
# issues (see runtests.sh)
export TMPDIR=$HOME/tmp
RECOLL_TESTDATA=${RECOLL_TESTDATA:-/home/dockes/projets/fulltext/testrecoll}
# All source'rs should set topdir as a relative path from their location to