summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kadmin/passwd/ChangeLog6
-rw-r--r--src/kadmin/passwd/configure.in1
-rw-r--r--src/kadmin/passwd/unit-test/Makefile.in16
-rw-r--r--src/kadmin/passwd/unit-test/configure.in3
4 files changed, 26 insertions, 0 deletions
diff --git a/src/kadmin/passwd/ChangeLog b/src/kadmin/passwd/ChangeLog
index 7caf2c3f1..09ac420ac 100644
--- a/src/kadmin/passwd/ChangeLog
+++ b/src/kadmin/passwd/ChangeLog
@@ -1,3 +1,9 @@
+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"
diff --git a/src/kadmin/passwd/configure.in b/src/kadmin/passwd/configure.in
index 8cedcbd52..571581962 100644
--- a/src/kadmin/passwd/configure.in
+++ b/src/kadmin/passwd/configure.in
@@ -1,5 +1,6 @@
AC_INIT(kpasswd.c)
CONFIG_RULES
+AC_CONFIG_SUBDIRS(unit-test)
AC_PROG_INSTALL
AC_PROG_AWK
USE_KADMCLNT_LIBRARY
diff --git a/src/kadmin/passwd/unit-test/Makefile.in b/src/kadmin/passwd/unit-test/Makefile.in
new file mode 100644
index 000000000..aa25eea70
--- /dev/null
+++ b/src/kadmin/passwd/unit-test/Makefile.in
@@ -0,0 +1,16 @@
+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)
diff --git a/src/kadmin/passwd/unit-test/configure.in b/src/kadmin/passwd/unit-test/configure.in
new file mode 100644
index 000000000..539cb73c6
--- /dev/null
+++ b/src/kadmin/passwd/unit-test/configure.in
@@ -0,0 +1,3 @@
+AC_INIT(helpers.exp)
+CONFIG_RULES
+V5_AC_OUTPUT_MAKEFILE