blob: 6dbef7077f8bf66d958391610abe04f8b50d39af [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 8a6c77cdd265fe7ce35929f58f1ade0c6bc4025b Mon Sep 17 00:00:00 2001
2From: Nitin A Kamble <nitin.a.kamble@intel.com>
3Date: Fri, 13 Aug 2010 12:24:00 -0700
4Subject: [PATCH] tcl: fix a build issue
5
Patrick Williams2390b1b2022-11-03 13:47:49 -05006Upstream-Status: Inappropriate [upstream does not support installed tests]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Andrew Geissler517393d2023-01-13 08:55:19 -06008---
9 unix/Makefile.in | 20 ++++++++++----------
10 1 file changed, 10 insertions(+), 10 deletions(-)
11
12diff --git a/unix/Makefile.in b/unix/Makefile.in
13index b110fe9..d7b35a8 100644
14--- a/unix/Makefile.in
15+++ b/unix/Makefile.in
16@@ -814,23 +814,23 @@ tcltest-real:
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017 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 Geissler517393d2023-01-13 08:55:19 -060044@@ -848,28 +848,28 @@ dltest.marker: ${STUB_LIB_FILE}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050045 # 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 Geissler517393d2023-01-13 08:55:19 -060056 lldb: ${TCL_EXE}
57 $(SHELL_ENV) $(LLDB) ./${TCL_EXE}
58
Patrick Williamsc124f4f2015-09-15 14:41:29 -050059 valgrind: ${TCL_EXE} ${TCLTEST_EXE}
Andrew Geissler517393d2023-01-13 08:55:19 -060060- $(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 Williamsc124f4f2015-09-15 14:41:29 -050064
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