Allow kdc_realm test run in case when the build and source directories are different
authorZhanna Tsitkov <tsitkova@mit.edu>
Thu, 29 Sep 2011 21:35:18 +0000 (21:35 +0000)
committerZhanna Tsitkov <tsitkova@mit.edu>
Thu, 29 Sep 2011 21:35:18 +0000 (21:35 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25288 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/Makefile.in

index 59272f2ffccec9432e70add174d02d32e86ebb25..e30872f2fa377f8b0bd1309c83277ce08b0e3e00 100644 (file)
@@ -1,7 +1,7 @@
 mydir=tests
 BUILDTOP=$(REL)..
 SUBDIRS = resolve asn.1 create hammer verify gssapi dejagnu shlib \
-       gss-threads misc mkeystash_compat
+       gss-threads misc mkeystash_compat kdc_realm
 
 RUN_SETUP = @KRB5_RUN_ENV@ KRB5_KDC_PROFILE=kdc.conf KRB5_CONFIG=krb5.conf
 KRB5_RUN_ENV= @KRB5_RUN_ENV@
@@ -18,7 +18,13 @@ 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) -D $(TEST_DEPTH)
 
-check-unix:: kdb_check
+check-unix:: kdb_check kdc_realm_check
+
+kdc_realm_check:
+       cp -R $(top_srcdir)/tests/kdc_realm kdc_realm_tmp
+       rm -rf kdc_realm
+       cp -R kdc_realm_tmp kdc_realm
+       rm -rf  kdc_realm_tmp
 
 kdc.conf: Makefile
        rm -rf kdc.conf