blob: 09c49daa2ce12a4ee5b1ec7cfb236735b44dfd60 [file] [log] [blame]
Patrick Williams44b3caf2024-04-12 16:51:14 -05001From 371aa300369e9ea3234cba22d5c0babc7d40dfdf Mon Sep 17 00:00:00 2001
Andrew Geissler517393d2023-01-13 08:55:19 -06002From: 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]
Andrew Geissler517393d2023-01-13 08:55:19 -06007---
8 unix/Makefile.in | 20 ++++++++++----------
9 1 file changed, 10 insertions(+), 10 deletions(-)
10
11diff --git a/unix/Makefile.in b/unix/Makefile.in
Patrick Williams44b3caf2024-04-12 16:51:14 -050012index 9dd053d..a3b7d69 100644
Andrew Geissler517393d2023-01-13 08:55:19 -060013--- a/unix/Makefile.in
14+++ b/unix/Makefile.in
Patrick Williams44b3caf2024-04-12 16:51:14 -050015@@ -815,7 +815,7 @@ tcltest-real:
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016 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 Williams44b3caf2024-04-12 16:51:14 -050023 @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 Williamsc124f4f2015-09-15 14:41:29 -050028- $(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 Williams44b3caf2024-04-12 16:51:14 -050045@@ -852,28 +852,28 @@ dltest.marker: ${STUB_LIB_FILE}
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046 # 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 Geissler517393d2023-01-13 08:55:19 -060057 lldb: ${TCL_EXE}
58 $(SHELL_ENV) $(LLDB) ./${TCL_EXE}
59
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060 valgrind: ${TCL_EXE} ${TCLTEST_EXE}
Andrew Geissler517393d2023-01-13 08:55:19 -060061- $(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 Williamsc124f4f2015-09-15 14:41:29 -050065
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