summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2000-07-01 04:52:51 +0000
committerKen Raeburn <raeburn@mit.edu>2000-07-01 04:52:51 +0000
commit43790411001e8a84e6a2ecaf9c3232c8997258ad (patch)
tree37221dca473f94fc6ab7a7cbf1acb0edb8b5f4a9
parent1ff3e2653da2f73ab3cc4c4f220d7781b43c9362 (diff)
downloadkrb5-43790411001e8a84e6a2ecaf9c3232c8997258ad.tar.gz
krb5-43790411001e8a84e6a2ecaf9c3232c8997258ad.tar.xz
krb5-43790411001e8a84e6a2ecaf9c3232c8997258ad.zip
Run RPC tests with one invocation of DejaGnu rather than two
* 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
-rw-r--r--src/lib/rpc/unit-test/ChangeLog11
-rw-r--r--src/lib/rpc/unit-test/Makefile.in14
-rw-r--r--src/lib/rpc/unit-test/config/unix.exp7
-rw-r--r--src/lib/rpc/unit-test/configure.in6
4 files changed, 23 insertions, 15 deletions
diff --git a/src/lib/rpc/unit-test/ChangeLog b/src/lib/rpc/unit-test/ChangeLog
index a4b859b08a..bd91605d79 100644
--- a/src/lib/rpc/unit-test/ChangeLog
+++ b/src/lib/rpc/unit-test/ChangeLog
@@ -1,3 +1,14 @@
+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
diff --git a/src/lib/rpc/unit-test/Makefile.in b/src/lib/rpc/unit-test/Makefile.in
index 7e2651cf57..df937cd1b2 100644
--- a/src/lib/rpc/unit-test/Makefile.in
+++ b/src/lib/rpc/unit-test/Makefile.in
@@ -44,21 +44,13 @@ unit-test-:
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)
diff --git a/src/lib/rpc/unit-test/config/unix.exp b/src/lib/rpc/unit-test/config/unix.exp
index fe6dd036b8..c880a6f55b 100644
--- a/src/lib/rpc/unit-test/config/unix.exp
+++ b/src/lib/rpc/unit-test/config/unix.exp
@@ -52,6 +52,8 @@ proc rpc_test_start { } {
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
@@ -76,4 +78,7 @@ proc rpc_test_start { } {
}
-rpc_test_start
+set MULTIPASS {
+ {tcp PROT=-t dummy=[rpc_test_start]}
+ {udp PROT=-u dummy=[rpc_test_start]}
+}
diff --git a/src/lib/rpc/unit-test/configure.in b/src/lib/rpc/unit-test/configure.in
index 70dec1213f..f8ecf3541d 100644
--- a/src/lib/rpc/unit-test/configure.in
+++ b/src/lib/rpc/unit-test/configure.in
@@ -13,14 +13,14 @@ AC_SUBST(DO_TEST)
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