+Fri Sep 20 17:32:19 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * configure.in: add unit-test subdirectory
+
+ * unit-test/: create configure.in and Makefile.in
+
Tue Sep 10 14:17:45 1996 Tom Yu <tlyu@mit.edu>
* kpasswd.M: remove ".so man1/header.doc"
--- /dev/null
+USER = root
+
+check unit-test:: unit-test-setup unit-test-body unit-test-cleanup
+
+unit-test-body::
+ $(ENV_SETUP) $(RUNTEST) KPASSWD=../kpasswd \
+ KINIT=$(BUILDTOP)/clients/kinit/kinit \
+ KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy \
+ USER=$(USER) --tool kpasswd
+
+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)