Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 1 | From 371aa300369e9ea3234cba22d5c0babc7d40dfdf Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 2 | From: Nitin A Kamble <nitin.a.kamble@intel.com> |
| 3 | Date: Fri, 13 Aug 2010 12:24:00 -0700 |
| 4 | Subject: [PATCH] tcl: fix a build issue |
| 5 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 6 | Upstream-Status: Inappropriate [upstream does not support installed tests] |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 7 | --- |
| 8 | unix/Makefile.in | 20 ++++++++++---------- |
| 9 | 1 file changed, 10 insertions(+), 10 deletions(-) |
| 10 | |
| 11 | diff --git a/unix/Makefile.in b/unix/Makefile.in |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 12 | index 9dd053d..a3b7d69 100644 |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 13 | --- a/unix/Makefile.in |
| 14 | +++ b/unix/Makefile.in |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 15 | @@ -815,7 +815,7 @@ tcltest-real: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | test: test-tcl test-packages |
| 17 | |
| 18 | test-tcl: ${TCLTEST_EXE} |
| 19 | - $(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) |
| 20 | + $(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) |
| 21 | |
| 22 | gdb-test: ${TCLTEST_EXE} |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 23 | @printf '%s ' set env @LD_LIBRARY_PATH_VAR@=\"`pwd`$${@LD_LIBRARY_PATH_VAR@:+:$${@LD_LIBRARY_PATH_VAR}}\" > gdb.run |
| 24 | @@ -824,17 +824,17 @@ gdb-test: ${TCLTEST_EXE} |
| 25 | @printf '\n' >>gdb.run |
| 26 | @printf '%s ' set args $(call shquotequote,$(TOP_DIR))/tests/all.tcl\ |
| 27 | $(call shquotequote,$(TESTFLAGS)) -singleproc 1 >> gdb.run |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | - $(GDB) ./${TCLTEST_EXE} --command=gdb.run |
| 29 | + $(GDB) ${TCLTEST_EXE} --command=gdb.run |
| 30 | rm gdb.run |
| 31 | |
| 32 | # Useful target to launch a built tcltest with the proper path,... |
| 33 | runtest: ${TCLTEST_EXE} |
| 34 | - $(SHELL_ENV) ./${TCLTEST_EXE} |
| 35 | + $(SHELL_ENV) ${TCLTEST_EXE} |
| 36 | |
| 37 | # Useful target for running the test suite with an unwritable current |
| 38 | # directory... |
| 39 | ro-test: ${TCLTEST_EXE} |
| 40 | - echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ./${TCLTEST_EXE} |
| 41 | + echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ${TCLTEST_EXE} |
| 42 | |
| 43 | # The following target generates the shared libraries in dltest/ that are used |
| 44 | # for testing; they are included as part of the "tcltest" target (via the |
Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame^] | 45 | @@ -852,28 +852,28 @@ dltest.marker: ${STUB_LIB_FILE} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | # This target can be used to run tclsh from the build directory |
| 47 | # via `make shell SCRIPT=/tmp/foo.tcl` |
| 48 | shell: ${TCL_EXE} |
| 49 | - $(SHELL_ENV) ./${TCL_EXE} $(SCRIPT) |
| 50 | + $(SHELL_ENV) ${TCL_EXE} $(SCRIPT) |
| 51 | |
| 52 | # This target can be used to run tclsh inside either gdb or insight |
| 53 | gdb: ${TCL_EXE} |
| 54 | - $(SHELL_ENV) $(GDB) ./${TCL_EXE} |
| 55 | + $(SHELL_ENV) $(GDB) ${TCL_EXE} |
| 56 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 57 | lldb: ${TCL_EXE} |
| 58 | $(SHELL_ENV) $(LLDB) ./${TCL_EXE} |
| 59 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | valgrind: ${TCL_EXE} ${TCLTEST_EXE} |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 61 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} \ |
| 62 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCLTEST_EXE} \ |
| 63 | $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ |
| 64 | $(TESTFLAGS) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 65 | |
| 66 | valgrindshell: ${TCL_EXE} |
| 67 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) |
| 68 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT) |
| 69 | |
| 70 | trace-shell: ${TCL_EXE} |
| 71 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCL_EXE} $(SCRIPT) |
| 72 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCL_EXE} $(SCRIPT) |
| 73 | |
| 74 | trace-test: ${TCLTEST_EXE} |
| 75 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) |
| 76 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) |
| 77 | |
| 78 | #-------------------------------------------------------------------------- |
| 79 | # Installation rules |