Add test case for test/rusmarc
[idzebra-moved-to-github.git] / test / rusmarc / test1.sh
1 #!/bin/sh
2 # $Id: test1.sh,v 1.1 2004-03-09 18:45:17 adam Exp $
3 LOG=test1.log
4 rm -f $LOG
5 ../../index/zebraidx -l$LOG init
6 ../../index/zebraidx -l$LOG update records/*marc
7 ../../index/zebrasrv -l$LOG unix:socket &
8 sleep 1
9 # search text located in first record 600 $a
10 # term is koi8-r encoded
11 ../api/testclient unix:socket '@attr 1=21 úÁÍÑÔÉÎ' >tmp1
12 echo 'Result count: 1' >tmp2
13 kill `cat lock/zebrasrv.pid` || exit 1
14 diff tmp1 tmp2 || exit 2
15 rm -f tmp1 tmp2