summaryrefslogtreecommitdiffstats
path: root/src/kadmin
diff options
context:
space:
mode:
authorBarry Jaspan <bjaspan@mit.edu>1996-09-26 21:51:54 +0000
committerBarry Jaspan <bjaspan@mit.edu>1996-09-26 21:51:54 +0000
commite34eaf69afd580162b881422d6acfc744e58e9cb (patch)
treec8c7791ccb036dddb6bef83bdd0c700a9310be9f /src/kadmin
parent512ffeff727885e6d612c3a163f0ad27732d8077 (diff)
downloadkrb5-e34eaf69afd580162b881422d6acfc744e58e9cb.tar.gz
krb5-e34eaf69afd580162b881422d6acfc744e58e9cb.tar.xz
krb5-e34eaf69afd580162b881422d6acfc744e58e9cb.zip
* 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
Diffstat (limited to 'src/kadmin')
-rw-r--r--src/kadmin/passwd/ChangeLog5
-rw-r--r--src/kadmin/passwd/unit-test/Makefile.in8
-rw-r--r--src/kadmin/passwd/unit-test/kpasswd.0/principal.exp7
3 files changed, 13 insertions, 7 deletions
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 <bjaspan@mit.edu>
+
+ * 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 <bjaspan@mit.edu>
* 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