X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fmarcxml%2Ftest1.sh;fp=test%2Fmarcxml%2Ftest1.sh;h=58bb3884eeed0668273ef2ce0902b9de742dd222;hb=91552c9a8ba370242cb3dc478c3bcc9351262493;hp=0000000000000000000000000000000000000000;hpb=b3890b03023cb9904ac1b10e2eee86669246d1dd;p=idzebra-moved-to-github.git diff --git a/test/marcxml/test1.sh b/test/marcxml/test1.sh new file mode 100755 index 0000000..58bb388 --- /dev/null +++ b/test/marcxml/test1.sh @@ -0,0 +1,16 @@ +#!/bin/sh +LOG=test1.log +rm -f $LOG +if ../../index/zebraidx -l $LOG -V|grep Expat >/dev/null; then + ../../index/zebraidx -l$LOG init +else + exit 0 +fi +../../index/zebraidx -l$LOG update m*.xml +../../index/zebrasrv -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 +kill `cat zebrasrv.pid` || exit 1 +diff tmp1 tmp2 || exit 2 +rm -f tmp1 tmp2