X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fgils%2Ftiming1.sh;h=286bed35342d6b1235d542dcb67b491dc5efa004;hb=442d401f2a05df0bfbb6a7d43eb30a85fc6fe180;hp=a394281a4699209d746cabf697769a1c082f3009;hpb=339db25a87b77481458e80a2b932f7161fe597c6;p=idzebra-moved-to-github.git diff --git a/test/gils/timing1.sh b/test/gils/timing1.sh index a394281..286bed3 100755 --- a/test/gils/timing1.sh +++ b/test/gils/timing1.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: timing1.sh,v 1.10 2005-01-02 23:21:31 adam Exp $ +# $Id: timing1.sh,v 1.12 2005-01-03 12:08:04 adam Exp $ # tests that updates are reflected immediately # in the registers. # Repeatedly modifies a record and counts hits. # Test 1: with good sleeps in every between - should pass always @@ -15,8 +15,7 @@ rm -f $pp/records/esdd000[12].grs # these should not be here, will be created la ../../index/zebraidx -c $pp/zebra2.cfg -l $LOG init || exit 1 echo " starting server..." >>$LOG -../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901 -sleep 1 +../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG unix:socket test -f z.pid || exit 1 sleep 2 @@ -25,7 +24,7 @@ echo " update 1..." >>$LOG sleep 2 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 sleep 2 @@ -37,7 +36,7 @@ echo " indexing it..." >>$LOG sleep 2 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: 10$" log >/dev/null || exit 1 sleep 2 @@ -50,7 +49,7 @@ echo " indexing it..." >>$LOG sleep 2 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 echo " checking..." >>$LOG grep "^Result count: 9$" log >/dev/null || exit 1 @@ -64,7 +63,7 @@ echo " indexing it..." >>$LOG sleep 2 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 echo " checking..." >>$LOG grep "^Result count: 10$" log >/dev/null || exit 1 @@ -78,7 +77,7 @@ echo " indexing it..." >>$LOG sleep 2 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 echo " checking..." >>$LOG grep "^Result count: 9$" log >/dev/null || exit 1 @@ -93,7 +92,7 @@ echo " indexing it..." >>$LOG sleep 2 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 echo " checking..." >>$LOG grep "^Result count: 10$" log >/dev/null || exit 1 @@ -109,7 +108,7 @@ echo " indexing it..." >>$LOG sleep 2 echo " search 7..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 echo " checking..." >>$LOG grep "^Result count: 9$" log >/dev/null || exit 1 @@ -123,7 +122,7 @@ echo " indexing it..." >>$LOG sleep 2 echo " search 8..." >>$LOG -../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1 +../api/testclient unix:socket "@attr 1=4 utah" > log || exit 1 echo " checking..." >>$LOG grep "^Result count: 10$" log >/dev/null || exit 1