Test case for filter grs.marcxml
[idzebra-moved-to-github.git] / test / marcxml / test2.sh
1 #!/bin/sh
2 LOG=test2.log
3 rm -f $LOG
4 ../../index/zebraidx -l$LOG init
5 ../../index/zebraidx -l$LOG -t grs.marcxml.record update sample-marc
6 ../../index/zebrasrv -l$LOG unix:socket &
7 sleep 1
8 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1
9 echo 'Result count: 2' >tmp2
10 kill `cat zebrasrv.pid` || exit 1
11 diff tmp1 tmp2 || exit 2
12 rm -f tmp1 tmp2