From: Ken Raeburn Date: Sat, 1 Jul 2000 04:52:51 +0000 (+0000) Subject: Run RPC tests with one invocation of DejaGnu rather than two X-Git-Tag: krb5-1.3-alpha1~2034 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43790411001e8a84e6a2ecaf9c3232c8997258ad;p=krb5.git 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 --- diff --git a/src/lib/rpc/unit-test/ChangeLog b/src/lib/rpc/unit-test/ChangeLog index a4b859b08..bd91605d7 100644 --- a/src/lib/rpc/unit-test/ChangeLog +++ b/src/lib/rpc/unit-test/ChangeLog @@ -1,3 +1,14 @@ +2000-07-01 Ken Raeburn + + * 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 * 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 7e2651cf5..df937cd1b 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 fe6dd036b..c880a6f55 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 70dec1213..f8ecf3541 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