+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
-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)
#### 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