X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fxpath%2Ftest2.sh;h=ce997658c3ff91d832511c82f00495481a909613;hb=3038982ea4d46e1562a4e88029199ca09153a839;hp=89cbfe24fda758f60a16c5027e2386866ea21145;hpb=9f7d2fac648dbdba81e007f08ba3fbbb33c273b9;p=idzebra-moved-to-github.git diff --git a/test/xpath/test2.sh b/test/xpath/test2.sh index 89cbfe2..ce99765 100755 --- a/test/xpath/test2.sh +++ b/test/xpath/test2.sh @@ -1,13 +1,16 @@ #!/bin/sh -# $Id: test2.sh,v 1.3 2003-05-21 14:39:23 adam Exp $ +# $Id: test2.sh,v 1.4 2004-06-15 08:06:35 adam Exp $ + +pp=${srcdir:-"."} + LOG=test2.log TMP=test2.tmp rm -f $LOG rm -f $TMP -../../index/zebraidx -l $LOG init || exit 1 -../../index/zebraidx -l $LOG -t grs.sgml update rec.xml || exit 2 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG init || exit 1 +../../index/zebraidx -c $pp/zebra.cfg -l $LOG -t grs.sgml update rec.xml || exit 2 test -f dict*.mf || exit 1 -../../index/zebrasrv -l $LOG -S unix:socket & +../../index/zebrasrv -c $pp/zebra.cfg -l $LOG -S unix:socket & sleep 1 test -f zebrasrv.pid || exit 2 ../api/testclient unix:socket '@attr 1=/Zthes/termName Sauropoda' >$TMP