xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Upstream-Status: Inappropriate [upstream does not support installed tests]
2
3Index: unix/Makefile.in
4===================================================================
5--- a/unix.orig/Makefile.in	2013-11-10 23:37:34.243424934 -0800
6+++ b/unix/Makefile.in	2013-11-10 23:37:34.243424934 -0800
7@@ -709,23 +709,23 @@
8 test: test-tcl test-packages
9
10 test-tcl: ${TCLTEST_EXE}
11-	$(SHELL_ENV) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS)
12+	$(SHELL_ENV) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl $(TESTFLAGS)
13
14 gdb-test: ${TCLTEST_EXE}
15 	@echo "set env @LD_LIBRARY_PATH_VAR@=`pwd`:$${@LD_LIBRARY_PATH_VAR@}" > gdb.run
16 	@echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run
17 	@echo "set args $(TOP_DIR)/tests/all.tcl $(TESTFLAGS) -singleproc 1" >> gdb.run
18-	$(GDB) ./${TCLTEST_EXE} --command=gdb.run
19+	$(GDB) ${TCLTEST_EXE} --command=gdb.run
20 	rm gdb.run
21
22 # Useful target to launch a built tcltest with the proper path,...
23 runtest: ${TCLTEST_EXE}
24-	$(SHELL_ENV) ./${TCLTEST_EXE}
25+	$(SHELL_ENV) ${TCLTEST_EXE}
26
27 # Useful target for running the test suite with an unwritable current
28 # directory...
29 ro-test: ${TCLTEST_EXE}
30-	echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ./${TCLTEST_EXE}
31+	echo 'exec chmod -w .;package require tcltest;tcltest::temporaryDirectory /tmp;source ../tests/all.tcl;exec chmod +w .' | $(SHELL_ENV) ${TCLTEST_EXE}
32
33 # The following target generates the shared libraries in dltest/ that are used
34 # for testing; they are included as part of the "tcltest" target (via the
35@@ -743,23 +743,23 @@
36 # This target can be used to run tclsh from the build directory
37 # via `make shell SCRIPT=/tmp/foo.tcl`
38 shell: ${TCL_EXE}
39-	$(SHELL_ENV) ./${TCL_EXE} $(SCRIPT)
40+	$(SHELL_ENV) ${TCL_EXE} $(SCRIPT)
41
42 # This target can be used to run tclsh inside either gdb or insight
43 gdb: ${TCL_EXE}
44-	$(SHELL_ENV) $(GDB) ./${TCL_EXE}
45+	$(SHELL_ENV) $(GDB) ${TCL_EXE}
46
47 valgrind: ${TCL_EXE} ${TCLTEST_EXE}
48-	$(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind $(TESTFLAGS)
49+	$(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind $(TESTFLAGS)
50
51 valgrindshell: ${TCL_EXE}
52-	$(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT)
53+	$(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ${TCL_EXE} $(SCRIPT)
54
55 trace-shell: ${TCL_EXE}
56-	$(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCL_EXE} $(SCRIPT)
57+	$(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCL_EXE} $(SCRIPT)
58
59 trace-test: ${TCLTEST_EXE}
60-	$(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ./${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS)
61+	$(SHELL_ENV) ${TRACE} $(TRACE_OPTS) ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 $(TESTFLAGS)
62
63 #--------------------------------------------------------------------------
64 # Installation rules
65