Debian Codegraph @

test/t_trunc

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #
2 # Part of the ht://Dig package <http://www.htdig.org/>
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_trunc,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
15 count1=`head -1 $srcdir/search.txt | ./txt2mifluz -z -v $VERBOSE`
16 count2=`tail -1 $srcdir/search.txt | ./txt2mifluz -z -v $VERBOSE`
17 if [ "$count1" != "$count2" ]
18 then
19 echo "inserted $count1 then $count2, expected same number" >&2
20 exit 1
21 fi
22 ../htdb/htdb_stat -zW -d test | grep '2 Number of keys in the tree' > /dev/null || {
23 fail "Wrong number of keys"
24 ../htdb/htdb_stat -zW -d test
25 }