From: Barry Jaspan Date: Fri, 20 Sep 1996 21:33:38 +0000 (+0000) Subject: * configure.in: add unit-test subdirectory X-Git-Tag: krb5-1.0-freeze1~322 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a67adf453eb72787f5bef983750684e48257eb49;p=krb5.git * configure.in: add unit-test subdirectory * unit-test/: create configure.in and Makefile.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9100 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 + + * configure.in: add unit-test subdirectory + + * unit-test/: create configure.in and Makefile.in + Tue Sep 10 14:17:45 1996 Tom Yu * 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