From 593bf616ebf1267a7350512392aa36f3e4783826 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 16 Apr 2010 15:54:26 +0200 Subject: [PATCH] add tests for non-ascii paths (djvu issues mainly) --- tests/utfInPath/utfInPath.sh | 16 ++++++++++++++++ tests/utfInPath/utfInPath.txt | 4 ++++ 2 files changed, 20 insertions(+) create mode 100755 tests/utfInPath/utfInPath.sh create mode 100644 tests/utfInPath/utfInPath.txt diff --git a/tests/utfInPath/utfInPath.sh b/tests/utfInPath/utfInPath.sh new file mode 100755 index 00000000..456094d1 --- /dev/null +++ b/tests/utfInPath/utfInPath.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +topdir=`dirname $0`/.. +. $topdir/shared.sh + +initvariables $0 + +recollq -q '"simulating shock turbulence interactions"' 2> $mystderr | + egrep -v '^Recoll query: ' > $mystdout + +recollq Utf8pathunique 2> $mystderr | + egrep -v '^Recoll query: ' >> $mystdout + +diff -w ${myname}.txt $mystdout > $mydiffs 2>&1 + +checkresult diff --git a/tests/utfInPath/utfInPath.txt b/tests/utfInPath/utfInPath.txt new file mode 100644 index 00000000..a3cff560 --- /dev/null +++ b/tests/utfInPath/utfInPath.txt @@ -0,0 +1,4 @@ +1 results +image/vnd.djvu [file:///home/dockes/projets/fulltext/testrecoll/utfInPath/accentué/1999_Hu_Shu.OCR.djvu] [1999_Hu_Shu.OCR.djvu] 753409 bytes +1 results +text/plain [file:///home/dockes/projets/fulltext/testrecoll/utfInPath/accentué/utf8path.txt] [utf8path.txt] 49 bytes