summaryrefslogtreecommitdiffstats
path: root/src/lib/rpc/unit-test/config
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 /src/lib/rpc/unit-test/config
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
Diffstat (limited to 'src/lib/rpc/unit-test/config')
-rw-r--r--src/lib/rpc/unit-test/config/unix.exp7
1 files changed, 6 insertions, 1 deletions
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]}
+}