+Sun Nov 10 09:40:48 1996 Ezra Peisach <epeisach@mit.edu>
+
+ * Makefile.in, configure.in: Check for Perl, tcl, and runtest and
+ only run tests if present.
+
Thu Sep 26 17:50:23 1996 Barry Jaspan <bjaspan@mit.edu>
* unit-test/Makefile.in, unit-test/kpasswd.0/principal.exp: use
-check unit-test:: unit-test-setup unit-test-body unit-test-cleanup
+check unit-test:: unit-test-@DO_TEST@
+
+unit-test-:
+ @echo "The kpasswd tests require Perl, Tcl, and runtest"
+ @echo "No tests run here"
+
+unit-test-ok:: unit-test-setup unit-test-body unit-test-cleanup
unit-test-body::
$(ENV_SETUP) $(RUNTEST) --tool kpasswd KPASSWD=../kpasswd \
AC_INIT(configure.in)
CONFIG_RULES
+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 "$PERL" = perl -a "$RUNTEST" = runtest -a "$TCL_LIB" != ""; then
+ DO_TEST=ok
+fi
+AC_SUBST(DO_TEST)
+dnl
V5_AC_OUTPUT_MAKEFILE