From feb2307f294cedbe38b33babfd6f51f955635855 Mon Sep 17 00:00:00 2001 From: dkf Date: Wed, 9 Nov 2005 00:11:48 +0000 Subject: Added target to make it easier to debug crashing tests. --- ChangeLog | 5 +++++ unix/Makefile.in | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8d565e5..24057ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-09 Donal K. Fellows + + * unix/Makefile.in (gdb-test): Added a new target to make it easier to + run the test suite inside a debugger. + 2005-11-08 Don Porter * tests/compExpr-old.test: Updated tests with changed behavior diff --git a/unix/Makefile.in b/unix/Makefile.in index 9553d8b..eed5caf 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.175 2005/11/04 20:31:22 kennykb Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.176 2005/11/09 00:11:49 dkf Exp $ VERSION = @TCL_VERSION@ MAJOR_VERSION = @TCL_MAJOR_VERSION@ @@ -597,6 +597,13 @@ test: tcltest TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ ./tcltest $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) +gdb-test: tcltest + @echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}" > gdb.run + @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run + @echo "set args $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) -singleproc 1" >> gdb.run + $(GDB) ./tcltest --command=gdb.run + rm gdb.run + # Useful target to launch a built tcltest with the proper path,... runtest: tcltest @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}; export @LD_LIBRARY_PATH_VAR@; \ -- cgit v0.12