X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fgils%2Ftest3.sh;h=7350901008d10907eb8ac06b8151c17e8699a795;hp=269aab7cb693c23cfd20b41106acb0d40fbf800e;hb=6ba9698e88c0283e40fa5980a1a6b551fff2d597;hpb=a692aad104901f14ecb713bf85940117c68108e7 diff --git a/test/gils/test3.sh b/test/gils/test3.sh index 269aab7..7350901 100755 --- a/test/gils/test3.sh +++ b/test/gils/test3.sh @@ -1,25 +1,34 @@ #!/bin/sh -# $Id: test3.sh,v 1.7 2005-01-03 12:08:04 adam Exp $ +# $Id: test3.sh,v 1.9 2006-05-19 13:49:36 adam Exp $ # Testing searches with lots of @and operators # in order to test the fast-forward operation of rsets -pp=${srcdir:-"."} +srcdir=${srcdir:-"."} + +if [ "$srcdir" != "." ] + then + echo "Jumping over test" + exit 0 +fi LOG=test3.log DBG="-v 1647" rm -f $LOG +# these should not be here, will be created later +$srcdir/cleanrecords.sh + echo "initializing..." >>$LOG mkdir -p reg -../../index/zebraidx -l $LOG -c $pp/zebra1.cfg init || exit 1 +../../index/zebraidx -l $LOG -c $srcdir/zebra1.cfg init || exit 1 echo "updating..." >>$LOG -../../index/zebraidx -l $LOG -c $pp/zebra1.cfg update $pp/records || exit 1 +../../index/zebraidx -l $LOG -c $srcdir/zebra1.cfg update $srcdir/records || exit 1 echo "starting server..." >>$LOG -../../index/zebrasrv -D -p z.pid -S -c $pp/zebra1.cfg $DBG -l $LOG unix:socket +../../index/zebrasrv -D -p z.pid -S -c $srcdir/zebra1.cfg $DBG -l $LOG unix:socket echo "checking it runs..." >>$LOG test -f z.pid || exit 1 @@ -28,7 +37,7 @@ echo "search A1..." >>$LOG ../api/testclient -c 17 unix:socket utah > log || exit 1 echo "search A2..." >>$LOG -../api/testclient -c 30 unix:socket the > log || exit 1 +../api/testclient -c 31 unix:socket the > log || exit 1 echo "search A3..." >>$LOG ../api/testclient -c 4 unix:socket deposits > log || exit 1 @@ -60,19 +69,19 @@ echo "search C6..." >>$LOG echo "search D1..." >>$LOG -../api/testclient -c 29 unix:socket "@and the of " > log || exit 1 +../api/testclient -c 30 unix:socket "@and the of " > log || exit 1 echo "search D2..." >>$LOG -../api/testclient -c 29 unix:socket "@and of the" > log || exit 1 +../api/testclient -c 30 unix:socket "@and of the" > log || exit 1 echo "search D3..." >>$LOG -../api/testclient -c 29 unix:socket "@and @and the of of" > log || exit 1 +../api/testclient -c 30 unix:socket "@and @and the of of" > log || exit 1 echo "search D4..." >>$LOG -../api/testclient -c 29 unix:socket "@and @and of the the" > log || exit 1 +../api/testclient -c 30 unix:socket "@and @and of the the" > log || exit 1 echo "search D5..." >>$LOG -../api/testclient -c 29 unix:socket "@and @and @and the of of the" > log || exit 1 +../api/testclient -c 30 unix:socket "@and @and @and the of of the" > log || exit 1 echo "search D6..." >>$LOG ../api/testclient -c 15 unix:socket '@and @and in the data' > log || exit 1 @@ -85,22 +94,22 @@ echo "search D8..." >>$LOG # This one failed at early fast-forwards echo "search E1..." >>$LOG -../api/testclient -c 40 unix:socket "@or the utah" > log || exit 1 +../api/testclient -c 41 unix:socket "@or the utah" > log || exit 1 echo "search E2..." >>$LOG -../api/testclient -c 40 unix:socket "@or utah the" > log || exit 1 +../api/testclient -c 41 unix:socket "@or utah the" > log || exit 1 echo "search E3..." >>$LOG ../api/testclient -c 42 unix:socket "@or deposits @or the utah" > log || exit 1 echo "search E4..." >>$LOG -../api/testclient -c 2 unix:socket "@and deposits @or the utah" > log || exit 1 +../api/testclient -c 3 unix:socket "@and deposits @or the utah" > log || exit 1 echo "search E5..." >>$LOG -../api/testclient -c 2 unix:socket "@and @or the utah deposits" > log || exit 1 +../api/testclient -c 3 unix:socket "@and @or the utah deposits" > log || exit 1 echo "search F1..." >>$LOG -../api/testclient -c 23 unix:socket "@not the utah " > log || exit 1 +../api/testclient -c 24 unix:socket "@not the utah " > log || exit 1 echo "search F2..." >>$LOG ../api/testclient -c 10 unix:socket "@not utah the " > log || exit 1