Debian Codegraph @

test/t_htdb

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_htdb,v 1.4 2004/05/28 13:15:30 lha Exp $
9 #
10
11 . ./test_functions
12
13 for compress in "" "-z"
14 do
15 rm -f test
16 ../htdb/htdb_load -f $srcdir/t_htdb.dump $compress test || exit 1
17 ../htdb/htdb_dump -p $compress test > t_htdb.d1 || exit 1
18 cmp $srcdir/t_htdb.dump t_htdb.d1 || exit 1
19 ../htdb/htdb_stat $compress -d test | grep '11 Number of keys in the tree' > /dev/null || exit 1
20 done
21
22 export MIFLUZ_CONFIG ; MIFLUZ_CONFIG=${srcdir}/mifluz-search.conf
23
24 for compress in "" "-z"
25 do
26 rm -f test test_weakcmpr
27 ./txt2mifluz $compress $VERBOSE < $srcdir/search.txt
28 ../htdb/htdb_dump -W -p $compress test > t_htdb.d1 || exit 1
29 rm -f test test_weakcmpr
30 ../htdb/htdb_load -W -f t_htdb.d1 $compress test || exit 1
31 ../htdb/htdb_dump -W -p $compress test > t_htdb.d2 || exit 1
32 cmp t_htdb.d1 t_htdb.d2 || exit 1
33 done