summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-11-04 18:39:35 +0000
committerGreg Hudson <ghudson@mit.edu>2011-11-04 18:39:35 +0000
commitbc47e3eeb7a046a80faf9ba9ea4ccedf111e33a7 (patch)
treecaa18248d5ad4f461f03aa30bd7e14df59b5756c /src/util
parenta234df421c16a369ef274b13d6cbe07145e6466a (diff)
downloadkrb5-bc47e3eeb7a046a80faf9ba9ea4ccedf111e33a7.tar.gz
krb5-bc47e3eeb7a046a80faf9ba9ea4ccedf111e33a7.tar.xz
krb5-bc47e3eeb7a046a80faf9ba9ea4ccedf111e33a7.zip
Get rid of fake-install
Instead, use $(BUILDTOP)/plugins as the plugin base for tests. For each real plugin module, create a link in the parent directory if we're doing a shared-library build--so built KDB modules can be found in plugins/kdb, preauth modules in plugins/preauth, etc.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25436 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Makefile.in3
-rw-r--r--src/util/k5test.py16
2 files changed, 3 insertions, 16 deletions
diff --git a/src/util/Makefile.in b/src/util/Makefile.in
index c791c0626a..f45bc70825 100644
--- a/src/util/Makefile.in
+++ b/src/util/Makefile.in
@@ -19,9 +19,6 @@ MAYBE_VERTO_k5 = verto k5ev
all-recurse:
-clean-unix::
- $(RM) -r $(FAKEPREFIX)
-
NO_OUTDIR=1
install::
diff --git a/src/util/k5test.py b/src/util/k5test.py
index 503085a31c..09a66a90ac 100644
--- a/src/util/k5test.py
+++ b/src/util/k5test.py
@@ -86,7 +86,7 @@ keyword arguments:
- $testdir: The realm storage directory (absolute path)
- $buildtop: The root of the build directory
- $srctop: The root of the source directory
- - $plugins: The plugin directory under $buildtop/util/fakedest
+ - $plugins: The plugin directory in the build tree
- $hostname: The FQDN of the host
- $port0: The first listener port (portbase)
- ...
@@ -171,7 +171,7 @@ Scripts may use the following functions and variables:
* srctop: The top of the source directory (absolute path).
-* plugins: The plugin directory under <buildtop>/util/fakedest.
+* plugins: The plugin directory in the build tree (absolute path).
* hostname: This machine's fully-qualified domain name.
@@ -418,16 +418,6 @@ def _find_srctop():
return os.path.abspath(root)
-def _find_plugins():
- global buildtop
- fakeroot = os.path.join(buildtop, 'util', 'fakedest')
- if not os.path.exists(fakeroot):
- fail('You must run "make fake-install" in %s first.' % buildtop)
- for dir, subdirs, files in os.walk(fakeroot):
- if os.path.basename(dir) == 'plugins' and 'kdb' in subdirs:
- return dir
- fail('Cannot locate plugins; run "make fake-install" at %s.' % buildtop)
-
# Return the local hostname as it will be canonicalized by
# krb5_sname_to_principal. We can't simply use socket.getfqdn()
# because it explicitly prefers results containing periods and
@@ -1145,7 +1135,7 @@ _outfile = open('testlog', 'w')
_cmd_index = 1
buildtop = _find_buildtop()
srctop = _find_srctop()
-plugins = _find_plugins()
+plugins = os.path.join(buildtop, 'plugins')
_runenv = _import_runenv()
hostname = _get_hostname()
null_input = open(os.devnull, 'r')