diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-23 16:02:33 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-23 16:02:33 (GMT) |
| commit | b0a23df7d6a04013d6ee706f7c7a7f12b6d5b3ef (patch) | |
| tree | 8f7723af97c8e834998fcc65939443a6a47a7abe | |
| parent | ae9ebe2176735ef72c34dfb900fb7ab8987af916 (diff) | |
| parent | a51afb0e464bb1e7cf3a84ccecb3fb808d7e001d (diff) | |
| download | tcl-b0a23df7d6a04013d6ee706f7c7a7f12b6d5b3ef.zip tcl-b0a23df7d6a04013d6ee706f7c7a7f12b6d5b3ef.tar.gz tcl-b0a23df7d6a04013d6ee706f7c7a7f12b6d5b3ef.tar.bz2 | |
Merge "unchained" branch, since all it does is add a little valgrind stuff to Makefile.in.
Hopefully this will stop Nathan's useless single-commit merges (his way there would be 32 more merges left to go)
| -rw-r--r-- | unix/Makefile.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index 93c3abd..1bf5814 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -956,6 +956,27 @@ valgrind: ${TCL_EXE} ${TCLTEST_EXE} $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ $(TESTFLAGS) +testresults/valgrind/%.result: ${TCL_EXE} ${TCLTEST_EXE} + @mkdir -p testresults/valgrind + $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCLTEST_EXE} \ + $(TOP_DIR)/tests/all.tcl -singleproc 1 -constraints valgrind \ + -file $(basename $(notdir $@)) > $@.tmp 2>&1 + @mv $@.tmp $@ +.PRECIOUS: testresults/valgrind/%.result + + +testresults/valgrind/%.success: testresults/valgrind/%.result + @printf '%s' valgrind >&2 + @printf ' %s' $(basename $(notdir $@)) >&2 + @printf '\n >&2' + @status=$$(./${TCLTEST_EXE} $(TOP_DIR)/tools/valgrind_check_success \ + file $(basename $@).result); \ + if [ "$$status" -eq 1 ]; then touch $@; exit 0; else exit 1; fi + +valgrind_each: $(addprefix testresults/valgrind/,$(addsuffix .success,$(notdir\ + $(wildcard $(TOP_DIR)/tests/*.test)))) + + valgrindshell: ${TCL_EXE} $(SHELL_ENV) $(VALGRIND) $(VALGRINDARGS) ./${TCL_EXE} $(SCRIPT) |
