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/rcp.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/rcp.exp')
-rw-r--r-- | src/tests/dejagnu/krb-standalone/rcp.exp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/dejagnu/krb-standalone/rcp.exp b/src/tests/dejagnu/krb-standalone/rcp.exp index 7c3948219..d4d9f512b 100644 --- a/src/tests/dejagnu/krb-standalone/rcp.exp +++ b/src/tests/dejagnu/krb-standalone/rcp.exp @@ -32,6 +32,7 @@ if {![get_hostname] \ # daemon). proc start_rsh_daemon { } { + global REALMNAME global KRSHD global RCP global tmppwd @@ -40,7 +41,7 @@ proc start_rsh_daemon { } { # 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 -P [file dirname $RCP] -S $tmppwd/srvtab -M KRBTEST.COM + spawn $KRSHD -k -c -D 3544 -P [file dirname $RCP] -S $tmppwd/srvtab -M $REALMNAME set krshd_spawn_id $spawn_id set krshd_pid [exp_pid] @@ -104,6 +105,7 @@ proc check_file { filename } { # Test copying one file to another. proc rcp_one_test { testname options frompref topref } { + global REALMNAME global RCP global tmppwd @@ -114,9 +116,9 @@ proc rcp_one_test { testname options frompref topref } { set from [format "%s%s" $frompref $tmppwd/rcp-test] set to [format "%s%s" $topref $tmppwd/copy] - send_log "$RCP $options -D 3544 -N -k KRBTEST.COM $from $to\n" - verbose "$RCP $options -D 3544 -N -k KRBTEST.COM $from $to" - catch "exec $RCP $options -D 3544 -N -k KRBTEST.COM $from $to" exec_output + send_log "$RCP $options -D 3544 -N -k $REALMNAME $from $to\n" + verbose "$RCP $options -D 3544 -N -k $REALMNAME $from $to" + catch "exec $RCP $options -D 3544 -N -k $REALMNAME $from $to" exec_output if ![string match "" $exec_output] { send_log "$exec_output\n" |