diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-20 15:06:52 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-20 15:06:52 (GMT) |
commit | 4f71367c38516d59d012fa0d086cf270573a191c (patch) | |
tree | 16112dacc71013c5761415758985bcd82f8323bf /win | |
parent | 8f8f97ec13fd3def9c005b821be3f21d432f7b4a (diff) | |
download | tcl-4f71367c38516d59d012fa0d086cf270573a191c.zip tcl-4f71367c38516d59d012fa0d086cf270573a191c.tar.gz tcl-4f71367c38516d59d012fa0d086cf270573a191c.tar.bz2 |
Add some machinery for easier testing
Diffstat (limited to 'win')
-rw-r--r-- | win/Makefile.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index a325ac3..1a8bd2d 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -206,6 +206,7 @@ MKDIR = mkdir -p SHELL = @SHELL@ RM = rm -f COPY = cp +GDB = gdb CC_SWITCHES = -I"${GENERIC_DIR_NATIVE}" -I"${TOMMATH_DIR_NATIVE}" \ -I"${ZLIB_DIR_NATIVE}" -I"${WIN_DIR_NATIVE}" -DTCL_TOMMATH \ @@ -814,7 +815,16 @@ shell: binaries # This target can be used to run tclsh inside either gdb or insight gdb: binaries @echo "set env TCL_LIBRARY=$(LIBRARY_DIR)" > gdb.run - gdb ./$(TCLSH) --command=gdb.run + $(GDB) ./$(TCLSH) --command=gdb.run + rm gdb.run + +shquotequote = $(subst ',\",$(subst ",\",$(1))) +gdb-test: tcltest + @printf '%s ' 'set env TCL_LIBRARY=$(LIBRARY_DIR)' > gdb.run + @printf '\n' >>gdb.run + @printf '%s ' set args $(ROOT_DIR_NATIVE)/tests/all.tcl \ + $(call shquotequote,$(TESTFLAGS)) -singleproc 1 >> gdb.run + $(GDB) ${TEST_EXE_FILE} --command=gdb.run rm gdb.run depend: |