26e899d2c228de1f9af7b76fdee83b24f2c456cb
[idzebra-moved-to-github.git] / test / marcxml / test2.sh
1 #!/bin/sh
2 # $Id: test2.sh,v 1.3 2004-06-15 09:43:33 adam Exp $
3
4 pp=${srcdir:-"."}
5
6 LOG=test2.log
7 rm -f $LOG
8 ../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
9 ../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update $pp/sample-marc
10 ../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket &
11 sleep 1
12 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1
13 echo 'Result count: 2' >tmp2
14 kill `cat zebrasrv.pid` || exit 1
15 diff tmp1 tmp2 || exit 2
16 rm -f tmp1 tmp2