diff options
| author | Barry Jaspan <bjaspan@mit.edu> | 1996-09-20 21:33:38 +0000 |
|---|---|---|
| committer | Barry Jaspan <bjaspan@mit.edu> | 1996-09-20 21:33:38 +0000 |
| commit | a67adf453eb72787f5bef983750684e48257eb49 (patch) | |
| tree | 766054be8628177c30606c2a82bc5acfc2df5945 /src | |
| parent | 1a5f4fe4df90c76ff9cb823f3cb3ce771e910eef (diff) | |
| download | krb5-a67adf453eb72787f5bef983750684e48257eb49.tar.gz krb5-a67adf453eb72787f5bef983750684e48257eb49.tar.xz krb5-a67adf453eb72787f5bef983750684e48257eb49.zip | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/kadmin/passwd/ChangeLog | 6 | ||||
| -rw-r--r-- | src/kadmin/passwd/configure.in | 1 | ||||
| -rw-r--r-- | src/kadmin/passwd/unit-test/Makefile.in | 16 | ||||
| -rw-r--r-- | src/kadmin/passwd/unit-test/configure.in | 3 |
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 |
