From da4e5763304e3bc8b9e5e8ba87721fd9055d192c Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 12 Oct 2012 13:37:23 +0200 Subject: [PATCH] add epub test --- tests/chm/chm.txt | 10 +++++----- tests/epub/epub.sh | 16 ++++++++++++++++ tests/epub/epub.txt | 6 ++++++ tests/info/info.txt | 2 +- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100755 tests/epub/epub.sh create mode 100644 tests/epub/epub.txt diff --git a/tests/chm/chm.txt b/tests/chm/chm.txt index e729c93c..56f97cef 100644 --- a/tests/chm/chm.txt +++ b/tests/chm/chm.txt @@ -1,10 +1,10 @@ 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Nokia_Nseries_Help_jpn.chm] [デジタル著作権管理(DRM)] 2912 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Nokia_Nseries_Help_jpn.chm] [デジタル著作権管理(DRM)] 2948 bytes 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/soundrec.chm] [Superposer (mixer) des fichiers son] 2243 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/soundrec.chm] [Superposer (mixer) des fichiers son] 2279 bytes 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Django-1.1a1-r9905.chm] [User authentication in Django] 115143 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/Django-1.1a1-r9905.chm] [User authentication in Django] 115179 bytes 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/PMGlossary.chm] [Project Management Glossary: P09] 64667 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/PMGlossary.chm] [Project Management Glossary: P09] 64703 bytes 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/2006Susla-handbookCriticalCareDrugTherapy.CHM] [Ovid: Handbook of Critical Care Drug Therapy] 124293 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/chm/2006Susla-handbookCriticalCareDrugTherapy.CHM] [Ovid: Handbook of Critical Care Drug Therapy] 124329 bytes diff --git a/tests/epub/epub.sh b/tests/epub/epub.sh new file mode 100755 index 00000000..5f616b48 --- /dev/null +++ b/tests/epub/epub.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +topdir=`dirname $0`/.. +. $topdir/shared.sh + +initvariables $0 + +( +recollq '"Philip K Dick 1962"' +recollq '"fatality. Miss Laura Chase, 25,"' +recollq '"Catherine trembled from head to foot"' +) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout + +diff -w ${myname}.txt $mystdout > $mydiffs 2>&1 + +checkresult diff --git a/tests/epub/epub.txt b/tests/epub/epub.txt new file mode 100644 index 00000000..f0fab3b2 --- /dev/null +++ b/tests/epub/epub.txt @@ -0,0 +1,6 @@ +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/HC-100-1e.epub] [HC-100-2.xhtml] 2388 bytes +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/atkins.epub] [atkins.epub] 259641 bytes +1 results +text/html [file:///home/dockes/projets/fulltext/testrecoll/epub/pg121.epub] [Northanger Abbey, by Jane Austen (1803)] 52226 bytes diff --git a/tests/info/info.txt b/tests/info/info.txt index 494d97d5..02e011dc 100644 --- a/tests/info/info.txt +++ b/tests/info/info.txt @@ -1,2 +1,2 @@ 1 results -text/html [file:///home/dockes/projets/fulltext/testrecoll/info/gpgme.info] [gpgme.info / Preparation / Largefile Support (LFS)] 4145 bytes +text/html [file:///home/dockes/projets/fulltext/testrecoll/info/gpgme.info] [gpgme.info / Preparation / Largefile Support (LFS)] 4225 bytes