Debian Codegraph @

test/t_rdonly

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