X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fxpath%2Ftest3.sh;h=61ca51975345247e506b2f4692bcff2c31810f71;hb=a9eae0225b1a51b0257f80d9da9f95475dd04f53;hp=b37859e4cc59e3cc29ed7564c45f2a5f73cd887f;hpb=e93e9d110b6bb2596e011de5fb0c8825ac2fe2b2;p=idzebra-moved-to-github.git diff --git a/test/xpath/test3.sh b/test/xpath/test3.sh index b37859e..61ca519 100755 --- a/test/xpath/test3.sh +++ b/test/xpath/test3.sh @@ -1,16 +1,19 @@ #!/bin/sh -# $Id: test3.sh,v 1.2 2003-05-06 17:39:01 adam Exp $ +# $Id: test3.sh,v 1.5 2004-06-15 09:43:34 adam Exp $ + +pp=${srcdir:-"."} + LOG=test3.log TMP=test3.tmp rm -f $LOG rm -f $TMP -../../index/zebraidx -l $LOG init || exit 1 -../../index/zebraidx -l $LOG -t grs.sgml update rec || 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 $pp/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 -../testclient unix:socket '@attr 1=/Zthes/relation/termName Sauropoda' >$TMP +../api/testclient unix:socket '@attr 1=/Zthes/relation/termName Sauropoda' >$TMP echo 'Killing server' >>$LOG kill `cat zebrasrv.pid` || exit 3 cat $TMP >>$LOG