blob: c6a3239bf59812c82793c52f8edc795a5a209698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#
# Part of the ht://Dig package <http://www.htdig.org/>
# Copyright (c) 1999-2004 The ht://Dig Group
# For copyright details, see the file COPYING in your distribution
# or the GNU Library General Public License (LGPL) version 2 or later
# <http://www.gnu.org/copyleft/lgpl.html>
#
# $Id: t_rdonly,v 1.4 2004/05/28 13:15:30 lha Exp $
#
. ./test_functions
export MIFLUZ_CONFIG ; MIFLUZ_CONFIG=${srcdir}/mifluz-search.conf
./txt2mifluz -z $VERBOSE < $srcdir/search.txt
chmod a-w test test_weakcmpr
a=`./dbbench -Wz -f world`
b="world <DEF> 0 0 5 2
world <DEF> 0 0 5 4
world <DEF> 0 0 11 1
world <DEF> 0 0 20 5
world <DEF> 0 0 21 2
world <DEF> 0 0 51 2
world <DEF> 0 0 71 2
world <DEF> 0 0 81 2 "
if [ "$a" != "$b" ]
then
echo "expected
$b
but got
$a" >&2
exit 1
fi
|