From d0b2f6d19f1743e0635e9650af5b62cf0235c294 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 7 Oct 1994 05:28:39 +0000 Subject: [PATCH] Add general kadmin/kdb confidence check git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4477 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/ChangeLog | 4 ++++ src/tests/Makefile.in | 28 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/tests/ChangeLog b/src/tests/ChangeLog index 7f3228b0c..4c377544f 100644 --- a/src/tests/ChangeLog +++ b/src/tests/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 7 01:26:42 1994 Theodore Y. Ts'o (tytso@dcl) + + * Makefile.in (check): Add general admin/kdb confidence check. + Thu Oct 6 21:41:46 1994 Theodore Y. Ts'o (tytso@dcl) * configure.in: Add recursive "make check" diff --git a/src/tests/Makefile.in b/src/tests/Makefile.in index 76388e8c6..09cff7c15 100644 --- a/src/tests/Makefile.in +++ b/src/tests/Makefile.in @@ -1,2 +1,30 @@ CFLAGS = $(CCOPTS) LDFLAGS = -g + +TEST_DB = ./testdb +TEST_REALM = FOO.TEST.REALM +TEST_MKEY = footes +TEST_NUM = 100 +TEST_PREFIX = "foo bar" + +KADMIN_OPTS= -d $(TEST_DB) -r $(TEST_REALM) -P $(TEST_MKEY) +KTEST_OPTS= $(KADMIN_OPTS) -p $(TEST_PREFIX) -n $(TEST_NUM) + +check:: kdb_check + +kdb_check: + $(RM) $(TEST_DB)* + ../admin/create/kdb5_create $(KADMIN_OPTS) + ../tests/create/kdb5_mkdums $(KTEST_OPTS) + ../tests/verify/kdb5_verify $(KTEST_OPTS) + ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "dump_db $(TEST_DB).dump" + ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "load_db $(TEST_DB).dump $(TEST_DB)" + ../tests/verify/kdb5_verify $(KTEST_OPTS) + ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "dump_db $(TEST_DB).dump2" + sort $(TEST_DB).dump > $(TEST_DB).sort + sort $(TEST_DB).dump2 > $(TEST_DB).sort2 + cmp $(TEST_DB).sort $(TEST_DB).sort2 + ../admin/destroy/kdb5_destroy -d $(TEST_DB) -f + $(RM) $(TEST_DB)* + + -- 2.26.2