X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fgils%2Ftest2.sh;h=db2714bb53fe4d5dc8e43d056546d07fb61d1294;hb=23c386f2b4511acfdb389adc7f48f15d284c639c;hp=cb568aebf5647cdfab22ef4954099dd50ea72211;hpb=6cc6c9be5dd96693ad594072f6a7c16bd59e4a78;p=idzebra-moved-to-github.git diff --git a/test/gils/test2.sh b/test/gils/test2.sh index cb568ae..db2714b 100755 --- a/test/gils/test2.sh +++ b/test/gils/test2.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: test2.sh,v 1.12 2005-01-03 09:19:26 adam Exp $ +# $Id: test2.sh,v 1.13 2005-01-03 12:08:04 adam Exp $ pp=${srcdir:-"."} @@ -20,18 +20,18 @@ echo "killing old server (if any)..." >>$LOG test -f z.pid && kill -9 `cat z.pid` echo "starting server..." >>$LOG -../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 +../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG unix:socket test -f z.pid || exit 1 echo "search 1..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 9$" log >/dev/null || exit 1 echo "update 3..." >>$LOG ../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 2..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 9$" log >/dev/null || exit 1 echo "making test records..." >>$LOG @@ -41,7 +41,7 @@ echo "indexing them..." >>$LOG ../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 3..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 touch $pp/records/esdd0001.grs @@ -49,7 +49,7 @@ echo "indexing again..." >>$LOG ../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 4..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 echo "making another test record..." >>$LOG @@ -59,7 +59,7 @@ echo "indexing it too..." >>$LOG ../../index/zebraidx -l $LOG -c $pp/zebra2.cfg update $pp/records || exit 1 echo "search 5..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 10$" log >/dev/null || exit 1 sleep 1 @@ -72,11 +72,11 @@ echo "indexing it..." >>$LOG sleep 1 echo "search 6..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 grep "^Result count: 9$" log >/dev/null || exit 1 echo "search 7..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 xyz" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 xyz" > log || exit 1 grep "^Result count: 1$" log >/dev/null || exit 1 echo "stopping server..." >>$LOG