X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fxpath%2Ftest3.sh;fp=test%2Fxpath%2Ftest3.sh;h=3b0145deea25ed05c12dcfb1fbb2f41956f94676;hb=4e68a651c499e3acc77fbf2dbedd294855206f00;hp=0000000000000000000000000000000000000000;hpb=cab06858d0404c4cd9dff44a38db53c81b8bd646;p=idzebra-moved-to-github.git diff --git a/test/xpath/test3.sh b/test/xpath/test3.sh new file mode 100755 index 0000000..3b0145d --- /dev/null +++ b/test/xpath/test3.sh @@ -0,0 +1,16 @@ +#!/bin/sh +LOG=test3.log +TMP=test3.tmp +rm -f $LOG +test -f dict*.mf || exit 1 +../../index/zebrasrv -l $LOG -S unix:socket & +sleep 1 +test -f zebrasrv.pid || exit 2 +../testclient unix:socket '@attr 1=/Zthes/relation/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 >/dev/null || exit 4 +echo 'Test OK' >>$LOG +