* configure.in: Do not run test suite unless Athena compatibility
authorEzra Peisach <epeisach@mit.edu>
Sat, 22 Feb 1997 20:15:13 +0000 (20:15 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 22 Feb 1997 20:15:13 +0000 (20:15 +0000)
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

src/kadmin/v4server/unit-test/ChangeLog
src/kadmin/v4server/unit-test/Makefile.in
src/kadmin/v4server/unit-test/configure.in

index 239af0f62c025c0bb374a867912e925e365f5abb..b489175de8bd3b46fd2f96e48422f848ff5a30da 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 0022556f4bdd2434825ea43e048ce886b7ae5153..dbb2454da3ae05fceb29664004e3b8dbe26fb331 100644 (file)
@@ -2,7 +2,15 @@
 # $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
index 7f86ea247468070a20b25afa1304b4c19d690df2..a41c1c46fbde58972a1b7934683ecae0ab050326 100644 (file)
@@ -1,4 +1,18 @@
 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