Tcl Extension Architecture (TEA) Sample Extension

Check-in [908da789d2]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add gdb-test target.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 908da789d2b8b07d5b923da81d60dd8adcd7483e66b39eebca22c5b55de00e0b
User & Date: pooryorick 2018-06-05 18:59:29
Context
2018-06-15
06:17
Remove useless ranlib invocation. See also https://core.tcl.tk/tcl/info/9f5893b2e81f9576 check-in: c2dc5bb9fa user: stu tags: trunk
2018-06-05
18:59
Add gdb-test target. check-in: 908da789d2 user: pooryorick tags: trunk
18:40
Standardize environment variables for shell execution. check-in: 8a643db4a7 user: pooryorick tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

   163    163   CLEANFILES	= @[email protected]
   164    164   
   165    165   CPPFLAGS	= @[email protected]
   166    166   LIBS		= @[email protected] @[email protected]
   167    167   AR		= @[email protected]
   168    168   CFLAGS		= @[email protected]
   169    169   COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
          170  +
          171  +
          172  +GDB          =  gdb
          173  +VALGRIND     =  valgrind
          174  +VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
          175  +		--leak-check=yes --show-reachable=yes -v
          176  +
   170    177   
   171    178   .SUFFIXES: .c .$(OBJEXT)
   172    179   
   173    180   #========================================================================
   174    181   # Start of user-definable TARGETS section
   175    182   #========================================================================
   176    183   
................................................................................
   240    247   test: binaries libraries
   241    248   	$(TCLSH) `@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
   242    249   		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
   243    250   			[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   244    251   
   245    252   shell: binaries libraries
   246    253   	@$(TCLSH) $(SCRIPT)
          254  +
   247    255   
   248    256   gdb:
   249         -	$(EXEC_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
          257  +	$(EXEC_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)
   250    258   
   251         -VALGRIND     =  valgrind
   252         -VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
   253         -		--leak-check=yes --show-reachable=yes -v
          259  +gdb-test: binaries libraries 
          260  +	$(EXEC_ENV) $(GDB) --args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
          261  +		$(TESTFLAGS) -singleproc 1 \
          262  +		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
          263  +			[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
          264  +
   254    265   
   255    266   valgrind: binaries libraries
   256    267   	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
   257    268   		`@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS)
   258    269   
   259    270   valgrindshell: binaries libraries
   260    271   	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)