* Makefile.in (check): Only run tests is Perl, tcl, runtest
authorEzra Peisach <epeisach@mit.edu>
Thu, 31 Oct 1996 13:45:25 +0000 (13:45 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 31 Oct 1996 13:45:25 +0000 (13:45 +0000)
* configure.in: Check for Perl before running tests.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9257 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/unit-test/ChangeLog
src/lib/kadm5/unit-test/Makefile.in
src/lib/kadm5/unit-test/configure.in

index c1e65f655a2b2273072f54f4f498b3f84970f1e1..ec764c1141369f23b6392448fcaa2f6e1db31e07 100644 (file)
@@ -1,4 +1,10 @@
-Fri Oct 25 16:43:52 1996  Ezra Peisach  <epeisach@trane.rose.brandeis.edu>
+Thu Oct 31 08:42:18 1996  Ezra Peisach  <epeisach@mit.edu>
+
+       * Makefile.in (check): Only run tests is Perl, tcl, runtest.
+
+       * configure.in: Check for Perl before running tests.
+
+Fri Oct 25 16:43:52 1996  Ezra Peisach  <epeisach@mit.edu>
 
        * Makefile.in (init-test): Add -UUSE_KADM5_API_VERSION before the
                -D of same.  
index dfa60ffeb5e1e0a7cc73f7792568e6dddd4b20df..455f42880c60326569edd3319ab5632f210cf47c 100644 (file)
@@ -46,12 +46,12 @@ server-iter-test: iter-test.o $(SRVDEPLIBS)
 # The unit-test targets
 #
 
-check:: check-@RUNTEST@-@DO_TCL@
+check:: check-@DO_TEST@
 
-check-- check-runtest- check--tcl::
-       @echo "Either tcl or runtest is unavailable. Kadm5 unit tests not run"
+check-::
+       @echo "Either tcl, runtest, or Perl is unavailable. Kadm5 unit tests not run"
 
-check-runtest-tcl unit-test:: unit-test-client unit-test-server
+check-ok unit-test:: unit-test-client unit-test-server
 
 unit-test-client: unit-test-client-setup unit-test-client-body \
        unit-test-client-cleanup
index 5686f081f0b29adef78e737d37cfcecf019b579c..b8a73516fd10c75fbb236e3460b493ecc76ddce2 100644 (file)
@@ -2,12 +2,15 @@ AC_INIT(init-test.c)
 WITH_CCOPTS
 CONFIG_RULES
 KRB_INCLUDE
+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 "$TCL_LIB" != "" ;  then
-       DO_TCL=tcl
+if test "$PERL" = perl -a "$RUNTEST" = runtest -a "$TCL_LIB" != ""; then
+       DO_TEST=ok
 fi
-AC_SUBST(DO_TCL)
+AC_SUBST(DO_TEST) 
+dnl
 USE_KADMCLNT_LIBRARY
 USE_GSSAPI_LIBRARY
 USE_KADMSRV_LIBRARY