diff options
author | Mark Eichin <eichin@mit.edu> | 1996-03-13 21:09:29 +0000 |
---|---|---|
committer | Mark Eichin <eichin@mit.edu> | 1996-03-13 21:09:29 +0000 |
commit | d36679419b9f35eac17b20a6db62fd422c545884 (patch) | |
tree | 3dd9fd3563f3d2ee7eaf061155baf3f834488f34 /src/tests/dejagnu/krb-standalone/rsh.exp | |
parent | b65a70d000fe0e9bd4645aa923a492298827bc92 (diff) | |
download | krb5-d36679419b9f35eac17b20a6db62fd422c545884.tar.gz krb5-d36679419b9f35eac17b20a6db62fd422c545884.tar.xz krb5-d36679419b9f35eac17b20a6db62fd422c545884.zip |
replace KRBTEST.COM with $REALMNAME. Now you can change the realm name the
tests use by "runtest --tool krb --srcdir whatever REALMNAME=WHITEHOUSE.GOV"
also added -- to kadmin tests so they work with any getopt
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7625 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/dejagnu/krb-standalone/rsh.exp')
-rw-r--r-- | src/tests/dejagnu/krb-standalone/rsh.exp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tests/dejagnu/krb-standalone/rsh.exp b/src/tests/dejagnu/krb-standalone/rsh.exp index c91f8d57f9..893d74ede7 100644 --- a/src/tests/dejagnu/krb-standalone/rsh.exp +++ b/src/tests/dejagnu/krb-standalone/rsh.exp @@ -31,6 +31,7 @@ if {![get_hostname] \ # A procedure to start up the rsh daemon. proc start_rsh_daemon { option } { + global REALMNAME global KRSHD global tmppwd global krshd_spawn_id @@ -38,7 +39,7 @@ proc start_rsh_daemon { option } { # The -D argument tells it to accept a single connection, so we # don't need to use inetd. The 3544 is the port to listen at. - spawn $KRSHD -k -c -D 3544 -S $tmppwd/srvtab -M KRBTEST.COM -A $option + spawn $KRSHD -k -c -D 3544 -S $tmppwd/srvtab -M $REALMNAME -A $option set krshd_spawn_id $spawn_id set krshd_pid [exp_pid] @@ -64,6 +65,7 @@ proc stop_rsh_daemon { } { # we get some sort of error. proc rsh_test { } { + global REALMNAME global RSH global KEY global BINSH @@ -86,7 +88,7 @@ proc rsh_test { } { # Run rsh date. set testname "date" - spawn $RSH $hostname -k KRBTEST.COM -D 3544 -A date + spawn $RSH $hostname -k $REALMNAME -D 3544 -A date expect { -re "\[A-Za-z0-9 :\]+\[\r\n\]+$" { set result $expect_out(0,string) @@ -119,7 +121,7 @@ proc rsh_test { } { set failed no start_rsh_daemon -ek set testname "encrypted rsh" - spawn $RSH $hostname -x -k KRBTEST.COM -D 3544 -A echo hello + spawn $RSH $hostname -x -k $REALMNAME -D 3544 -A echo hello expect { "hello" { } timeout { @@ -146,7 +148,7 @@ proc rsh_test { } { # Check stderr start_rsh_daemon -k set testname "rsh to stderr" - spawn $RSH $hostname -k KRBTEST.COM -D 3544 -A $BINSH -c "'echo hello 1>&2'" + spawn $RSH $hostname -k $REALMNAME -D 3544 -A $BINSH -c "'echo hello 1>&2'" expect { "hello" { } timeout { @@ -167,7 +169,7 @@ proc rsh_test { } { start_rsh_daemon -e set testname "encrypted rsh to stderr" - spawn $RSH $hostname -x -k KRBTEST.COM -D 3544 -A $BINSH -c "'echo hello 1>&2'" + spawn $RSH $hostname -x -k $REALMNAME -D 3544 -A $BINSH -c "'echo hello 1>&2'" expect { "hello" { } timeout { |