Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 8a6c77cdd265fe7ce35929f58f1ade0c6bc4025b Mon Sep 17 00:00:00 2001 |
| 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] |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 8 | --- |
| 9 | unix/Makefile.in | 20 ++++++++++---------- |
| 10 | 1 file changed, 10 insertions(+), 10 deletions(-) |
| 11 | |
| 12 | diff --git a/unix/Makefile.in b/unix/Makefile.in |
| 13 | index b110fe9..d7b35a8 100644 |
| 14 | --- a/unix/Makefile.in |
| 15 | +++ b/unix/Makefile.in |
| 16 | @@ -814,23 +814,23 @@ tcltest-real: |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | test: test-tcl test-packages |
| 18 | |
| 19 | test-tcl: ${TCLTEST_EXE} |
| 20 | - $(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) |
| 21 | + $(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) |
| 22 | |
| 23 | gdb-test: ${TCLTEST_EXE} |
| 24 | @echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}" > gdb.run |
| 25 | @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run |
| 26 | @echo "set args $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) -singleproc 1" >> gdb.run |
| 27 | - $(GDB) ./${TCLTEST_EXE} --command=gdb.run |
| 28 | + $(GDB) ${TCLTEST_EXE} --command=gdb.run |
| 29 | rm gdb.run |
| 30 | |
| 31 | # Useful target to launch a built tcltest with the proper path,... |
| 32 | runtest: ${TCLTEST_EXE} |
| 33 | - $(SHELL_ENV) ./${TCLTEST_EXE} |
| 34 | + $(SHELL_ENV) ${TCLTEST_EXE} |
| 35 | |
| 36 | # Useful target for running the test suite with an unwritable current |
| 37 | # directory... |
| 38 | ro-test: ${TCLTEST_EXE} |
| 39 | - echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ./${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 | |
| 42 | # The following target generates the shared libraries in dltest/ that are used |
| 43 | # for testing; they are included as part of the "tcltest" target (via the |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 44 | @@ -848,28 +848,28 @@ dltest.marker: ${STUB_LIB_FILE} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | # This target can be used to run tclsh from the build directory |
| 46 | # via `make shell SCRIPT=/tmp/foo.tcl` |
| 47 | shell: ${TCL_EXE} |
| 48 | - $(SHELL_ENV) ./${TCL_EXE} $(SCRIPT) |
| 49 | + $(SHELL_ENV) ${TCL_EXE} $(SCRIPT) |
| 50 | |
| 51 | # This target can be used to run tclsh inside either gdb or insight |
| 52 | gdb: ${TCL_EXE} |
| 53 | - $(SHELL_ENV) $(GDB) ./${TCL_EXE} |
| 54 | + $(SHELL_ENV) $(GDB) ${TCL_EXE} |
| 55 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 56 | lldb: ${TCL_EXE} |
| 57 | $(SHELL_ENV) $(LLDB) ./${TCL_EXE} |
| 58 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | valgrind: ${TCL_EXE} ${TCLTEST_EXE} |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 60 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} \ |
| 61 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCLTEST_EXE} \ |
| 62 | $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ |
| 63 | $(TESTFLAGS) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 64 | |
| 65 | valgrindshell: ${TCL_EXE} |
| 66 | - $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) |
| 67 | + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT) |
| 68 | |
| 69 | trace-shell: ${TCL_EXE} |
| 70 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCL_EXE} $(SCRIPT) |
| 71 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCL_EXE} $(SCRIPT) |
| 72 | |
| 73 | trace-test: ${TCLTEST_EXE} |
| 74 | - $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) |
| 75 | + $(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS) |
| 76 | |
| 77 | #-------------------------------------------------------------------------- |
| 78 | # Installation rules |