2 # $Id: simple1.sh,v 1.2 2003-05-06 17:39:01 adam Exp $
3 # test with one simple sgml record
6 ../../index/zebraidx -l $LOG init || exit 1
7 ../../index/zebraidx -l $LOG update simple1.rec || exit 1
9 echo "Starting server " >> $LOG
10 ../../index/zebrasrv -l $LOG -S unix:socket &
12 test -f zebrasrv.pid || exit 2
14 ../testclient unix:socket -c 0 '@attr 1=/sgml/tag before' >> $LOG || exit 1
15 ../testclient unix:socket -c 1 '@attr 1=/sgml/tag inside' >> $LOG || exit 1
16 ../testclient unix:socket -c 0 '@attr 1=/sgml/tag after' >> $LOG || exit 1
18 ../testclient unix:socket -c 0 '@attr 1=/sgml/none after' >> $LOG || exit 1
20 ../testclient unix:socket -c 1 '@attr 1=/sgml before' >> $LOG || exit 1
21 ../testclient unix:socket -c 1 '@attr 1=/sgml inside' >> $LOG || exit 1
22 ../testclient unix:socket -c 1 '@attr 1=/sgml after' >> $LOG || exit 1
24 echo "killing server " >> $LOG
25 kill `cat zebrasrv.pid` || exit 3