X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Fmarcxml%2Ftest2.sh;h=6ef8acdafda9f4d082fac1bffdcc8b313f62057f;hb=8ee402d79e37344b08c2b54ad45b50e8327a6c03;hp=2ff046065155b5013ac5fa0721866dfd36772220;hpb=3038982ea4d46e1562a4e88029199ca09153a839;p=idzebra-moved-to-github.git diff --git a/test/marcxml/test2.sh b/test/marcxml/test2.sh index 2ff0460..6ef8acd 100755 --- a/test/marcxml/test2.sh +++ b/test/marcxml/test2.sh @@ -1,12 +1,18 @@ #!/bin/sh -# $Id: test2.sh,v 1.2 2004-06-15 08:06:34 adam Exp $ +# $Id: test2.sh,v 1.4 2004-09-27 10:44:51 adam Exp $ pp=${srcdir:-"."} LOG=test2.log rm -f $LOG -../../index/zebraidx -c $pp/zebra.cfg -l$LOG init -../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update sample-marc + +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