1 echo "testing without stored keys (zebra1.cfg)"
3 echo "See if servers are running...."
9 rm -f records/esdd000[12].grs # these should not be here, will be created later
11 ../../index/zebraidx -l idx.log -c zebra1.cfg init || exit 1
14 ../../index/zebraidx -l idx.log -c zebra1.cfg update records || exit 1
16 echo "killing old server (if any)..."
17 test -f zebrasrv.pid && kill `cat zebrasrv.pid`
21 echo "starting server..."
22 ../../index/zebrasrv -S -c zebra1.cfg -l srv.log tcp:@:9901 &
25 echo "checking it runs..."
26 test -f zebrasrv.pid || exit 1
29 ../testclient localhost:9901 utah > log || exit 1
30 grep "^Result count: 17$" log || exit 1
33 ../testclient localhost:9901 "@or utah the" > log || exit 1
34 grep "^Result count: 40$" log || exit 1
37 ../testclient localhost:9901 "@attr 1=4 the" > log || exit 1
38 grep "^Result count: 1$" log || exit 1
41 ../testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
42 grep "^Result count: 9$" log || exit 1
45 ../../index/zebraidx -l idx.log -c zebra1.cfg update records || exit 1
48 ../testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
49 grep "^Result count: 18$" log || exit 1
51 echo "stopping server..."
52 test -f zebrasrv.pid || exit 1
53 kill `cat zebrasrv.pid` || exit 1