#!/bin/sh
-# $Id: stop01.sh,v 1.10 2005-01-02 23:21:31 adam Exp $
+# $Id: stop01.sh,v 1.11 2005-01-03 09:19:26 adam Exp $
# test start and stop of the server with -1
pp=${srcdir:-"."}
echo "Starting server with -1 (one shot)..." >>$LOG
../../index/zebrasrv -D -p z.pid -1 -c $pp/zebra1.cfg -l $LOG unix:socket
echo " checking that it runs... " >>$LOG
-test -f z.pid || sleep 1 || test -f z.pid || exit 1
+test -f z.pid || exit 1
PID=`cat z.pid`
kill -CHLD $PID >/dev/null 2>&1 || exit 1
#!/bin/sh
-# $Id: stop02.sh,v 1.10 2005-01-02 23:21:31 adam Exp $
+# $Id: stop02.sh,v 1.11 2005-01-03 09:19:26 adam Exp $
# test start and stop of the server with -S
pp=${srcdir:-"."}
echo "Starting server with -S (static)..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra1.cfg -l $LOG unix:socket
echo " checking that it runs... " >>$LOG
-test -f z.pid || sleep 1 || test -f z.pid || exit 1
+test -f z.pid || exit 1
PID=`cat z.pid`
kill -CHLD $PID >/dev/null 2>&1 || exit 1
#!/bin/sh
-# $Id: stop03.sh,v 1.9 2005-01-02 23:21:31 adam Exp $
+# $Id: stop03.sh,v 1.10 2005-01-03 09:19:26 adam Exp $
# test start and stop of the threaded server (-T)
pp=${srcdir:-"."}
exit 0
fi
+echo " checking that it runs..." >>$LOG
+test -f z.pid || exit 1
+
PID=`cat z.pid`
echo " checking that it still runs..." >>$LOG
kill -CHLD $PID >/dev/null 2>&1 || exit 1
#!/bin/sh
-# $Id: stop04.sh,v 1.8 2005-01-02 23:21:31 adam Exp $
+# $Id: stop04.sh,v 1.9 2005-01-03 09:19:26 adam Exp $
# test start and stop of the forked server
pp=${srcdir:-"."}
echo "Starting server with (forked)..." >>$LOG
../../index/zebrasrv -D -p z.pid -c $pp/zebra1.cfg -l $LOG tcp:@:9901
-sleep 1
echo " checking that it runs... " >>$LOG
-test -f z.pid || sleep 5 || test -f z.pid || exit 1
+test -f z.pid || exit 1
PID=`cat z.pid`
kill -CHLD $PID >/dev/null 2>&1 || exit 1
#!/bin/sh
-# $Id: test1.sh,v 1.11 2005-01-02 23:21:31 adam Exp $
+# $Id: test1.sh,v 1.12 2005-01-03 09:19:26 adam Exp $
pp=${srcdir:-"."}
echo "starting server..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra1.cfg -l $LOG tcp:@:9901
-sleep 1
echo "checking it runs..." >>$LOG
-test -f z.pid || sleep 5 || test -f z.pid || exit 1
+test -f z.pid || exit 1
echo "search 1..." >>$LOG
../api/testclient localhost:9901 utah > log || exit 1
#!/bin/sh
-# $Id: test2.sh,v 1.11 2005-01-02 23:21:31 adam Exp $
+# $Id: test2.sh,v 1.12 2005-01-03 09:19:26 adam Exp $
pp=${srcdir:-"."}
echo "starting server..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901
-sleep 1
-test -f z.pid || sleep 5 || test -f z.pid || exit 1
+test -f z.pid || exit 1
echo "search 1..." >>$LOG
../api/testclient localhost:9901 "@attr 1=4 utah" > log || exit 1
#!/bin/sh
-# $Id: test3.sh,v 1.5 2005-01-02 23:21:31 adam Exp $
+# $Id: test3.sh,v 1.6 2005-01-03 09:19:26 adam Exp $
# Testing searches with lots of @and operators
# in order to test the fast-forward operation of rsets
echo "starting server..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra1.cfg $DBG -l $LOG tcp:@:9901
-sleep 1
echo "checking it runs..." >>$LOG
test -f z.pid || exit 1
#!/bin/sh
-# $Id: timing1.sh,v 1.10 2005-01-02 23:21:31 adam Exp $
+# $Id: timing1.sh,v 1.11 2005-01-03 09:19:26 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
echo " starting server..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901
-sleep 1
test -f z.pid || exit 1
sleep 2
#!/bin/sh
-# $Id: timing2.sh,v 1.10 2005-01-02 23:21:31 adam Exp $
+# $Id: timing2.sh,v 1.11 2005-01-03 09:19:26 adam Exp $
# Demonstrated that updates depend on file timestamps
pp=${srcdir:-"."}
echo " starting server..." >>$LOG
../../index/zebrasrv -D -p z.pid -S -c $pp/zebra2.cfg -l $LOG tcp:@:9901
-sleep 1
test -f z.pid || exit 1
+sleep 1
touch timeref2 # make a later timestamp
echo " update 1..." >>$LOG