X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fgils%2Ftest3.sh;h=e8bfbb0f596cfd7d50cbd467cd3a76d8e708d6f4;hb=e505b6cf2a7f6821264d82cd2e8869b2be38d0b2;hp=3a665c338123b301fc80de8346c8973989d139af;hpb=41fd28c13ea2e1cd82e411e2a2db4e1ee56f4e06;p=idzebra-moved-to-github.git diff --git a/test/gils/test3.sh b/test/gils/test3.sh index 3a665c3..e8bfbb0 100755 --- a/test/gils/test3.sh +++ b/test/gils/test3.sh @@ -1,9 +1,11 @@ #!/bin/sh -# $Id: test3.sh,v 1.2 2004-02-12 15:14:19 heikki Exp $ +# $Id: test3.sh,v 1.4 2004-06-15 09:43:30 adam Exp $ # Testing searches with lots of @and operators # in order to test the fast-forward operation of rsets +pp=${srcdir:-"."} + LOG=test3.log DBG="-v 1647" @@ -14,13 +16,13 @@ rm -f zebrasrv.pid echo "initializing..." >>$LOG mkdir -p reg -../../index/zebraidx -l $LOG -c zebra1.cfg init || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1 echo "updating..." >>$LOG -../../index/zebraidx -l $LOG -c zebra1.cfg update records || exit 1 +../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update $pp/records || exit 1 echo "starting server..." >>$LOG -../../index/zebrasrv -S -c zebra1.cfg $DBG -l $LOG tcp:@:9901 & +../../index/zebrasrv -S -c $pp/zebra1.cfg $DBG -l $LOG tcp:@:9901 & sleep 1 echo "checking it runs..." >>$LOG @@ -83,7 +85,7 @@ echo "search D7..." >>$LOG ../api/testclient -c 15 localhost:9901 '@and @and in data the' > log || exit 1 echo "search D8..." >>$LOG -../api/testclient -c2 localhost:9901 "@attr 1=4 @and UNPUBLISHED @and REPORTS AND" >log || exit 1 +../api/testclient -c 2 localhost:9901 "@attr 1=4 @and UNPUBLISHED @and REPORTS AND" >log || exit 1 # This one failed at early fast-forwards echo "search E1..." >>$LOG