From: Barry Jaspan Date: Thu, 26 Sep 1996 21:51:54 +0000 (+0000) Subject: * unit-test/Makefile.in, unit-test/kpasswd.0/principal.exp: use X-Git-Tag: krb5-1.0-freeze1~299 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e34eaf69afd580162b881422d6acfc744e58e9cb;p=krb5.git * unit-test/Makefile.in, unit-test/kpasswd.0/principal.exp: use whoami instead of user (USER princ now created by init_db) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9123 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/passwd/ChangeLog b/src/kadmin/passwd/ChangeLog index 09ac420ac..8ea7fa321 100644 --- a/src/kadmin/passwd/ChangeLog +++ b/src/kadmin/passwd/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 26 17:50:23 1996 Barry Jaspan + + * unit-test/Makefile.in, unit-test/kpasswd.0/principal.exp: use + whoami instead of user (USER princ now created by init_db) + Fri Sep 20 17:32:19 1996 Barry Jaspan * configure.in: add unit-test subdirectory diff --git a/src/kadmin/passwd/unit-test/Makefile.in b/src/kadmin/passwd/unit-test/Makefile.in index aa25eea70..76ca9e067 100644 --- a/src/kadmin/passwd/unit-test/Makefile.in +++ b/src/kadmin/passwd/unit-test/Makefile.in @@ -1,16 +1,12 @@ -USER = root - check unit-test:: unit-test-setup unit-test-body unit-test-cleanup unit-test-body:: - $(ENV_SETUP) $(RUNTEST) KPASSWD=../kpasswd \ + $(ENV_SETUP) $(RUNTEST) --tool kpasswd KPASSWD=../kpasswd \ KINIT=$(BUILDTOP)/clients/kinit/kinit \ - KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy \ - USER=$(USER) --tool kpasswd + KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy unit-test-setup:: $(ENV_SETUP) $(START_SERVERS) - echo "source \$$env(TCLUTIL); catch {ovsec_kadm_init admin admin \$$OVSEC_KADM_ADMIN_SERVICE null \$$OVSEC_KADM_STRUCT_VERSION \$$OVSEC_KADM_API_VERSION_1 server_handle; ovsec_kadm_create_principal \$$server_handle [simple_principal $(USER)] {OVSEC_KADM_PRINCIPAL} $(USER); ovsec_kadm_destroy \$$server_handle;}; if {[info exists errorInfo]} { puts stderr \$$errorInfo; exit 1; }" | $(ENV_SETUP) $(CLNTTCL) unit-test-cleanup:: $(ENV_SETUP) $(STOP_SERVERS) diff --git a/src/kadmin/passwd/unit-test/kpasswd.0/principal.exp b/src/kadmin/passwd/unit-test/kpasswd.0/principal.exp index e2bc20569..9cfff69f6 100644 --- a/src/kadmin/passwd/unit-test/kpasswd.0/principal.exp +++ b/src/kadmin/passwd/unit-test/kpasswd.0/principal.exp @@ -19,7 +19,12 @@ kdestroy #### no principal specified -set whoami $USER +if {[info exists env(USER)]} { + set whoami $env(USER) +} else { + set whoami [exec whoami] +} + test_win {} {B.7: default nonexisting ccache(1)} $whoami $whoami newpass test_win {} {B.7: default nonexisting ccache(2)} $whoami newpass $whoami