is specified as well as tcl, Perl, runtest.
* Makefile.in (check): Do not run tests unless really setup to do so.
We probably will need to add more logic into this - such as
checking that /usr/athena/bin/kadmin exists and that we are running as root.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9961
dc483132-0cff-0310-8789-
dd5450dbe970
+Sat Feb 22 15:12:17 1997 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Do not run test suite unless Athena compatibility
+ is specified as well as tcl, Perl, runtest.
+
+ * Makefile.in (check): Do not run tests unless really setup to do so.
+
Mon Nov 11 20:51:58 1996 Tom Yu <tlyu@mit.edu>
* configure.in: Add AC_CANONICAL_HOST to deal with new pre.in.
# $Id$
#
-check unit-test:: unit-test-setup unit-test-body unit-test-cleanup
+check:: check-@DO_TEST@
+
+check-::
+ @echo "+++"
+ @echo "+++ WARNING: kadmin/v4server unit tests not run."
+ @echo "+++ Either Athena compatibility, tcl, runtest, or Perl is unavailable."
+ @echo "+++"
+
+check-ok unit-test:: unit-test-setup unit-test-body unit-test-cleanup
unit-test-setup::
$(ENV_SETUP) $(START_SERVERS_LOCAL) -v4files -kdcport 750 -keysalt des-cbc-crc:v4
AC_INIT(getpid.sh)
CONFIG_RULES
AC_CANONICAL_HOST
+ath_compat=
+AC_ARG_ENABLE([athena],
+[ --enable-athena build with MIT Project Athena configuration],
+ath_compat=compat,)
+
+dnl The following are tests for the presence of programs required for testing
+AC_CHECK_PROG(RUNTEST,runtest,runtest)
+AC_CHECK_PROG(PERL,perl,perl)
+AC_KRB5_TCL
+if test "$ath_compat" = compat -a "$PERL" = perl -a "$RUNTEST" = runtest -a "$TCL_LIBS" != ""; then
+ DO_TEST=ok
+fi
+AC_SUBST(DO_TEST)
+dnl
V5_AC_OUTPUT_MAKEFILE