Added forward functions to rsbool, and a few tests for them.
[idzebra-moved-to-github.git] / test / marcxml / test1.sh
1 #!/bin/sh
2 LOG=test1.log
3 DBG="-v 1647"
4
5 rm -f $LOG
6 if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then
7         ../../index/zebraidx -l $LOG $DBG init
8 else
9         exit 0
10 fi
11 ../../index/zebraidx -l $LOG $DBG update m*.xml
12 ../../index/zebrasrv -l $LOG $DBG unix:socket &
13 sleep 1
14 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1
15 echo 'Result count: 2' >tmp2
16 kill `cat zebrasrv.pid` || exit 1
17 diff tmp1 tmp2 || exit 2
18 rm -f tmp1 tmp2