* Makefile.in (unit-test-body): Combine -tcp and -udp versions, setting PASS
instead of PROT.
* configure.in: Set and substitute PASS instead of UDP_TEST.
* config/unix.exp: Don't invoke rpc_test_start. Set MULTIPASS, including a
setting for PROT and a dummy to trigger rpc_test_start invocation.
(rpc_test_start): If a server has already been started, call rpc_test_exit to
verify that it's still running.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12503
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-07-01 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (unit-test-body): Combine -tcp and -udp versions,
+ setting PASS instead of PROT.
+ * configure.in: Set and substitute PASS instead of UDP_TEST.
+ * config/unix.exp: Don't invoke rpc_test_start. Set MULTIPASS,
+ including a setting for PROT and a dummy to trigger rpc_test_start
+ invocation.
+ (rpc_test_start): If a server has already been started, call
+ rpc_test_exit to verify that it's still running.
+
2000-06-30 Tom Yu <tlyu@mit.edu>
* server.c: Include gssrpc/pmap_clnt.h in order to get renaming of
unit-test-ok:: unit-test-setup unit-test-body unit-test-cleanup
-unit-test-body:: unit-test-body-tcp @UDP_TEST@
-
-unit-test-body-tcp:
- RPC_TEST_SRVTAB=/tmp/rpc_test_v5srvtab $(ENV_SETUP) \
- $(RUNTEST) SERVER=./server CLIENT=./client \
- KINIT=$(BUILDTOP)/clients/kinit/kinit \
- KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy \
- PROT=-t --tool rpc_test $(RUNTESTFLAGS)
-
-unit-test-body-udp:
+PASS=@PASS@
+unit-test-body:
RPC_TEST_SRVTAB=/tmp/rpc_test_v5srvtab $(ENV_SETUP) \
$(RUNTEST) SERVER=./server CLIENT=./client \
KINIT=$(BUILDTOP)/clients/kinit/kinit \
KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy \
- PROT=-u --tool rpc_test $(RUNTESTFLAGS)
+ PASS="$(PASS)" --tool rpc_test $(RUNTESTFLAGS)
unit-test-setup::
$(ENV_SETUP) $(START_SERVERS)
global server_started
global env
+ if [info exists server_pid] { rpc_test_exit }
+
set env(KRB5_KTNAME) FILE:$env(RPC_TEST_SRVTAB)
verbose "% $SERVER" 1
}
-rpc_test_start
+set MULTIPASS {
+ {tcp PROT=-t dummy=[rpc_test_start]}
+ {udp PROT=-u dummy=[rpc_test_start]}
+}
changequote(<<, >>)
case "$host" in
*-*-solaris2.[012345]*)
- UDP_TEST=
+ PASS=tcp
;;
*)
- UDP_TEST=unit-test-body-udp
+ PASS="tcp udp"
;;
esac
changequote([, ])
-AC_SUBST(UDP_TEST)
+AC_SUBST(PASS)
dnl
CHECK_SIGNALS
KRB5_BUILD_PROGRAM