X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=test%2Fgils%2Ftest3.sh;h=fb5e07b90532b961debcad64ab113ead6ea8c018;hb=6c5eead59b04271013219c4e71b3a1314ced4957;hp=269aab7cb693c23cfd20b41106acb0d40fbf800e;hpb=66389dd83548212275fda1dbe09a242c947afa30;p=idzebra-moved-to-github.git diff --git a/test/gils/test3.sh b/test/gils/test3.sh index 269aab7..fb5e07b 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.8 2006-04-27 10:52:26 marc 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