X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=test%2Fmarcxml%2Ftest1.sh;h=a113647fd3aeaf59b0e5f95f1803c1816e74506b;hb=ead317ad91ddd147433840f51df4368a2d4f660f;hp=add59eb0698d15ec565490f77802b7e6a0ff4051;hpb=7ead84f2bb444f7a420b1d1c8e8c47aec61f156c;p=idzebra-moved-to-github.git diff --git a/test/marcxml/test1.sh b/test/marcxml/test1.sh index add59eb..a113647 100755 --- a/test/marcxml/test1.sh +++ b/test/marcxml/test1.sh @@ -1,17 +1,21 @@ #!/bin/sh +# $Id: test1.sh,v 1.4.2.1 2004-08-24 14:06:32 adam Exp $ + +pp=${srcdir:-"."} + LOG=test1.log DBG="-v 1647" rm -f $LOG -if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then - ../../index/zebraidx -l $LOG $DBG init +if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG -V|grep Expat >/dev/null; then + ../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG init else exit 0 fi -../../index/zebraidx -l $LOG $DBG update m*.xml -../../index/zebrasrv -l $LOG $DBG unix:socket & +../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG update $pp/m*.xml +../../index/zebrasrv -c $pp/zebra.cfg -l $LOG $DBG unix:socket & sleep 1 -../api/testclient unix:socket '@and @attr 1=1003 jack @attr 1=4 computer' >tmp1 +../api/testclient unix:socket '@and @attr 1=54 eng @and @attr 1=1003 jack @attr 1=4 computer' >tmp1 echo 'Result count: 2' >tmp2 kill `cat zebrasrv.pid` || exit 1 diff tmp1 tmp2 || exit 2