2 # $Id: test1.sh,v 1.5 2004-06-16 21:48:57 adam Exp $
8 test -d tmp || mkdir tmp
9 test -d lock || mkdir lock
10 test -d register || mkdir register
11 ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
12 if grep 'UTF-8 to koi8-r unsupported' $LOG >/dev/null; then
15 ../../index/zebraidx -c $pp/zebra.cfg -l$LOG update $pp/records/*marc
16 ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
18 # search text located in first record 600 $a
19 # term is koi8-r encoded
20 ../api/testclient unix:socket '@attr 1=21 úÁÍÑÔÉÎ' >tmp1
21 echo 'Result count: 1' >tmp2
22 kill `cat lock/zebrasrv.pid` || exit 1
23 diff tmp1 tmp2 || exit 2