You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
816 B
26 lines
816 B
#
|
|
# 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_trunc,v 1.4 2004/05/28 13:15:30 lha Exp $
|
|
#
|
|
|
|
. ./test_functions
|
|
|
|
export MIFLUZ_CONFIG ; MIFLUZ_CONFIG=${srcdir}/mifluz-search.conf
|
|
|
|
count1=`head -1 $srcdir/search.txt | ./txt2mifluz -z -v $VERBOSE`
|
|
count2=`tail -1 $srcdir/search.txt | ./txt2mifluz -z -v $VERBOSE`
|
|
if [ "$count1" != "$count2" ]
|
|
then
|
|
echo "inserted $count1 then $count2, expected same number" >&2
|
|
exit 1
|
|
fi
|
|
../htdb/htdb_stat -zW -d test | grep '2 Number of keys in the tree' > /dev/null || {
|
|
fail "Wrong number of keys"
|
|
../htdb/htdb_stat -zW -d test
|
|
}
|