From 718c2701d6e1f81a8826d4f5c639cc707b92aa50 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 8 Jun 1995 19:08:46 +0000 Subject: [PATCH] Add logging section to profile, export profile to root shell git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5977 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/config/ChangeLog | 5 +++++ src/tests/dejagnu/config/default.exp | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/tests/dejagnu/config/ChangeLog b/src/tests/dejagnu/config/ChangeLog index b1ddcfa08..b7ceeaa52 100644 --- a/src/tests/dejagnu/config/ChangeLog +++ b/src/tests/dejagnu/config/ChangeLog @@ -1,4 +1,9 @@ +Thu Jun 8 14:58:15 EDT 1995 Paul Park (pjpark@mit.edu) + * default.exp - Add logging section to the profile. Also, export + profile location to root shell. + + Mon Jun 5 16:09:25 EDT 1995 Paul Park (pjpark@mit.edu) * default.exp - Reverse prompting order for kadmin5. diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp index 31f515a37..240cb5761 100644 --- a/src/tests/dejagnu/config/default.exp +++ b/src/tests/dejagnu/config/default.exp @@ -203,6 +203,7 @@ proc get_hostname { } { proc setup_kerberos_files { } { global hostname global domain + global tmppwd if ![get_hostname] { return 0 @@ -223,6 +224,12 @@ proc setup_kerberos_files { } { puts $conffile "\[domain_realm\]" puts $conffile " .$domain = KRBTEST.COM" puts $conffile " $domain = KRBTEST.COM" + puts $conffile "" + puts $conffile "\[logging\]" + puts $conffile " admin_server = STDERR" + puts $conffile " admin_server = FILE:$tmppwd/kadmind5.log" + puts $conffile " kdc = FILE:$tmppwd/kdc.log" + puts $conffile " default = FILE:$tmppwd/others.log" close $conffile } @@ -1026,6 +1033,17 @@ proc setup_root_shell { testname } { -re "$ROOT_PROMPT" { } } + # Set up our krb5.conf + send "KRB5_CONFIG=$tmppwd/krb5.conf\r" + expect { + -re "$ROOT_PROMPT" { } + } + send "export KRB5_CONFIG\r" + expect { + -re "$ROOT_PROMPT" { } + } + + # Move over to the right directory. set dir [pwd] send "cd $dir\r" -- 2.26.2