Index: Makefile.in
==================================================================
--- Makefile.in
+++ Makefile.in
@@ -9,11 +9,11 @@
 # Copyright (c) 1999-2000 Scriptics Corporation.
 #
 # See the file "license.terms" for information on usage and redistribution
 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 #
-# RCS: @(#) $Id: Makefile.in,v 1.3 2000/01/22 05:19:58 aborr Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.4 2000/02/05 00:32:37 aborr Exp $
 
 
 lib_BINARIES=$(tls_LIB_FILE)
 BINARIES=$(lib_BINARIES)
 
@@ -237,11 +237,20 @@
 	    # echo "Installing $$i"; \
 	    # rm -f $(mandir)/mann/$$i; \
 	    # $(INSTALL_DATA) $$i $(mandir)/mann ; \
 	    # done
 
-test:
+test: binaries libraries
+	( echo \
+	  pkg_mkIndex . $(exampleA_LIB_FILE) \;\
+	  exit; ) | \
+	$(TCLSH_PROG)
+	TCL_LIBRARY=$(TCL_LIBRARY_DIR) \
+	LD_LIBRARY_PATH=$(BUILD_DIR):$(TCL_BIN_DIR):$(LD_LIBRARY_PATH) \
+	TCLLIBPATH=. \
+	PATH="$(BUILD_DIR)":"$(TCL_BIN_DIR)":"$(PATH)" \
+	$(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TCLTESTARGS)
 
 depend:
 
 #========================================================================
 # Enumerate the names of the object files included in this package.