* configure.in: add unit-test subdirectory
authorBarry Jaspan <bjaspan@mit.edu>
Fri, 20 Sep 1996 21:33:38 +0000 (21:33 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Fri, 20 Sep 1996 21:33:38 +0000 (21:33 +0000)
* unit-test/: create configure.in and Makefile.in

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9100 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/passwd/ChangeLog
src/kadmin/passwd/configure.in
src/kadmin/passwd/unit-test/Makefile.in [new file with mode: 0644]
src/kadmin/passwd/unit-test/configure.in [new file with mode: 0644]

index 7caf2c3f1f26288cf298a63bc004a4aa6b11baa2..09ac420ac9bbc8034074835629c55ece55a5cefe 100644 (file)
@@ -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"
index 8cedcbd52678cc9a988c0f7a411549dd106fcc51..57158196268d65c6c344184418a1c4f1a6f0b2fe 100644 (file)
@@ -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 (file)
index 0000000..aa25eea
--- /dev/null
@@ -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 (file)
index 0000000..539cb73
--- /dev/null
@@ -0,0 +1,3 @@
+AC_INIT(helpers.exp)
+CONFIG_RULES
+V5_AC_OUTPUT_MAKEFILE