From 94989747ba54fbf931b1e06f0113a9e673883ad5 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 23 Jan 2012 21:19:02 +0100 Subject: [PATCH] test: okular notes --- tests/config/mimemap | 4 ++++ tests/okular-notes/okular-notes.sh | 14 ++++++++++++++ tests/okular-notes/okular-notes.txt | 2 ++ 3 files changed, 20 insertions(+) create mode 100755 tests/okular-notes/okular-notes.sh create mode 100644 tests/okular-notes/okular-notes.txt diff --git a/tests/config/mimemap b/tests/config/mimemap index ca39d7ea..f72b20bb 100644 --- a/tests/config/mimemap +++ b/tests/config/mimemap @@ -6,6 +6,10 @@ # Values set in this file will override the system-wide values for the file # with the same name in the central directory. The syntax for setting # values is identical. + +[/home/dockes/projets/fulltext/testrecoll/okular-notes] +.xml = application/x-okular-notes + [/home/dockes/projets/fulltext/testrecoll/man] .0p = text/x-man .1 = text/x-man diff --git a/tests/okular-notes/okular-notes.sh b/tests/okular-notes/okular-notes.sh new file mode 100755 index 00000000..776fad70 --- /dev/null +++ b/tests/okular-notes/okular-notes.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +topdir=`dirname $0`/.. +. $topdir/shared.sh + +initvariables $0 + +( + recollq -q okularnote +) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout + +diff -w ${myname}.txt $mystdout > $mydiffs 2>&1 + +checkresult diff --git a/tests/okular-notes/okular-notes.txt b/tests/okular-notes/okular-notes.txt new file mode 100644 index 00000000..b3d02397 --- /dev/null +++ b/tests/okular-notes/okular-notes.txt @@ -0,0 +1,2 @@ +1 results +application/x-okular-notes [file:///home/dockes/projets/fulltext/testrecoll/okular-notes/76603.Laboratoires_agrees.pdf.xml] [Okular notes about: /net/y/usr/home/dockes/projets/enbor/docs/Laboratoires_agrees.pdf] 1758 bytes