3.6 Testing the Build
The Kerberos V5 distribution comes with built-in regression tests. To
run them, simply type the following command while in the top-level build
directory (i.e., the directory where you sent typed make to start
building Kerberos; see Doing the Build.):
% make check
However, there are several prerequisites that must be satisfied first:
- Configure and build Kerberos with Tcl support. Tcl is used to drive the
test suite. This often means passing
--with-tcl
to configure to
tell it the location of the Tcl configuration script. (See
See Options to Configure.)
- You have to run make install before running make check, or
the test suite will often pick up the installed version of Kerberos
rather than the newly built one. You can install into a prefix that
isn't in the system library search path, though. This theoretically
could be fixed with the appropriate environment variable magic in the
test suite, but hasn't been yet.
- In order to test the RPC layer, the local system has to be running the
portmap daemon and it has to be listening to the regular
network interface (not just localhost).