[25945] in CVS-changelog-for-Kerberos-V5
svn rev #25435: trunk/src/ util/
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Fri Nov 4 13:15:38 2011
Date: Fri, 4 Nov 2011 13:15:37 -0400
From: ghudson@mit.edu
Message-Id: <201111041715.pA4HFbbp013780@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
http://src.mit.edu/fisheye/changelog/krb5/?cs=25435
Commit By: ghudson
Log Message:
Add cross-realm support to "make testrealm"
Allow "make testrealm CROSSNUM=N" to make N fully-connected realms for
cross-realm testing convenience.
Changed Files:
U trunk/src/Makefile.in
U trunk/src/util/testrealm.py
Modified: trunk/src/Makefile.in
===================================================================
--- trunk/src/Makefile.in 2011-11-04 17:13:39 UTC (rev 25434)
+++ trunk/src/Makefile.in 2011-11-04 17:15:37 UTC (rev 25435)
@@ -592,8 +592,11 @@
check-prerecurse: fake-install
# Create a test realm and spawn a shell in an environment pointing to it.
+# If CROSSNUM is set, create that many fully connected test realms and
+# point the shell at the first one.
testrealm: fake-install
- PYTHONPATH=$(BUILDTOP):$(top_srcdir)/util $(PYTHON) $(srcdir)/util/testrealm.py
+ PYTHONPATH=$(top_srcdir)/util $(PYTHON) $(srcdir)/util/testrealm.py \
+ $(CROSSNUM)
# environment variable settings to propagate to Python-based tests
Modified: trunk/src/util/testrealm.py
===================================================================
--- trunk/src/util/testrealm.py 2011-11-04 17:13:39 UTC (rev 25434)
+++ trunk/src/util/testrealm.py 2011-11-04 17:15:37 UTC (rev 25435)
@@ -22,7 +22,9 @@
# Invoked by the testrealm target in the top-level Makefile. Creates
# a test realm and spawns a shell pointing at it, for convenience of
-# manual testing.
+# manual testing. If a numeric argument is present after options,
+# creates that many fully connected test realms and point the shell at
+# the first one.
from k5test import *
@@ -53,7 +55,11 @@
# Assume PATH exists in env for simplicity.
env['PATH'] = path_prefix + env['PATH']
-realm = K5Realm()
+if args:
+ realms = cross_realms(int(args[0]))
+ realm = realms[0]
+else:
+ realm = K5Realm()
env = realm.env_master.copy()
supplement_path(env)
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5