From: Heikki Levanto Date: Tue, 7 Dec 2004 15:45:13 +0000 (+0000) Subject: Added a test case for the newly found bug #234 X-Git-Tag: snippet.version.1~234 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=23a280ccc573215c819ac40c1fe674957503b8f9 Added a test case for the newly found bug #234 --- diff --git a/test/Makefile.am b/test/Makefile.am index fadcf24..cff5790 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,4 +1,4 @@ SUBDIRS=codec api xpath gils malxml config usmarc dmoz sort sort2 xelm cddb \ - rusmarc zsh marcxml charmap + rusmarc zsh marcxml charmap mbox diff --git a/test/mbox/Makefile.am b/test/mbox/Makefile.am new file mode 100644 index 0000000..eddd5d7 --- /dev/null +++ b/test/mbox/Makefile.am @@ -0,0 +1,6 @@ +# $Id: Makefile.am,v 1.1 2004-12-07 15:45:13 heikki Exp $ + +EXTRA_DIST = zebra.cfg test1.sh test2.sh email2.flt + +noinst_PROGRAMS = + diff --git a/test/mbox/onemail b/test/mbox/onemail new file mode 100644 index 0000000..80acb7f --- /dev/null +++ b/test/mbox/onemail @@ -0,0 +1,59 @@ +From marc@indexdata.dk Thu Dec 02 09:57:42 2004 +Return-path: +Envelope-to: heikki@indexdata.dk +Delivery-date: Thu, 02 Dec 2004 09:57:42 +0100 +Received: from user.indexdata.dk ([213.150.43.10] helo=[10.0.1.66]) + by bagel.indexdata.dk with esmtp (Exim 3.35 #1 (Debian)) + id 1CZmmS-0006ZW-00; Thu, 02 Dec 2004 09:57:40 +0100 +Message-ID: <41AED904.3000500@indexdata.dk> +Date: Thu, 02 Dec 2004 09:57:40 +0100 +From: Marc Cromme +Reply-To: marc@indexdata.dk +Organization: Index Data +User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) +X-Accept-Language: en-us, en +MIME-Version: 1.0 +To: Adam Dickmeiss , + Heikki Levanto , + Sebastian Hammer +Subject: [Fwd: [Zebralist] Indexing multiple xml elements as a phrase] +Content-Type: multipart/mixed; + boundary="------------020203040804000501020404" +X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on bagel.indexdata.dk +X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00 autolearn=ham + version=3.0.0 +X-Spam-Level: +Status: RO +Content-Length: 4755 +Lines: 135 + +This is a multi-part message in MIME format. +--------------020203040804000501020404 +Content-Type: text/plain; charset=UTF-8; format=flowed +Content-Transfer-Encoding: 8bit + +Hi folks - denne her er ikke blevet besvaret på zebra listen, og jeg kan +ikke svare på den. Kan en af jer ?? + +Marc + +-- + +Marc Cromme, cand. polyt, Ph.D +Senior Developer, Project Manager + +Index Data Aps +Købmagergade 43, 2 +1150 Copenhagen K. +Denmark + +tel: +45 3341 1000 +fax: +45 3341 0101 + +http://www.indexdata.com + +INDEX DATA Means Business +for Open Source and Open Standards + + + diff --git a/test/mbox/test1.sh b/test/mbox/test1.sh new file mode 100755 index 0000000..201e4ef --- /dev/null +++ b/test/mbox/test1.sh @@ -0,0 +1,6 @@ +# test 1 +pp=${srcdir:-"."} + +../../index/zebraidx -c ${pp}/zebra.cfg init +../../index/zebraidx -c ${pp}/zebra.cfg update onemail + diff --git a/test/mbox/test2.sh b/test/mbox/test2.sh new file mode 100755 index 0000000..30733e1 --- /dev/null +++ b/test/mbox/test2.sh @@ -0,0 +1,5 @@ +# test 2 + +../../index/zebraidx init +../../index/zebraidx update vm2 + diff --git a/test/mbox/vm2 b/test/mbox/vm2 new file mode 100644 index 0000000..949a692 --- /dev/null +++ b/test/mbox/vm2 @@ -0,0 +1,14 @@ +# VMware software license - All data changed to protect everybody +Fields = "Cpt, Name, LicenseType, LicenseClass, Count, LicenseKey, ProductID, ProductType" +StartFields = "Cpt, Name, LicenseType, LicenseClass, Field2" +Field2 = "Count, LicenseKey, ProductID, ProductType" +Cpt = "COPYRIGHT (c) VMware, Inc. 1999" +Name = "Index Data 1 of 1" +LicenseType = "User" +LicenseClass = "Commercial" +Count = "1 of 1" +LicenseKey = "xxxxxx.xxxxx.xx.x" +ProductID = "VMware for Linux" +ProductType = "x.x" + +Hash = 3xxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx diff --git a/test/mbox/zebra.cfg b/test/mbox/zebra.cfg new file mode 100644 index 0000000..ca28e8d --- /dev/null +++ b/test/mbox/zebra.cfg @@ -0,0 +1,15 @@ +# Zebra configuration file +# $Id: zebra.cfg,v 1.1 2004-12-07 15:45:13 heikki Exp $ +# + +#profilePath: .:/usr/share/idzebra/tab +profilepath: .:${srcdir:-.}/../../tab + +recordType.: grs.regx.email2 +database: mail + + +attset: bib1.att +attset: gils.att + +isam: b