X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fsort%2Ftest1.sh;h=87973fb062edf660b4faf110ebbaebe7dd77a11d;hb=64faa0860b884099c8054599f9dcfa57353165e3;hp=2e980612c9dc47fc0eebb99140ea9cf465bad2be;hpb=e93e9d110b6bb2596e011de5fb0c8825ac2fe2b2;p=idzebra-moved-to-github.git diff --git a/test/sort/test1.sh b/test/sort/test1.sh index 2e98061..87973fb 100755 --- a/test/sort/test1.sh +++ b/test/sort/test1.sh @@ -1,5 +1,9 @@ #!/bin/sh -# $Id: test1.sh,v 1.2 2003-05-06 17:39:01 adam Exp $ +# $Id: test1.sh,v 1.7 2004-06-15 09:43:34 adam Exp $ + +pp=${srcdir:-"."} + +ulimit -c 10000 LOG=test1.log rm -fr lock mkdir lock @@ -7,12 +11,12 @@ rm -fr reg mkdir reg rm -fr recs mkdir recs -cp rec*.xml recs -../../index/zebraidx -l $LOG update recs || exit 1 -../../index/zebrasrv -l $LOG unix:socket & +cp $pp/rec*.xml recs +../../index/zebraidx -c $pp/zebra.cfg -l $LOG update recs || exit 1 +../../index/zebrasrv -c $pp/zebra.cfg -l $LOG unix:socket & sleep 1 -test -f zebrasrv.pid || exit 2 -../testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1 +test -f lock/zebrasrv.pid || exit 2 +../api/testclient -n3 unix:socket '@or computer @attr 7=1 @attr 1=30 0' >tmp1 echo 'Result count: 3 my: title: third computer @@ -23,5 +27,5 @@ my: title: first computer dateTime: 2' >tmp2 -kill `cat zebrasrv.pid` +kill `cat lock/zebrasrv.pid` diff tmp1 tmp2