X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2Fmarcxml%2Ftest2.sh;h=6ef8acdafda9f4d082fac1bffdcc8b313f62057f;hb=1f0c3e82023083774711f132508a06630a11f750;hp=ece764a37273d806e59ffb6a13d841603003ba45;hpb=a0bb036bc4059b8ed7d31340fefd3caeb561e711;p=idzebra-moved-to-github.git diff --git a/test/marcxml/test2.sh b/test/marcxml/test2.sh index ece764a..6ef8acd 100755 --- a/test/marcxml/test2.sh +++ b/test/marcxml/test2.sh @@ -1,9 +1,19 @@ #!/bin/sh +# $Id: test2.sh,v 1.4 2004-09-27 10:44:51 adam Exp $ + +pp=${srcdir:-"."} + LOG=test2.log rm -f $LOG -../../index/zebraidx -l$LOG init -../../index/zebraidx -l$LOG -t grs.marcxml.record update sample-marc -../../index/zebrasrv -l$LOG unix:socket & + +if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG filters|grep grs.marcxml >/dev/null ; then + ../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG init +else + exit 0 +fi + +../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update $pp/sample-marc +../../index/zebrasrv -c $pp/zebra.cfg -l$LOG unix:socket & sleep 1 ../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1 echo 'Result count: 2' >tmp2