X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fxpath%2Ftest2.sh;h=d6068afb3087dd19851f8e09d631d57c7d2129d0;hb=67700507285e0823f80e097fa0b1aae5968451bb;hp=d6df208b6237fda1e461d85bf50921d30f8dbf3a;hpb=4e68a651c499e3acc77fbf2dbedd294855206f00;p=idzebra-moved-to-github.git diff --git a/test/xpath/test2.sh b/test/xpath/test2.sh index d6df208..d6068af 100755 --- a/test/xpath/test2.sh +++ b/test/xpath/test2.sh @@ -1,16 +1,23 @@ #!/bin/sh +# $Id: test2.sh,v 1.5 2004-06-15 09:43:34 adam Exp $ + +pp=${srcdir:-"."} + LOG=test2.log TMP=test2.tmp rm -f $LOG +rm -f $TMP +../../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/termName Sauropoda' >$TMP +../api/testclient unix:socket '@attr 1=/Zthes/termName Sauropoda' >$TMP echo 'Killing server' >>$LOG kill `cat zebrasrv.pid` || exit 3 cat $TMP >>$LOG echo 'Checking that result count is 1' >>$LOG -grep "^Result count: 1$" $TMP || exit 4 +grep "^Result count: 1$" $TMP >/dev/null || exit 4 echo 'Test OK' >>$LOG