Add test for old dump format
authorPaul Park <pjpark@mit.edu>
Fri, 1 Sep 1995 18:39:47 +0000 (18:39 +0000)
committerPaul Park <pjpark@mit.edu>
Fri, 1 Sep 1995 18:39:47 +0000 (18:39 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6652 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/ChangeLog
src/tests/Makefile.in

index 06e68a6582f5acf05341d5336d3f0cf7871d9675..8c8dcc9bb83a6538e0e64aa4e9d4e7ca36d98f1e 100644 (file)
@@ -1,3 +1,7 @@
+
+Fri Sep 1 14:39:07 EDT 1995    Paul Park       (pjpark@mit.edu)
+       * Makefile.in - Add test for "old" dump format.
+
 Thu Aug 24 18:48:01 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * .Sanitize: Update file list
index d84ab2fa0c6c4ad160f8a954a6f9cc075cc5c473..ff6c8e18929b207efc9c3f771e409f9b7887582d 100644 (file)
@@ -18,6 +18,7 @@ kdb_check:
        LD_LIBRARY_PATH=$(TOPLIBD) ../tests/create/kdb5_mkdums $(KTEST_OPTS) 
        LD_LIBRARY_PATH=$(TOPLIBD) ../tests/verify/kdb5_verify $(KTEST_OPTS) 
        LD_LIBRARY_PATH=$(TOPLIBD) ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "dump_db $(TEST_DB).dump"
+       LD_LIBRARY_PATH=$(TOPLIBD) ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "dump_db -old $(TEST_DB).odump"
        LD_LIBRARY_PATH=$(TOPLIBD) ../admin/destroy/kdb5_destroy -d $(TEST_DB) -f
        LD_LIBRARY_PATH=$(TOPLIBD) ../admin/edit/kdb5_edit -r $(TEST_REALM) -R "load_db $(TEST_DB).dump $(TEST_DB)"
        LD_LIBRARY_PATH=$(TOPLIBD) ../tests/verify/kdb5_verify $(KTEST_OPTS) 
@@ -26,6 +27,13 @@ kdb_check:
        sort $(TEST_DB).dump2 > $(TEST_DB).sort2
        cmp $(TEST_DB).sort $(TEST_DB).sort2
        LD_LIBRARY_PATH=$(TOPLIBD) ../admin/destroy/kdb5_destroy -d $(TEST_DB) -f
+       LD_LIBRARY_PATH=$(TOPLIBD) ../admin/edit/kdb5_edit -r $(TEST_REALM) -R "load_db -old $(TEST_DB).odump $(TEST_DB)"
+       LD_LIBRARY_PATH=$(TOPLIBD) ../tests/verify/kdb5_verify $(KTEST_OPTS) 
+       LD_LIBRARY_PATH=$(TOPLIBD) ../admin/edit/kdb5_edit $(KADMIN_OPTS) -R "dump_db -old $(TEST_DB).odump2"
+       sort $(TEST_DB).odump > $(TEST_DB).osort
+       sort $(TEST_DB).odump2 > $(TEST_DB).osort2
+       cmp $(TEST_DB).osort $(TEST_DB).osort2
+       LD_LIBRARY_PATH=$(TOPLIBD) ../admin/destroy/kdb5_destroy -d $(TEST_DB) -f
        $(RM) $(TEST_DB)*