test:
../../index/zmbolidx init
../../index/zmbolidx update records
+
+TESTS = t1.sh t2.sh t3.sh t4.sh t5.sh t6.sh t7.sh t8.sh
--- /dev/null
+../../index/zebraidx -l idx.log init || exit 1
+rm -f records/esdd000[12].grs
+../../index/zebraidx -l idx.log -c zebra1.cfg update records || exit 2
--- /dev/null
+test -f zebrasrv.pid && kill -9 `cat zebrasrv.pid`
+rm -f zebrasrv.pid
+rm -f srv.log
+../../index/zebrasrv -S -c zebra1.cfg -l srv.log tcp:@:9901 &
+sleep 1
+test -f zebrasrv.pid || exit 1
--- /dev/null
+test -f zebrasrv.pid || exit 1
+../../../yaz/zoom/zoomtst1 localhost:9901 utah > log || exit 3
+grep "^Result count: 17$" log || exit 4
+../../../yaz/zoom/zoomtst1 localhost:9901 "@or utah the" > log || exit 5
+grep "^Result count: 40$" log || exit 6
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 the" > log || exit 7
+grep "^Result count: 1$" log || exit 8
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 9
+grep "^Result count: 9$" log || exit 10
+../../index/zebraidx -l idx.log -c zebra1.cfg update records || exit 11
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 12
+grep "^Result count: 18$" log || exit 14
--- /dev/null
+test -f zebrasrv.pid || exit 1
+kill `cat zebrasrv.pid` || exit 2
--- /dev/null
+rm -f idx.log
+../../index/zebraidx -l idx.log init || exit 1
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
--- /dev/null
+rm -f zebrasrv.pid
+rm -f srv.log
+../../index/zebrasrv -S -c zebra2.cfg -l srv.log tcp:@:9901 &
+sleep 1
+test -f zebrasrv.pid || exit 1
--- /dev/null
+test -f zebrasrv.pid || exit 1
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 9$" log || exit 1
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 9$" log || exit 1
+cp records/esdd0006.grs records/esdd0001.grs
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 10$" log || exit 1
+touch records/esdd0001.grs
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 10$" log || exit 1
+mv records/esdd0001.grs records/esdd0002.grs
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 10$" log || exit 1
+sleep 1
+sed 's/UTAH/XYZ/g' <records/esdd0002.grs >records/esdd0002x.grs
+mv records/esdd0002x.grs records/esdd0002.grs
+../../index/zebraidx -l idx.log -c zebra2.cfg update records || exit 2
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 utah" > log || exit 2
+grep "^Result count: 9$" log || exit 1
+../../../yaz/zoom/zoomtst1 localhost:9901 "@attr 1=4 xyz" > log || exit 2
+grep "^Result count: 1$" log || exit 1
--- /dev/null
+test -f zebrasrv.pid || exit 1
+kill `cat zebrasrv.pid` || exit 2
# Simple Zebra configuration file
-# $Id: zebra.cfg,v 1.15 2002-04-30 08:28:37 adam Exp $
+# $Id: zebra.cfg,v 1.16 2002-05-07 11:04:37 adam Exp $
#
# Where the schema files, attribute files, etc are located.
profilePath: .:../../tab:../../../yaz/tab
#storekeys: 1
#storedata: 1
#recordId: (bib1,identifier-standard)
-isam: c
+isam: b
--- /dev/null
+# Simple Zebra configuration file
+# $Id: zebra1.cfg,v 1.1 2002-05-07 11:04:37 adam Exp $
+#
+# Where the schema files, attribute files, etc are located.
+profilePath: .:../../tab:../../../yaz/tab
+
+# Files that describe the attribute sets supported.
+attset: bib1.att
+attset: gils.att
+attset: explain.att
+
+recordtype: grs.sgml
+
+isam: c
--- /dev/null
+# Simple Zebra configuration file
+# $Id: zebra2.cfg,v 1.1 2002-05-07 11:04:37 adam Exp $
+#
+# Where the schema files, attribute files, etc are located.
+profilePath: .:../../tab:../../../yaz/tab
+
+# Files that describe the attribute sets supported.
+attset: bib1.att
+attset: gils.att
+attset: explain.att
+
+recordtype: grs.sgml
+
+storeData: 1
+storeKeys: 1
+recordId: file
+
+isam: c